This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 9962
    
163

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

 
Consider Paul's rocket mass heater.
 
subject: JBoss 5.1 ejbCreate method not called on mdb
 
Similar Threads
Associate Same Mdb file to multiple queue in Ejb3 jboss 5.x server
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