-
1. Re: Multiple EARs and pass-by-value
frito Jul 18, 2003 1:39 AM (in response to otto101)Example to use the by-value-invoker with JB 3.2
[pre]
jboss.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 3.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<enterprise-beans>
<ejb-name>test/Bean1</ejb-name>
<jndi-name>test/Bean1</jndi-name>
<configuration-name>Standard Stateless SessionBean</configuration-name>
<invoker-bindings>
<invoker-proxy-binding-name>by-value-stateless-rmi-invoker</invoker-proxy-binding-name>
</invoker-bindings>
</enterprise-beans>
<invoker-proxy-bindings>
<invoker-proxy-binding>
by-value-stateless-rmi-invoker
<invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
<proxy-factory-config>
<client-interceptors>
org.jboss.proxy.ejb.HomeInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor
org.jboss.proxy.ejb.StatelessSessionInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor
</client-interceptors>
</proxy-factory-config>
</invoker-proxy-binding>
</invoker-proxy-bindings>
[/pre]
Be sure you configured both ears with its own repository and JavaToParentDelegation=false. Be sure every jar has ALL needed resources with it (and the same version of course). If the ears don't share any ressources by reference, you won't ever get a ClassCastException.
Greetings,
Frito -
2. Re: Multiple EARs and pass-by-value
otto101 Jul 18, 2003 9:46 AM (in response to otto101)Thanks for your quick response!
Could you please send me an example of your jboss-app.xml too?
I tried to read jboss-app_3_2.dtd, but I didn't figure out how to set it up.
Is the by-value-stateless-rmi-invoker a standard JBoss invoker/container setup?
Otto. -
3. Re: Multiple EARs and pass-by-value
frito Jul 18, 2003 12:37 PM (in response to otto101)You can see an example here:
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= .
The by-value-invoker is not configured with jboss out of the box. But you can take the example above and deploy it with your beans or write just the same configuration into your standardjboss.xml file in the conf directory. Don't forget to configure the stateful invoker, too, if you need it...
Greetings,
Frito -
4. Re: Multiple EARs and pass-by-value
otto101 Jul 19, 2003 6:35 AM (in response to otto101)Sorry, I still have the same problem.
Updated logs are attached:
-ucl.log
-server.log
-jboss-app.xml (for both EARs)
-jboss.xml (for stateless sessionbean in both EARs)
Thanks,
Otto.