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 ^_^
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.