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


Reply via email to