This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes ejb access war file classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb access war file classes" Watch "ejb access war file classes" New topic
Author

ejb access war file classes

peter mcp
Greenhorn

Joined: Jan 23, 2003
Posts: 8
i am trying to access classes in a web application from an ejb.
The ejb and web application are deployed within the same ear file.
I am unsure whether i should place the required classes from the war file within the ejb.jar so the ejb can access them ?
any ideas would be appreciated
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Peter,
What type of classes does your ejb need to access from the war?

Make sure referencing the war would not introduce a circular dependency (as the war likely accesses the ejb.) If this is the case, you can put the common classes in a separate utility project.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejb access war file classes
 
Similar Threads
porting to Oracle 11g weblogic server
How to find whether files are in class path of web application?
Global JNDI access with EJB 3.1 and JBoss 6
EJB in WAR Accessible from Components in Other Modules?
Classpath problems