Hi all,
I'm coming from a meeting with my development team and I have had an idea (yes
it's possible :)).
I have two applications :
- backoffice
- frontoffice
Currently, I use CXF-SE component to proxy EJBs from the backoffice and publish
it to the outside using HTTP component (it's the exactly what is explained in
the "Using EJB inside ServiceMix" tutorial).
Now the frontoffice needs to use an EJB from the backoffice. But, to split the
stubs dependency, I have think to create a ServiceMix RMI-IIOP component acting
as a kind of RMI proxy (mainly for performance
reason and avoid mistake around CXF-SE interface writing).
This component can work as a consumer or provider and will look like this :
<classpath>jboss-all-client.jar</classpath>
<rmi:consumer service="myService"
endpoint="test1"
jndiName="my/ejb"
jndiContextFactory="org.jnp.interfaces.NamingContextFactory"
jndiProviderUrl="jnp://localhost:1099"/>
<rmi:provider service="myService"
endpoint="test2"
locationUri="rmi://localhost:1199"
targetService="myService"
targetEndpoint="test1"/>
The consumer endpoint will create a NormalizedMessage with a CLOB in content
(containing marshaled data). On the other hand, the provider will accept
incoming RMI-IIOP connection to get the marshaled data (from
a NormalizedMessage provided by a RMI consimer).
To be able to give mediation on this component, I have first think about using
CXF-SE as for a EJB but connecting localy to the RMI bound port.
What do you think of that kind of component ?
Is it possible to use CXF directly on the NMR to exposed marshaled clob
directly using WSDL/SOAP ?
Regards
JB