I think You have to enable a HTTP detached invoker on your EJBs. You better search for 
more information about detached invokers in JBoss. I just found this example, i did't 
test it yet, but it seems to be the solution for your, and also, for my problem to. 
You have to modify your jboss.xml descriptor, and for each EJB you want to access over 
HTTP, specify the http detached invoker. Then you obtain the home interface of an EJB, 
looking up after the jndi name specified by the invoker binding, 
"helloworld/HelloHTTP". Hope it helps.
<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss PUBLIC
  |    "-//JBoss//DTD JBOSS 3.2//EN"
  |    "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>
  | 
  | <jboss>
  |    <enterprise-beans>
  |       <session>
  |          <ejb-name>HelloWorld</ejb-name>
  |          <jndi-name>helloworld/Hello</jndi-name>
  |      <invoker-bindings>
  |             <invoker>
  |                
<invoker-proxy-binding-name>stateless-http-invoker</invoker-proxy-binding-name>
  |             </invoker>
  |         <jndi-name>helloworld/HelloHTTP</jndi-name>
  |          </invoker-bindings>
  |       </session>                  
  |    </enterprise-beans>
  | 
  |    <invoker-proxy-bindings>      
  |       <!-- A custom invoker for RMI/HTTP -->
  |       <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>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=3836248#3836248

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836248



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to