Hi,

Depending on what you want to do, you may not even need to impement
ComponentLifeCycle.
ServiceMix provides Component helper classes that are described on :
http://servicemix.org/POJO+support
This page gives an example of a very pojo Sender and Receiver (see at the bottom
of the page).

Concerning the address of the service, the servicemix.xml allows you to define
the JBI-internal address of each component by using the service and
destinationService attributes of the <component>s.

If you want to expose your JBI component as a web service, then you have to use
an external SOAP stack such as XFire. There is an example of exposing a Web
Service using XFire in the example/ directory.

Good luck,
Sami Dalouche

Selon "Wang, Han BGI SF" <[EMAIL PROTECTED]>:

>
> Hi Sami,
>     Thanks for your help. I have read through a book on Spring and I
> know to certain extent how the wiring works. So if I want to write my
> own service with POJO support in servicemix, I have to implement
> ComponentLifeCycle. But in the servicemix.xml, how do I decide the
> address of the service? (http:// bla bla bla ...)
>
> Regards,
>
> Han Wang
> Technology Analyst
> Phone: +1 (415) 908-7960
> Fax: +1 (415) 618-5447
>
> 45 Fremont Street
> Barclays Global Investors
> San Francisco
> CA, 94105
> United States
> __________________________________
> BARCLAYS GLOBAL INVESTORS
>
> -----Original Message-----
> From: Sami Dalouche [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 08, 2005 4:10 PM
> To: [email protected]; Wang, Han BGI SF
> Cc: [email protected]
> Subject: Re: [servicemix-user] How do I run servicemix with Spring ?
>
> Hi,
>
> Have you first looked at Spring's documentation to understand how spring
> works ?
> This may not be purely necessary depending on your needs, but it will
> help you a lot in any case.
>
> In order to run ServiceMix, the first step is to create a
> servicemix.xml.
> This is a configuration file using spring extended syntax for
> ServiceMix.
> (Really, look at Spring's basic syntax first otherwise you will get
> lost).
> There are several examples in the examples/ directory. Look at the
> JMS-binding one, it's the easiest one to start with if you've already
> tackled J2EE problems.
>
> Once you have a servicemix.xml, then you can just run it using the
> bin/servicemix.{bat,sh} script.
>
> for example if you have a directory containining servicemix.bat,
> install/, deploy/ wdir/, you can do :
> /path/to/servicemix.sh servicemix.xml (from the current directory).
> it will launch servicemix using Spring.
>
> Regards,
> Sami Dalouche
>
>
> Selon "Wang, Han BGI SF" <[EMAIL PROTECTED]>:
>
> > Hi,
> >     Sorry if this question seems silly but I just can't find out how
> ...
> > please help ...
> >
> > Regards,
> >
> > Han Wang
> > Technology Analyst
> > Phone: +1 (415) 908-7960
> > Fax: +1 (415) 618-5447
> >
> > 45 Fremont Street
> > Barclays Global Investors
> > San Francisco
> > CA, 94105
> > United States
> > __________________________________
> > BARCLAYS GLOBAL INVESTORS
> >
> >
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Reply via email to