java - Weblogic JMS URL to connect from Camel -
i using weblogic server: 12.1.1.0, spring 3.2.11.release , camel 2.13.4.
i have following configuration:
<bean id="jnditemplate" class="org.springframework.jndi.jnditemplate"> <property name="environment"> <props> <prop key="java.naming.factory.initial">weblogic.jndi.wlinitialcontextfactory</prop> <prop key="java.naming.provider.url">t3://localhost:7001</prop> <prop key="java.naming.security.principal">username</prop> <prop key="java.naming.security.credentials">the_password</prop> </props> </property> </bean>
but message after deployment:
22-apr-2015 18.29.39 org.springframework.jms.listener.defaultmessagelistenercontainer refreshconnectionuntilsuccessful grave: not refresh jms connection destination 'cameltest' - retrying in 5000 ms. cause: jndiobjecttargetsource failed obtain new target object; nested exception javax.naming.communicationexception [root exception java.net.connectexception: t3://localhost:7001: destination unreachable; nested exception is: java.net.connectexception: connection refused; no available router destination]
how can connect jms server?
in spring-boot i'm configuring jms this
@configuration @enablejms public class jmsconfiguration implements jmslistenerconfigurer { ... // register here jms listners @override public void configurejmslisteners{ ... } }
an whatever want when receive message
@override @jmslistener(destination = "queue") public void processqueue(responsetype response){ //process message want }
Comments
Post a Comment