2 Replies Latest reply on Mar 11, 2002 2:35 AM by sdhaene

    Programatically retrieve <ejb-name> and <jndi-name> from Ses

    sdhaene

      Hi,

      Suppose you have a sessionbean with the following deployment-descriptor:

      <ejb-jar>
      <enterprise-beans>


      A service that handles monetary payments.

      <ejb-name>ProcessPaymentBean</ejb-name>
      com.titan.processpayment.ProcessPaymentHome
      com.titan.processpayment.ProcessPayment
      <ejb-class>com.titan.processpayment.ProcessPaymentBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <env-entry>
      <env-entry-name>minCheckNumber</env-entry-name>
      <env-entry-type>java.lang.Integer</env-entry-type>
      <env-entry-value>2000</env-entry-value>
      </env-entry>
      <resource-ref>
      DataSource for the Titan database
      <res-ref-name>jdbc/titanDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>


      </enterprise-beans>


      From WITHIN my sessionbean I'd like to retrieve the value of the <ejb-name> and <jndi-name>.
      Any clues on how this can be achieved?

      Cheers,

      Stephan