File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 9915
    
158

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 5.1 ejbCreate method not called on mdb
 
Similar Threads
setMessageDrivenContext() doubt
Query about MDB throwing application exception
I can't see ejbCreat(),ejbRemove or initialize() methods in this MDB.
my MDB does not recives any messages
Associate Same Mdb file to multiple queue in Ejb3 jboss 5.x server