wso2 - ws02 jms transport for websphere MQ -
after looking couple of day have problem consume message form ibm mq. followed documentation still failing smothing working fine. i'm using 4.8.0 , mq 7.5.0.2
error
[2014-02-06 01:06:14,341] error - jmslistener unable continue server startup seems jms provider not yet started. please start jms provider now. [2014-02-06 01:06:14,342] error - jmslistener connection attempt : 1 jms provider failed. next retry in 20 seconds [2014-02-06 01:06:34,364] error - jmslistener unable continue server startup seems jms provider not yet started. please start jms provider now. [2014-02-06 01:06:34,365] error - jmslistener connection attempt : 2 jms provider failed. next retry in 40 seconds root@sandbox:/opt/wso2esb-4.8.0/ffdc# more jmscc0001.fdc ----------------------------------start ffst------------------------------------ /opt/wso2esb-4.8.0/ffdc/jmscc0001.fdc pid:5897 jms common client first failure symptom report product :- ibm websphere mq classes jms date/time :- thu feb 06 00:54:07 cet 2014 system time :- 1391644447539 operating system :- sunos userid :- root java vendor :- oracle corporation java version :- 23.3-b01 source class :- com.ibm.mq.jms.mqqueueconnectionfactory source method :- readobject() probeid :- xf001003 thread :- name=localhost-startstop-1 priority=5 group=main ccl=org.eclipse.core.runtime.internal.adaptor.contextfinder@1da36ad
axis2 config
<transportreceiver name="jms" class="org.apache.axis2.transport.jms.jmslistener"> <parameter name="default" locked="false"> <parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.reffscontextfactory</parameter> <parameter name="java.naming.provider.url" locked="false">file:///var/tmp/jndi</parameter> <parameter name="transport.jms.connectionfactoryjndiname" locked="false">ivtqcf</parameter> <parameter name="transport.jms.connectionfactorytype" locked="false">queue</parameter> <parameter name="transport.jms.destination" locked="false">ivtq</parameter> </parameter> </transportreceiver>
test jndi working
java jmsjndiconsumer -i file:///var/tmp/jndi -c ivtqcf -d ivtq initial context found! received message: jmsmessage class: jms_text jmstype: null jmsdeliverymode: 2 jmsexpiration: 0 jmspriority: 4 jmsmessageid: id:414d5120514d412020202020202020204424ee5203db0020 jmstimestamp: 1391646438379 jmscorrelationid: null jmsdestination: queue://qma/queue1 jmsreplyto: null jmsredelivered: false jmsxappid: jmsjndiproducer jmsxdeliverycount: 1 jmsxuserid: webservd jms_ibm_character_set: utf-8 jms_ibm_encoding: 273 jms_ibm_format: mqstr jms_ibm_msgtype: 8 jms_ibm_putappltype: 28 jms_ibm_putdate: 20140206 jms_ibm_puttime: 00271840 jmsjndiproducer: lucky number today 324
proxy
<?xml version="1.0" encoding="utf-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="stockquoteproxy2" transports="jms" startonload="true" trace="disable"> <description/> <target> <endpoint> <address uri="http://localhost:9000/services/simplestockquoteservice"/> </endpoint> <insequence> <property name="out_only" value="true"/> </insequence> <outsequence> <send/> </outsequence> </target> <publishwsdl uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/> <parameter name="transport.jms.contenttype"> <rules> <jmsproperty>contenttype</jmsproperty> <default>application/xml</default> </rules> </parameter> </proxy>
i've check network , cannot see connecton form esb mq server.
any idea ?
update
i have configured axis server in sample ($wso2_home/samples/axis2server/repository/conf/axis2.xml) same jms transport (default).
atfer compiling 'simplestockquoteservice' , starting the server can see working fine.
cd wso2esb-4.8.1/samples/axis2server/src/simplestockquoteservice/ && ant cd wso2esb-4.8.1/samples/axis2server/ && ./axis2server.sh 14/02/10 21:20:29 info jms.jmslistener: jms listener started 14/02/10 21:20:30 info jms.jmslistener: connection attempt: 1 jms provider service: simplestockquoteservice successful! 14/02/10 21:20:30 info jms.servicetaskmanager: task manager service : simplestockquoteservice [re-]initialized 14/02/10 21:20:31 info jms.jmslistener: started listen on destination : ivtq of type queue service simplestockquoteservice 14/02/10 21:20:31 info util.sampleaxis2servermanager: [simpleaxisserver] started
i still not understand why not working inside carbon !!!
the way found made work modifie startup script (ws02server.sh) add mq client java library classpath
carbon_classpath=/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar:"$carbon_classpath"
if mq transport type bind (ws02 on same server mq server) jni library need included (-djava.library.path=/opt/mqm/java/lib)
copying mq java library repository/component/lib stated in documentation not working.
tested mq 7.5.0.2 , ws02 4.8.1 on solaris , rhel7
Comments
Post a Comment