For a stateless session bean, ss there any way to have JBOSS to invoke the ejbCreate method automatically? I need to create a message server that will publish messages automatically when a JBOSS starts, but it seems that a client has to explicitly to call the create(), and call another method to activate ejbCreate().
Also, if I put this create() and ejbCreate() logic in every client, how I can prevent the ejbCreate() from being called twice?
Thanks
Jack
Add servlet to your app, where only the init() method is populated. Init() can create the session bean.
the servlet needs to be run-on-startup>0