Error in creating a stateful session bean

Discussions

EJB programming & troubleshooting: Error in creating a stateful session bean

  1. Error in creating a stateful session bean (2 messages)

    Hi All,
    For a stateful session bean(container-managed),if i call the create() method using the home object i get the error -
    Error:500 javax.ejb.CreateException: ERROR creating stateful SessionBean: java.lang.NullPointerException:
    where the connections to the database are made in the ejbCreate() method in the bean.
     
  2. Error in creating a stateful session bean[ Go to top ]

    There doesnot exists any problems when a stateful session bean obtains database connections in the ejbCreate().
    Make sure that u close the connections in ejbPassivate() and ejbRemove().

    Check out for connectivities.
    Send me the source code for further reviews.

    Mail-Id : [email protected]
  3. Hi,
        There is no type named as Container Managed for the Session beans.Container Managed concepts are specfic to only
    Entity Beans.

    Can U explain us about your exact problems in creating the Stateful Session bean? so that I could help U as I can.


    Thanks
    Baski