[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Remoting 2: Servlet Invoker
ron.sigal@jboss.com
do-not-reply at jboss.com
Mon Jan 12 23:30:43 EST 2009
For what it's worth, I just had a successful EJB2 invocation over the servlet transport. In jboss-service.xml I have
<mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:service=connector,transport=servlet"
| display-name="Servlet transport Connector">
| <attribute name="Configuration">
| <config>
| <invoker transport="servlet">
| <attribute name="dataType" isParam="true">invocation</attribute>
| <attribute name="marshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationMarshaller</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationUnMarshaller</attribute>
| <attribute name="return-exception" isParam="true">true</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">8080</attribute>
| <attribute name="path">unified-invoker/ServerInvokerServlet</attribute>
| </invoker>
| <handlers>
| <handler subsystem="invoker">jboss:service=invoker,type=unified,transport=servlet</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
|
and in web.xml I have
| <servlet>
| <servlet-name>ServerInvokerServlet</servlet-name>
| <description>The ServerInvokerServlet receives requests via HTTP protocol
| from within a web container and passes it onto the ServletServerInvoker
| for processing.
| </description>
| <servlet-class>org.jboss.remoting.transport.servlet.web.ServerInvokerServlet</servlet-class>
| <!--init-param>
| <param-name>invokerName</param-name>
| <param-value>jboss.remoting:service=invoker,transport=servlet</param-value>
| <description>The servlet server invoker</description>
| </init-param-->
| <init-param>
| <param-name>locatorUrl</param-name>
| <param-value>
| <![CDATA[servlet://${jboss.bind.address}:8080/unified-invoker/ServerInvokerServlet/?dataType=invocation&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&return-exception=true&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]]>
| </param-value>
| <description>The servlet server invoker</description>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201207#4201207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201207
More information about the jboss-dev-forums
mailing list