Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue with jboss tibco integration after tibco EMS restart

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I have set up Tibco EMS Server
2. JBOSS4.2.3GA with jobs messaging
3. Two queues hosted in TIbco server firstQueue, secondQueue
4. I have consumer in JBOSS for firstTibcoQueue (FirstQueueBean.java)
5. I have session bean in jboss SecondQueueBean.java in the same server instance(same.ear) it post message on to secondTibcoQueue

Here the problem is, if Tibco server goes down in between, after that my MDB FirsQueueBean unable to consume message from the firstTibcoQueue.

But I am able to send messages on secondTibcoQueue.

I have monitored jboss logs after Tibco restart my server is able to reconnect successfully.


I am able to post the message but unable to consume the message.

Could you please let me know what is the problem here? Is I am missing any configuration. I have configured this instance as per JBOSS documentation.

tibco-ds.xml




Could you please let me know why my consumer is not able to reconnect to Tibco Server?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this EJB2.x MDB or a EJB3 MDB?
 
ravikanth reddy
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.

It is ejb2.1 mdb.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From what I know, by default, the "ReconnectIntervalSec" is set to 10 seconds for the MDBs unless you have overridden it http://community.jboss.org/wiki/ConfigJBossMDB
 
ravikanth reddy
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jaikiran,

I have overriden this value in jboss.xml

jboss.xml

When tibco server is down I can see below error messgage in the logs
javax.jms.JMSException: Failed to connect to the server at tcp://dingo:7222

when tibco srver is up jboss server is able to reconnect successfully.
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic