[jboss-user] [EJB/JBoss] - bets practics of an ejb app initialization

trunikov do-not-reply at jboss.com
Mon Dec 10 02:48:10 EST 2007

I'm fairly weak with EJB, so I need your guidelines.
I have application which has several EJBs. One of them is message driven bean (MDB). The application use some library which has to be initialized. At the moment I put library's initialization code in a method ejbCreate() of the MDB. This is not convenient because library requires quite long time for initialization and this initialization occurs only when first message for MDB arrives.
So question is how to initialize library for MDB at server's startup. I saw that for example WebSphera has ability to mark bean as initialized at application's startup time. Is this possible in JBoss, or may be JBoss has other way to achieve that aim?

Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111523#4111523

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111523

More information about the jboss-user mailing list