In your jboss.xml for each bean you want to be exposed via http, add the following.  
(I do this post compilation during (pre)deployment with some xml-task tasks via ant).

  | <invoker-bindings>  <invoker>
  | <invoker-proxy-binding-name>stateless-http-invoker</invoker-proxy-binding-name>
  | </invoker>
  | </invoker-bindings>
  | 

In your jboss.xml of each jboss.xml (or in standardjboss.xml), you have to create the 
invoker bindings you are now referencing.

 <invoker-proxy-binding>
  |   <name>stateful-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.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-binding>
  |   <name>stateless-httpHA-invoker</name>
  |   <invoker-mbean>jboss:service=invoker,type=httpHA</invoker-mbean>
  |   <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</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>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852389#3852389

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


-------------------------------------------------------
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

Reply via email to