Hi Sanket, Here's a list of things i did.
Firstly my client code | Properties env = new Properties(); | | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory"); | env.setProperty(Context.PROVIDER_URL, "http://externaladdr:8080/invoker/JNDIFactory"); | Context ctx = new InitialContext(env); | Object data = ctx .lookup("jmx/invoker/RMIAdaptor"); | So, i am not using a jndi properties file on the client at all. it's all hard coded in there at present. Then my jboss.xml for one particular bean is | <session> | <ejb-name>CCEAppSessionBean</ejb-name> | <jndi-name>ejb/CCEAppSessionBean</jndi-name> | <local-jndi-name>CCEAppSessionBeanLocal</local-jndi-name> | <configuration-name>Standard Stateless SessionBean</configuration-name> | <invoker-bindings> | <invoker> | <invoker-proxy-binding-name> | stateless-http-invoker | </invoker-proxy-binding-name> | </invoker> | </invoker-bindings> | <method-attributes> | </method-attributes> | </session> | and the invoker binding is | <invoker-proxy-binding> | <name>stateless-http-invoker</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> | </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> | And this is the jboss.xml for my application. As far as the jboss-service.xml is concerned i am not sure whether i have to change anything cause that looks all configured by default. This seems like a good tech-note to do, a step by step process. Couldn't find sufficient documentation on this topic at all. Thanks., Anuj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933802#3933802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933802 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
