<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY>
<P>Hello,<BR> there's a test,
org.jboss.test.pooled.test.BeanStressTestCase, which fails because
StatelessSession isn't bound. The original
testsuite/src/resources/pooled/META-INF/jboss.xml file looks like
this:<BR>****************************<BR><jboss><BR>
<enterprise-beans><BR>
<session><BR>
<ejb-name>StatelessSession</ejb-name><BR>
<jndi-name>StatelessSession</jndi-name><BR>
<invoker-bindings><BR>
<invoker><BR>
<invoker-proxy-binding-name>stateless-pooled-invoker</invoker-proxy-binding-name><BR>
<jndi-name>PooledStatelessSession</jndi-name><BR>
</invoker><BR>
</invoker-bindings><BR>
</session><BR>.<BR>.<BR>.<BR>
<invoker-proxy-bindings><BR>
<invoker-proxy-binding><BR>
<name>stateless-pooled-invoker</name><BR>
<invoker-mbean>jboss:service=invoker,type=pooled</invoker-mbean><BR>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory><BR>
<proxy-factory-config><BR>
<client-interceptors><BR>
<home><BR>
<interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.TransactionInterceptor</interceptor><BR>
<interceptor>org.jboss.invocation.InvokerInterceptor</interceptor><BR>
</home><BR>
<bean><BR>
<interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.TransactionInterceptor</interceptor><BR>
<interceptor>org.jboss.invocation.InvokerInterceptor</interceptor><BR>
</bean><BR>
</client-interceptors><BR>
</proxy-factory-config><BR>
</invoker-proxy-binding><BR>****************************<BR>But this isn't
enough to bind StatelessSession (PooledStatelessSession is bound right).
Exception is thrown. I looked in the 4_0_4 Branch on jboss.xml and I added these
missing lines of code to
jboss.xml:<BR> ****************************************<BR> <jboss><BR>
<enterprise-beans><BR>
<session><BR>
<ejb-name>StatelessSession</ejb-name><BR>
<jndi-name>StatelessSession</jndi-name><BR>
<invoker-bindings><BR>
<invoker><BR>
<invoker-proxy-binding-name>stateless-pooled-invoker</invoker-proxy-binding-name><BR>
<jndi-name>PooledStatelessSession</jndi-name><BR>
</invoker><BR> <BR> <!-- copied from jboss.xml in JBAS 4_0_4
--><BR>
<invoker><BR>
<invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name><BR>
<jndi-name>StatelessSession</jndi-name><BR>
</invoker><BR> <!-- end
--><BR> <BR>
</invoker-bindings><BR>
</session> <BR>****************************************</P>
<P>But the test fails again, because I can't use "stateless-rmi-invoker",
because it is no longer defined in server/src/etc/conf/default/standardjboss.xml
in JBAS 5.0.0beta, why?<BR>I've copied the following section from JBAS4_0_4 to
JBAS5 and now the test works fine. But is this the right way?
<BR>****************************************<BR>
<invoker-proxy-binding><BR>
<name>stateless-rmi-invoker</name><BR>
<invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean><BR>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory><BR>
<proxy-factory-config><BR>
<client-interceptors><BR>
<home><BR>
<interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.TransactionInterceptor</interceptor><BR>
<interceptor
call-by-value="false">org.jboss.invocation.InvokerInterceptor</interceptor><BR>
<interceptor
call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor</interceptor><BR>
</home><BR>
<bean><BR>
<interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor><BR>
<interceptor>org.jboss.proxy.TransactionInterceptor</interceptor><BR>
<interceptor
call-by-value="false">org.jboss.invocation.InvokerInterceptor</interceptor><BR>
<interceptor
call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor</interceptor><BR>
</bean><BR>
</client-interceptors><BR>
</proxy-factory-config><BR>
</invoker-proxy-binding></P>
<P>Thanks,<BR> Jaroslaw</P></BODY></HTML>