aspose file tools*
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
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: 30530
    
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?