1 Reply Latest reply on Aug 27, 2002 12:17 PM by Dain Sundstrom

    Obtaining JNDI Name of Entity Bean's DataSource

    Jeremy T Newbie

      Hello. Is it possible to obtain the JNDI name of the datasource an Entity Bean is mapped to? For example if I deploy a set of Entity EJB's against datasource "java/SomeDS", is it possible to obtain the JNDI name ("java/SomeDS") programmatically within the Entity Bean's ejbCreate()?

      I would like to dynamically get a connection to a datasource so I can retrieve a sequence number for generating an ID when creating a new entity in the database.

      Any suggestions?