aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes A bean in each ear ..... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "A bean in each ear ....." Watch "A bean in each ear ....." New topic
Author

A bean in each ear .....

Mike Halford
Ranch Hand

Joined: Jul 13, 2005
Posts: 31
Hi,
We've developed a grand app using OC4J. The app consists of two ears, both deployed in the same oc4j, one may be moved to a separate server at some stage. When deployed locally the structure in the container root is ....
(the xml files are in META-INF in each case)

bean2.ear
-------- bean2-ejb.jar
-----------ejb-jar.xml

bean1.ear
--------webapp
--------bean1-ejb.jar
--------------ejb-jar.xml
--------------application-client.xml

bean1 accesses bean2 by doing a lookup on ormi://localhost/bean2
there is no <ejb-ref> to bean2 in bean1's ejb-jar.xml, The <ejb-ref> stuff is in application-client.xml

bean2 ejb-jar.xml has no ref to bean1 - because it is a client

when deployed on 10gAS , we get an error saying that bean1 can't find bean2 -it can't read the application-client descriptor ( which is where it should be)
So, the big question what are we doing wrong? Is this the correct config or have we missed a trick somewhere? As I said it all works fine in OC4j standalone so summat must be right
Cheers
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I don't think I understand why you have two EAR files. It looks as if there is one deployment unit, so include the client application in a single EAR file.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Mike Halford
Ranch Hand

Joined: Jul 13, 2005
Posts: 31
because bean2 will be deployed on another server eventually and probably accessed by other clients for other purposes , and, although I had initially built them in the same ear it was considered pertinent to split em up
[ July 13, 2005: Message edited by: Mike Halford ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A bean in each ear .....
 
Similar Threads
Ejb deployment issue
Orion server and the magic of RMI?
javax.naming.NameNotFound Exception
How to deploy 2 EJB's in separate jars
JNDI lookup from LoginModule class