cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Receiver channel does not reconnect automatically

Former Member
0 Kudos

Hello,

I understand that JMS channel can not connect to websphere MQ automatically.

When i restart the JMS channel, JMS channel is able to connect to MQ queue.

http://help.sap.com/saphelp_nw73/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm

As per above link its clear as what i said above.

Issue: I want my JMS channel to reconnect in case MQ queue is down.

Requirement:

1. I need report/code in PI server which at interval of say 10 minutes checks certain queue manager on the MQ to see if it is down.

2. Is there any webservice in PI which can ping particular queue on MQ to see if its up / down?

3. If particular queue is don the restart the channel. (I can restart the JMS channel in this case through webservice).

Regards,

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

former_member556603
Active Contributor
0 Kudos

Hi Vishal,

Please check the Connection On-Demand ---> Create Connection ON-Demand in JMS Receiver Adapter.

Please find the below Useful links:

Connection keep alive value on PI side :- You need to give this value depending on use of JMS channel , if you have regularly sending message is in interval (say 2 mins then it better to keep value >2 mins or 120 seconds) so that you can use same connection or if you have to send only few message in day then default value 0 sec is better and not keep connection alive for long time.

http://scn.sap.com/people/sunil.ojha5/blog/2010/08/31/review-of-sap-pi-jms-adapter-on-demand-connect...

http://help.sap.com/saphelp_nw73/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm

Thanks,

Maruthi

Answers (1)

Answers (1)

JaySchwendemann
Active Contributor
0 Kudos

Dear Vishal,

this sounds like you originally wanted to establish some kind of failover scenario where PI reconnects to a different MQ instance, if the original instance fails.

1. Did you see this blog from Anandan? I, however, did not yet succeed in setting this up.

http://scn.sap.com/people/anandan.krishnamoorthy/blog/2010/06/08/high-availability-in-jms-adapter#co...

2. What solution did you end up with? I'm really curious because I'm in the middle of evaluating possibilities for failover with MQ myself.

Thanks and kind regards

Jens