I am using 3.3.

Edell Nolan wrote:
By the way what version of Servicemix are you using.


On Wed, Nov 12, 2008 at 12:36 PM, Edell Nolan <[EMAIL PROTECTED]> wrote:

Hi,

Example using a file poller

File-poller-su

*<beans xmlns:file="http://servicemix.apache.org/file/1.0";
        xmlns:exam="http://example.company.com/";>

    <file:poller service="exam:file"
        endpoint="poller"
        file="file:${DIRECTORY_LOCATION}"
        targetService="exam:StockService"
        targetEndpoint="StockEndpoint"
        deleteFile="true"
        autoCreateDirectory="true"
        delay="30000" period="30000"/>

</beans>

then my StockService implements my MessageExchangeListener

StockService-su

<beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
       xmlns:exam="http://example.company.com/";>

       <bean:endpoint service="exam:StockService"
             endpoint="StockEndpoint" bean="#stockProcessorBean" />
     <bean id="stockProcessorBean" class="example.company.StockProcessor"
/>

</beans>

public class StockProcessor implements MessageExchangeListener {
.......
}
*

You would then have a SA that has a dependency on both SU's

If you want to use the Cxf-bc you can do something very similar. You may
have to set up a client to initiate a request

client => cxf-bc (consumer) => servicemix-bean

There are examples of clients in the examples in the kit.

Hope this helps,

Edell.



On Wed, Nov 12, 2008 at 12:27 PM, Edell Nolan <[EMAIL PROTECTED]>wrote:

Really sorry pasted the wrong link

http://svn.apache.org/repos/asf/servicemix/components

I will try and get you an example


On Wed, Nov 12, 2008 at 11:55 AM, Sylvester <[EMAIL PROTECTED]>wrote:

The server is asking for a userID, password. How do I make one?

Thanks



Edell Nolan wrote:

Try downloading the src for the components and look in the tests
directory


https://projects.open.iona.com/projects/svn/iona/servicemix/components/trunk



On Wed, Nov 12, 2008 at 11:00 AM, Sylvester <[EMAIL PROTECTED]
wrote:

Hi,
I did go to the servicemix-bean page. It does show the different kinds
of
beans, but I'd like to know how exactly to invoke a bean. I'm not
trying to
do anything spectacular. This is a helloWorld bean.

Sylvester


Edell Nolan wrote:



Hi,

Have you looked at the examples in the kit or if you go to the
components
and take a look at the tests you will see plenty of examples.

It really depends what you are trying to do.

E.g.  you could have a file:poller invoke on this endpoint or you
could
use
the cxf-bc - inorder to invoke on this endpoint you would be
specifying a
combination of its service, interfaceName or endpoint in another as SU
as
its targetService and targetEndpoint for example.

If you can provide some more details of what you are trying to do - I
can
try and help.

Edell.

On Wed, Nov 12, 2008 at 4:21 AM, Sylvester <[EMAIL PROTECTED]


wrote:



Hi,
I am a servicemix beginner. I have a decent idea about the various
components, ie SE, BC, SA, SU etc. I created a servicemix-bean SU and
SA
in
eclipse with maven. How do I invoke this endpoint. How do I create a
BC/
reuse a BC for this?
If I use the cxf-bc to invoke this, will that work? Is that the right
way
to go?

Basically, any suggestions on invoking this servicemix-bean endpoint
are
welcome. I didn't find any info on the website about this.

Thanks,
Sylvester









Reply via email to