EJB XML descriptor


EJB design: EJB XML descriptor

  1. EJB XML descriptor (1 messages)

    excuse me ,
    In the ejb-jar.xml ,Can the tag <ejb-ref> describe the JNDI information ? Because I want to reference another application server . Is it possible ?

    thanks for your time ^_^

    Threaded Messages (1)

  2. EJB XML descriptor[ Go to top ]

    Check out http://java.sun.com/j2ee/j2ee-1_3-fr-spec.pdf for the J2EE spec, including info about the descriptor. Essentially, you can't reference an EJB in another application, although you can reference one in a different EJB jar file in the same application.

    If you want to softcode the location of an EJB in another application you could potentially use something like an environment entry to store the JNDI connection information. Then, you would access the EJB just like any other client.