You can have a component invocable by multiple transports at the same time. Here is an example from the testsuite that shows a stateless session bean with an RMI/JRMP and RMI/Socket transport active. The client chooses which transport to use by selecting the corresponding jndi-name for the ejb home binding, PooledStatelessSession=RMI/Socket, StatelessSession=RMI/JRMP:
| <?xml version="1.0"?> | <!DOCTYPE jboss PUBLIC | "-//JBoss//DTD JBOSS 4.0//EN" | "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> | | <jboss> | <enterprise-beans> | <session> | <ejb-name>StatelessSession</ejb-name> | <jndi-name>StatelessSession</jndi-name> | <invoker-bindings> | <invoker> | <invoker-proxy-binding-name>stateless-pooled-invoker</invoker-proxy-binding-name> | <jndi-name>PooledStatelessSession</jndi-name> | </invoker> | <invoker> | <invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name> | <jndi-name>StatelessSession</jndi-name> | </invoker> | </invoker-bindings> | </session> | </enterprise-beans> | | <invoker-proxy-bindings> | <invoker-proxy-binding> | <name>stateless-pooled-invoker</name> | <invoker-mbean>jboss:service=invoker,type=pooled</invoker-mbean> | <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory> | <proxy-factory-config> | <client-interceptors> | <home> | <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor> | <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> | <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> | <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> | </home> | <bean> | <interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor> | <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> | <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> | <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> | </bean> | </client-interceptors> | </proxy-factory-config> | </invoker-proxy-binding> | </invoker-proxy-bindings> | </jboss> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852406#3852406 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852406 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user