On 4/5/07, okrische <[EMAIL PROTECTED]> wrote:

Hello everyone,

i am trying out servicemix for several days, i try the examples, some work,
some dont,
but anyhow i dont get along with it. I have the feeling, that i am missing
some important point.

I have a bunch of computers with several applications on it, one is in java,
one is in perl,
 one is in php. And i want to enable these applications to deal with each
other indirectly,
since they dont know each other.

For example, my java application creates a file. It connects to the bus and
uploads the file.
The service who handles file uploads will forward the file to a service,
which will save files
in a central location. The php application asks a known service, if there
are new files
and will download them if wanted.

I installed servicemix with all its services on one server somewhere in the
network.

But what do i have to implement within my java application? Do i have to
write a proprietary client,
which connects to a binding component on the servicemix server, so i can
send or receive files?
And the binding component sends it to the bus?

To get started, you will need to allow an application to connect to
the JBI container via one of the supported protocols (e.g., HTTP, FTP,
etc.). To achieve this, you will need to create a JBI service unit
(SU) that contains a configuration for the JBI component you would
like to use. Then the SU needs to be wrapped up in a JBI service
assembly (SA) in order to be deployed to the JBI container. I'd
suggest reading through these two FAQ items to get started on these
two tasks:

http://incubator.apache.org/servicemix/what-is-a-jbi-su-and-how-do-i-create-one.html
http://incubator.apache.org/servicemix/what-is-a-jbi-sa-and-how-do-i-create-one.html

And on the php side i have to do the same?

For the PHP application to access the JBI container, you can use the
PHP STOMP API for ActiveMQ:

http://activemq.apache.org/php.html

And how can i connect two servicemix servers on different locations in this
world?

This takes place by configuring an ActiveMQ network of brokers:

http://activemq.apache.org/networks-of-brokers.html

Because ServiceMix sits on top of ActiveMQ, all remote ServiceMix
instances are networked together using the ActiveMQ network of brokers
concept.

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