|
Axis 2 example source code file (README.txt)
The Axis 2 README.txt source codeThis is a new JMS (Java Messaging Service) Transport implementation for Apache Axis2. The transport receiver must be configured as follows, with one or more connection factories: Sample axis2.xml ================ <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> <parameter name="myTopicConnectionFactory"> <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory <parameter name="java.naming.provider.url">tcp://localhost:61616 <parameter name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory </parameter> <parameter name="myQueueConnectionFactory"> <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory <parameter name="java.naming.provider.url">tcp://localhost:61616 <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory </parameter> <parameter name="default"> <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory <parameter name="java.naming.provider.url">tcp://localhost:61616 <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory </parameter> </transportReceiver> If a connection factory named "default" (as shown above) is defined, this would be used for services which does not explicitly specify the connection factory that should be used. The services.xml of a service should indicate the connection factory and the destination name to be associated with. If a destination is not specified, the implementation would create a JMS Queue with the service name. The JMS destination should ideally be created and administered through the JMS provider utilities. Sample services.xml =================== <service name="echo"> <transports> .... <transport>jms </transports> ... <parameter name="transport.jms.ConnectionFactory" locked="true">myTopicConnectionFactory <parameter name="transport.jms.Destination" locked="true">dynamicTopics/something.TestTopic </service> Files Making Up This JMS Implementation ======================================= * JMSListener.java * JMSConnectionFactory.java * JMSMessageReceiver.java * JMSOutTransportInfo.java * JMSSender.java * JMSConstants.java * JMSUtils.java * AxisJMSException.java * DefaultThreadFactory.java Other Axis 2 examples (source code examples)Here is a short list of links related to this Axis 2 README.txt source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.