If you prefer to configure your endpoint using WSDL, you can specify JMS endpoints as a part of a WSDL service definition. The jms:address
element is a child of the WSDL port
element.
![]() | Important |
---|---|
Information in the configuration file will override the information in the endpoint's WSDL file. |
The basic configuration for a JMS endpoint is done by using a jms:address
element as the child of your service’s port
element. The jms:address
element used in WSDL is identical to the one used in the configuration file. Its attributes are listed in Table 9.1. Like the jms:address
element in the configuration file, the jms:address
WSDL element also uses a jms:JMSNamingProperties
child element to specify additional information needed to connect to a JNDI provider.
Example 9.4 shows an example of a JMS WSDL port
specification.
Example 9.4. JMS WSDL Port Specification
<service name="JMSService"> <port binding="tns:Greeter_SOAPBinding" name="SoapPort"> <jms:address jndiConnectionFactoryName="ConnectionFactory" jndiDestinationName="dynamicQueues/test.Celtix.jmstransport" > <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory" /> <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616" /> </jms:address> </port> </service>