aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JBoss 5.1 ejbCreate method not called on 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 "JBoss 5.1 ejbCreate method not called on mdb" Watch "JBoss 5.1 ejbCreate method not called on mdb" New topic
Author

JBoss 5.1 ejbCreate method not called on mdb

M. Phaneendra Vijay
Greenhorn

Joined: Jun 10, 2009
Posts: 26
Hi,

Could anyone tell me, why ejbCreate method is NOT called on MDB in JBoss 5.1.0 for EJB 3.0. The same code worked in weblogic 10.
Please find the code below

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

This was a bug https://issues.jboss.org/browse/EJBTHREE-2160 in JBoss AS which got fixed in JBoss AS 6.0.0.Final. Try upgrading to 6.0.0.Final of JBoss AS.

[My Blog] [JavaRanch Journal]
M. Phaneendra Vijay
Greenhorn

Joined: Jun 10, 2009
Posts: 26
I got it working. Annotate the ejbCreate method with @PostConstruct. It works!!!

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBoss 5.1 ejbCreate method not called on mdb