Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to delay MDB?

 
Adam Mazurek
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

During system startup WAS invokes MDB if there are some messages in the queue. This MDB uses session bean, but session bean is created later than MDB is invoked so I am getting the exception. Is it possible delay the MDB in some way to wait for creation of the session bean?
Websphere, EJB 2.1
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam,
Is the session bean in the same EJB project as the MDB? Same ear?
 
Adam Mazurek
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, they are in different projects and ears.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not first start the app which has the session beans.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic