Hello,
I'm tryng to use muliple invokers but I have the following problem:
In conf/jboss-service.xml I have 2 invokers configured:
jboss:service=invoker,type=jrmp (the default)
jboss:service=invoker,type=myjrmp
In jboss.xml I have a configuration like this:
<enterprise-beans>
<session>
<ejb-name>Carma</ejb-name>
<configuration-name>Standard Stateless
SessionBean</configuration-name>
<invoker-bindings>
<invoker>
<invoker-proxy-binding-name>ssl-jrmp</invoker-proxy-binding-name>
<jndi-name>sjrmp/Carma</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/CustomerManager</ejb-ref-name>
<jndi-name>sjrmp/CustomerManager</jndi-name>
</ejb-ref>
</invoker>
<invoker>
<invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
<jndi-name>Carma</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/CustomerManager</ejb-ref-name>
<jndi-name>CustomerManager</jndi-name>
</ejb-ref>
</invoker>
</invoker-bindings>
</session>
<session>
<ejb-name>CustomerManager</ejb-name>
<invoker-bindings>
<invoker>
<invoker-proxy-binding-name>ssl-jrmp</invoker-proxy-binding-name>
<jndi-name>sjrmp/CustomerManager</jndi-name>
</invoker>
<invoker>
<invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
<jndi-name>CustomerManager</jndi-name>
</invoker>
</invoker-bindings>
</session>
....
<invoker-proxy-bindings>
<invoker-proxy-binding>
<name>ssl-jrmp</name>
<invoker-mbean>jboss:service=invoker,type=myjrmp</invoker-mbean>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
...
</invoker-proxy-binding>
</invoker-proxy-bindings>
....
Now, the problem:
When I invoke a code like this:
Object ref = ctx.lookup("clientsjrmp/Carma");
CarmaHome fCarmaHome = (CarmaHome)
PortableRemoteObject.narrow(ref, CarmaHome.class);
fCarma = fCarmaHome.create();
userRoles = fCarma.getUserRoles();
everything is ok, but This bean (Carma) has a method
getCustomerManager() which returns a CustomerManager bean remote object.
When I invoke this method the returned object seems to be bound not to "sjrmp/CustomerManager"
but to "CustomerManager".
I know this because when a method is invoked on this object there is no
ssl activity and "myjrmp" invoker uses ssl.
In the JBoss documentation is written that the returned proxy must be
compatible with the proxy the client has initiated the call through.
Can somebody tell me where I'm wrong.
This is tested on versions 3.2.0 and 3.2.2
Thanks.
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user