Hi, The answer is that both are possible if you are using Servicemix 4 OSGi. As for which one to follow, Option A with 2 SU's is the traditional way and if you prefer being JBI spec compliant then that is the way to go.
If not, then option 2 is perfectly ok and rather simpler too. Personally I find the JBI spec overly controlling with respect to packaging and can be rather painful when dealing with a large set of SU's/SA's in conjunction with Maven. I would personally prefer option 2 since you are fully compliant with JBI in all things except packing for which you rely on Spring/OSGi. Cheers, Ashwin... saravanan.t wrote: > > Thanks guys for your quick responses! > > I have a followup question: > > what are the options for deployment here? > > do i need to develop/deploy as JBI: one su for bean and another for > cxf-bc? > > or I can develop/deploy one OSGI service consisting the bean code & > cxf-bc config (with POM package as osgi packaging) > > maybe it is not either/or, and if both ways are possible, which way is > recommended. your comments are appreciated. > > Thanks! > > > Ashwin Karpe wrote: >> >> Hi, >> >> You can definately front it with a servicemix bean. It is not necessary >> to have a CXF-SE. >> >> You will need to obviously then consume, transform the payload and send >> an appropriate response via the servicemix-bean. Also, you need to >> appropriately handle the different MEPs (In-Only etc) for methods invoked >> by the CXF-BC correctly in the POJO. >> >> Hope this helps. >> >> Cheers, >> >> Ashwin... >> >> >> saravanan.t wrote: >>> >>> Hello, >>> >>> I have a (beginner) question on fronting a pojo with CXF-BC. Can I do >>> this: >>> >>> 1) using servicemix-bean component, expose this pojo. >>> 2) front this endpoint using CXF-BC >>> >>> or >>> >>> Do I have to create a CXF-SE (with annotated pojo) and only then i can >>> front it using CXF-BC? >>> >>> Thanks and have a nice day! >>> >>> >>> >> >> > > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/SMX4%3A-exposing-a-pojo-externally-with-cxf-bc-tp23154504p23175418.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
