This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I want to reference/lookup my EJBs using the java:comp/env context....what xml do i need to edit?ejb-jar.xml?jboss.xml? I'm really confused!
Be Afraid...Be very Afraid...
Parul Patidar
Greenhorn
Joined: Apr 12, 2003
Posts: 17
posted
0
I am not using jboss.xml in my jar file still i can access my entity beans with local interfaces from session bean using java:comp/env context
Originally posted by Paulo Aquino: I want to reference/lookup my EJBs using the java:comp/env context....what xml do i need to edit?ejb-jar.xml?jboss.xml? I'm really confused!
Paulo Aquino
Ranch Hand
Joined: Apr 29, 2002
Posts: 200
posted
0
Originally posted by Parul Patidar: I am not using jboss.xml in my jar file still i can access my entity beans with local interfaces from session bean using java:comp/env context
Could i take a look at your deployment descriptors?
Chris Perrin
Greenhorn
Joined: Jul 29, 2003
Posts: 3
posted
0
You can usually get by with just using the ejb-jar.xml if you do not want to do anything vendor-specific with your EJBs (or whatever resource you are describing with your DD.) I ran an entire enterprise application using JNDI look ups for the data source and the ejb-jar.xml to define BMPs. The minute you want to migrate to CMP or something that requires tie-in with the container, it will be time to use the jboss.xml or whatever container specific file fits your app server.