You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by youhaodeyi <yo...@gmail.com> on 2009/09/16 13:41:17 UTC
How can I create a customized BC?
BC is internal used, I want to define my own customized BC class. It is a
POJO. My business logic is in a method in this POJO. How can I put this POJO
in servicemix as a service?
--
View this message in context: http://www.nabble.com/How-can-I-create-a-customized-BC--tp25470638p25470638.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How can I create a customized BC?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
yes, but you can create an adapter.
The adapter delegates the business method call to your POJO (which let
as usual). From my point of view, it's a good approach as you choose
which method you want to expose in the bus or you can define more
general method using several in your POJO.
It's the same approach using the CXF-SE component as you need to have an
annotated POJO.
Regards
JB
youhaodeyi wrote:
> Hello,
>
> I read the servicemix-bean tutorial. It gives a example to deploy a POJO. It
> requires the POJO should implements MessageExchangeListener. I think it is
> not a read POJO. A POJO should be any Java class doesn't implement or extend
> from any interface or class, doesn't have any annotation.
>
>
> Jean-Baptiste Onofré wrote:
>> You have two ways to do that:
>> 1/ use servicemix-bean component
>> 2/ use cxf-se with pojo attribute
>>
>> Take a look on this tutorial:
>> http://servicemix.apache.org/6-intermediate-using-ejb-inside-servicemix.html
>>
>> Regards
>> JB
>>
>> youhaodeyi wrote:
>>> BC is internal used, I want to define my own customized BC class. It is a
>>> POJO. My business logic is in a method in this POJO. How can I put this
>>> POJO
>>> in servicemix as a service?
>>
>
Re: How can I create a customized BC?
Posted by youhaodeyi <yo...@gmail.com>.
Hello,
I read the servicemix-bean tutorial. It gives a example to deploy a POJO. It
requires the POJO should implements MessageExchangeListener. I think it is
not a read POJO. A POJO should be any Java class doesn't implement or extend
from any interface or class, doesn't have any annotation.
Jean-Baptiste Onofré wrote:
>
> You have two ways to do that:
> 1/ use servicemix-bean component
> 2/ use cxf-se with pojo attribute
>
> Take a look on this tutorial:
> http://servicemix.apache.org/6-intermediate-using-ejb-inside-servicemix.html
>
> Regards
> JB
>
> youhaodeyi wrote:
>> BC is internal used, I want to define my own customized BC class. It is a
>> POJO. My business logic is in a method in this POJO. How can I put this
>> POJO
>> in servicemix as a service?
>
>
--
View this message in context: http://www.nabble.com/How-can-I-create-a-customized-BC--tp25470638p25473931.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How can I create a customized BC?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You have two ways to do that:
1/ use servicemix-bean component
2/ use cxf-se with pojo attribute
Take a look on this tutorial:
http://servicemix.apache.org/6-intermediate-using-ejb-inside-servicemix.html
Regards
JB
youhaodeyi wrote:
> BC is internal used, I want to define my own customized BC class. It is a
> POJO. My business logic is in a method in this POJO. How can I put this POJO
> in servicemix as a service?