This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes how to delay MDB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to delay MDB?" Watch "how to delay MDB?" New topic
Author

how to delay MDB?

Adam Mazurek
Greenhorn

Joined: Jun 02, 2006
Posts: 27
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


Regards<br />Adam Mazurek<br />SCJP 5<br />SCWCD 5
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Adam,
Is the session bean in the same EJB project as the MDB? Same ear?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Adam Mazurek
Greenhorn

Joined: Jun 02, 2006
Posts: 27
No, they are in different projects and ears.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Why not first start the app which has the session beans.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to delay MDB?
 
Similar Threads
How to call ENtity Bean from Message driven bean
WAS 4.0 MDB faker conversion to WAS 5.0
MDB + Entity Bean / MDB + SB + EB
MDB
jboss not able to run BMP Bean