I suppose if the 2 servers are on the same machine then you could possibly put the beans into their own directory and share that directory between the 2 servers but then you have to think do the beans have to share instances of the beans? Does 1 server initialize 1 bean and then can the other server reference it? I suppose you could work around that by saving the bean instance to disk but that might be a lot of work (referencing it, sharing it, etc;) I don't really know a good secure answer to that, but I would definitely like too
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 07 March 2002 08:20 To: Orion-Interest Subject: Re: Looking up session beans between apps Hi, try to put the remote and home interface of your bean in the app server classpath ( server.xml ), i think it will solve your problem if Bean A and Bean B are on the same server. Does anybody know how to solve this problem if bean A and bean B are on different server ?? Thanks. Rémy. > Gday all, > > I am currently working on porting an application > from jboss to orion (don't ask!) and am > having problems looking up session beans between apps. > What i am trying to do is lookup sessionbeanA > (in app A) from sessionbeanB (from app B). > (Note that sessionbeanA and sessionbeanB are > different bean classes). I am getting a class cast ecxception. > > This is how i am doing it > > So in sessionbeanB I create a context using the > following properties.. > > props.put( Context.INITIAL_CONTEXT_FACTORY, > "com.evermind.server.ApplicationClientInitialContextFactory" ); > props.put( Context.PROVIDER_URL, "ormi://localhost/sso-wa" ); > props.put( Context.SECURITY_PRINCIPAL, "guest" ); > props.put( Context.SECURITY_CREDENTIALS, "" ); > > .. and can successfully locate an instance of sessionbeanA. > Then i attempt to narrow it. > The class i want to narrow to is SSOManagerHome. > The class of the object being narrowed is > SSOManagerHome_StatelessSessionHomeWrapper27 > It looks OK to me, but the narrow gives and exception. > > java.lang.ClassCastException > at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown > Source) > at javax.rmi.PortableRemoteObject.narrow(Unknown Source) > .. > > > I have found some similar problems.. > http://www.elephantwalker.com/searchresult?id=277 > http://www.mail-archive.com/orion-interest@orionserver.com/msg17468.html > But no solutions :( > > > > > > So where to from here??? Is there a solution? > Will the remote access doco > http://www.orionserver.com/docs/remote-access/remote-access.xml > be of any help as i am going session bean to session bean? > (as opposed to web component to session bean). > > Thanks and Regards > > Ryan