0 Replies Latest reply on Jun 19, 2014 5:27 AM by Murugesan S

    How to invoke a EJB service at JBOSS startup and make the service returned data available to WEB.

    Murugesan S Newbie

           I have deployed an EAR in JBOSS.  I have to call a service at server start up.  At first I have tried with servlet context listener, Since EJB's are bound in JNDI tree after the web deployment , I was not able to make JNDI look up for an EJB from context listener. So, Is there any provision in JBoss to do this?


            Otherwise If I make the ejb as start up mbean service, and If the ejb service has invoked successfully ,then how  to make that particular service returned data available to WEB layer. Because the returned data will be used in some of screens.  Please suggest