This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes When to use ejb-jar.xml?jboss.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "When to use ejb-jar.xml?jboss.xml?" Watch "When to use ejb-jar.xml?jboss.xml?" New topic
Author

When to use ejb-jar.xml?jboss.xml?

Paulo Aquino
Ranch Hand

Joined: Apr 29, 2002
Posts: 200
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
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
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When to use ejb-jar.xml?jboss.xml?