Hi Remsy
Maybe this is going off topic, but I just can't get the JNDI working.
Ok.. so the issue is about using plain MQ via JMS from Java.. and not specific to the ESB.
I found this article:
http://www.boodi.com/2008/08/ibm-websphere-mq-and-tomcat-jndi.html Do I need to set a JNDI context within tomcat like this ? <Resource name="ConnectionFactory" auth="Container" type="com.ibm.mq.jms.MQTopicConnectionFactory" factory="com.ibm.mq.jms.MQTopicConnectionFactoryFactory" description="JMS Queue Connection Factory for sending messages" HOST="remote-server" PORT="1480" CHAN="SVR_CHANNEL" TRAN="1" QMGR="QM"/> then reference it within axis2.xml ?
I am not a frequent MQ user.. but I believe they ship enough documentation and a simple sample to do this? You could even use your IBM support contract to ask for help on how to get it done. I would not recommend using Tomcat and its JNDI to expose your JMS provider to the ESB, I am not sure, but I also think Tomcat allows only local access to its JNDI unlike a full J2EE server. Exposing JMS elements over JNDI is typically a natural and native function of a JMS provider.

asankha

    -----Original Message-----
    *From:* [EMAIL PROTECTED]
    [mailto:[EMAIL PROTECTED] Behalf Of *Asankha C.
    Perera
    *Sent:* September 24, 2008 10:06 PM
    *To:* [email protected]
    *Subject:* Re: [esb-java-user] MQ series message listener

    Hi Remsy
    Hi. I am only allowed to connect to the mq manager with these
    parameters, so I don't have access to the remote mq server.
Can I use these parameters to establish an MQ listener: manager name, queue name, host, channel, port, userid, password and I have the ibm mq jar files on the lib directory.
    Can you try to simply connect to a MQ destination and print a
    message? Try to use a simple client extended from something like
    [1]. You will need to make the MQ client JAR/s available to this
    program, and also set the JNDI properties to correctly connect to
    your remote MQ server. When you have successfully connected with
    this JMS client, you have everything needed to connect to MQ from
    the ESB - which will be very clear then. You copy the same JAR/s
    into the ESB's lib folder, and specify them in the axis2.xml and
    or JMS addresses.
    Do I need to have esb on the same server of wmq ?
    No

    asankha


    [1]
    
http://java.sun.com/j2ee/1.4/docs/tutorial/examples/jms/simple/src/SimpleSynchConsumer.java

------------------------------------------------------------------------

_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to