On 2/15/07, aharsola <[EMAIL PROTECTED]> wrote:

Hi,

I have one application that comprises of core processing logic and CRUD
operations. We plan to have a web application for CRUD operations for end
users. Core/Business logic  comprises of trasformation and communication
with different external systems using different protocols and message
formats. For this, we feel ServiceMix is the right solution. As I read from
document/website, there are two ways to deploy servicemix

a. Standalone. Here ServiceMix is not part of WAR/EAR and run independently
of web application
b. Combine and package both servicemix and web application as a WAR/EAR and
deploying to the container

If we go with first approach, WEB application would use a POJO BC component
to communicate with  SEs for services (assuming both are running on same
machine and different JVMs). Now since WEB app and ServiceMix are on diff
JVMs and  have different classloaders, how WEB app would access a POJO
component?

I am not sure how second approach can be implemented. I do not find any good
documentation on it.

Amit, if you're going to use a POJO to communicate from the web
container JVM to the ServiceMix JVM, you could use the
RemoteServiceMixClient to create message exchanges and send them to
the ServiceMix container:

http://incubator.apache.org/servicemix/maven/servicemix-core/apidocs/org/apache/servicemix/client/RemoteServiceMixClient.html

There's a test demonstrating it's use here:

http://svn.apache.org/viewvc/incubator/servicemix/trunk/core/servicemix-core/src/test/java/org/apache/servicemix/client/RemoteServiceMixClientTest.java?view=markup

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to