File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

how to delay MDB?

Adam Mazurek

Joined: Jun 02, 2006
Posts: 27

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
author & internet detective

Joined: May 26, 2003
Posts: 32793

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Adam Mazurek

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:
subject: how to delay MDB?
It's not a secret anymore!