Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Remote JMS provider is not working

Avatar

Avatar
Level 1
Navin2008
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Navin2008
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Navin2008
Level 1

17-11-2008

I have a JMS Queue on a remote Websphere Server where
messages are published.Lets call it as "Server2"

My application has been deployed in "Server1" and in
"Messaging-Config.xml", I have given the following entry



<destination id="testJMSQueue">

<adapter ref="jms"/>

<properties>

<jms>

<destination-type>Queue</destination-type>


<message-type>javax.jms.TextMessage</message-type>

<connection-factory>jms/QCF</connection-factory>


<destination-jndi-name>jms/testQueue</destination-jndi-name>

<delivery-mode>NON_PERSISTENT</delivery-mode>


<message-priority>DEFAULT_PRIORITY</message-priority>


<preserve-jms-headers>"true"</preserve-jms-headers>


<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>

<max-producers>1</max-producers>

<initial-context-environment>

<property>

<name>Context.PROVIDER_URL</name>

<value>iiop://server2:9810</value>

</property>

<property>

<name>Context.INITIAL_CONTEXT_FACTORY</name>


<value>com.ibm.websphere.naming.WsnInitialContextFactory</value>

</property>

</initial-context-environment>

</jms>

</properties>

<channels>

<channel ref="my-rtmp"/>

</channels>

</destination>



I consume the message using mx:consumer , by subscribing to
"testJMSQueue" defined "Messsaging-config"



Even though messages are there in "testQueue" in the remote
JMS server, messages are not getting received..

If i change the configuration to point to "Server1" JMS queue
, then it works.





Pl let me know how to make it work using remote JMS provider