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?