-
1. Re: Many Seam applications in one EAR
nathandennis Sep 7, 2011 7:25 PM (in response to povder)there is so much wrong here im not sure where to start.... first why are you wanting two seams context in the same application? if you dont want the same context, then what is the problem with just deploying two ears? are these local interfaces part of a legacy app you are trying to mesh with seam? RCP or something?
-
2. Re: Many Seam applications in one EAR
povder Sep 7, 2011 7:38 PM (in response to povder)
Nathan Dennis wrote on Sep 07, 2011 19:25:
there is so much wrong here im not sure where to start.... first why are you wanting two seams context in the same application? if you dont want the same context, then what is the problem with just deploying two ears? are these local interfaces part of a legacy app you are trying to mesh with seam? RCP or something?These EJBs have local and remote interfaces and are used by a several applications, I guess you can call them legacy. I just wondered if there is a way to have two distinct Seam applications in one EAR, I know I can deploy these applications as two EARs and have ejb-jars of these EJBs I want to call in both EARs.
-
3. Re: Many Seam applications in one EAR
nathandennis Sep 7, 2011 8:54 PM (in response to povder)i definitely think trying to stuff two seam context in one ear is the wrong way to go. if you just have to share the EJBs instead of having two copies connect to them remotely via two separate seams applications.
-
4. Re: Many Seam applications in one EAR
nathandennis Sep 7, 2011 8:59 PM (in response to povder)i think this is the same idea we used in a rcp client a while back for remote connections. you could share the EJBs without all of the multiple mess in a single ear.
try { TestHandlerRemote sess =null; Context context = new InitialContext(); session = (TestHandlerRemote) context.lookup("rcptest/TestHandlerBean/remote");