Specifying the HttpNamingContextFactory is only half the way. This only enables JNDI requests over HTTP.
Now you have to specify RMI over HTTP on your EJB in jboss.xml, e.g.: | <jboss> | .... | <session> | <ejb-name>YourBean</ejb-name> | <jndi-name>YourBeansJNDIName</jndi-name> | | <invoker-bindings> | <invoker> | <invoker-proxy-binding-name>http</invoker-proxy-binding-name> | <jndi-name>YourBeansHTTPJNDIName</jndi-name> | </invoker> | </invoker-bindings> | </session> | ... | <invoker-proxy-bindings> | <invoker-proxy-binding> | <name>http</name> | <invoker-mbean>jboss:service=invoker,type=http</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.StatefulSessionInterceptor</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=3881240#3881240 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881240 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
