Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Paulo Aquino
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Parul Patidar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic