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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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: 10339
    
174

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!!!

 
 
subject: JBoss 5.1 ejbCreate method not called on mdb