Hi,

ServiceMix documentation is still in its infancy, so we all have to guess how it
works for now. James said that there are plans to create better examples and
documentations, so let's wait a little bit..

First, you have to understand that there are two ways to deploy JBI components
1) as a jar containing a jbi.xml, the standard deployment method as explained in
JSR 208. this is the "heavyweight" way, that forces you to add lots of
boiletplate code..

2) the spring/POJO way. All examples bundled with ServiceMix use this approach.
the servicemix.xml file is actually an extended Spring file (check Spring
documentation first if you're not familiar with it, the official documentation
is well done), that allows you to wire all servicemix components, containers,
etc..

Your questions :

1) to interact with a component, you have to send data to the NMR (normalized
Message Router). Check the JMS examples, for examples.. (servicemix.xml). some
binding components receive data from JMS, and forward them to other binding
components...

2) to run a test, just use the servicemix.bat/sh and the first parameter should
be one of the servicemix.xml . since servicemix.xml is a spring file, spring
will wire evertyhing and run the components

3) No tutorial yet. I'm still kinda lost as you are now, but will try to write a
tutorial when I understand how it works ;)

4) not sure how JDBC works with Servicemix.. It is maybe possible to use it
through JCA Jencks (anyone, please confirm ?), or at the worst, you can always
create your own binding components (look at the examples, a simple binding
component is easy to write using ServiceMix POJO abilities..), that takes data
from JDBC and sends it to the normalized Router

Regards,
Sami Dalouche


Selon Zhang Weidong-p55510 <[EMAIL PROTECTED]>:

> Hi:
>
> I have spent 3 weeks trying to get a simple ServiceMix demo working for me.
> But so far I have failed to achieve this goal. Please help me to answer these
> questions:
>
> 1. How can I interact with a Component, shall my code stay inside ServiceMix?
>
> 2. How to run a test class offered in the source package? I do not see any
> main in it, and I do not know how to start the class.
>
> 3. Is there any step-by-step tutorial to learn ServiceMix? Without this, I
> guess most people are like me doing the guess work, I think it is a waste of
> time for interesting programmers to learn ServiceMix. ServiceMix should put
> this as a highest priority.
>
> 4. Is there a JDBC Data source connection pool component for me to use?
>
> Thanks
>
> Dong
>




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

Reply via email to