You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by johngalt <da...@gmail.com> on 2012/04/21 04:44:54 UTC

Proof (or poof) of Concept

I find myself going in circles, so was I hoping some of you guys
who known this platform/environment inside and out could give me some
professional guidance.

I am trying to implement a rather simple use case using servicemix.
(or what I thought would be a simple use case)

The purpose of the use case is to get a feel for what servicemix can do, to
see if it is something we can use for a full blown esb implementation.
(probably using activemq / camel or bpel / cxf) to implement the "glue" for
many web services
talking to each other across our enterprise, mostly java, some .net for good
measure.  
I don't get the tangible differences between using bpel vs. camel and why
one over the other, 
but that's a different issue.

The reason that I started looking into servicemix was that I spent about 5
months a year
and a half ago working in a hospital that had implemented Oracle JCaps.  I
thought what that
platform could do was pretty impressive, and servicemix seems to be of the
same vein (if you will)
So if the decision is made to go with servicemix, hopefully the powers that
be will bring 
someone in who is an expert in servicemix implementations to help us with
the architecture, but I digress.

So the use case is this:
- xml file (from a queue or just put into a directory) into a camel route.
- based on the content of the xml, the flow would be routed to different web
services.
     (currently "empty" cxf services (working and deployed on tomcat) - just
some logging, 
      I just want to know that they were hit for now)

So I started down the route of using blueprint to implement this, but I find
myself unsure about what components 
I really need and looking a various tutorials it's easy for a newbie to get
completley off the rails on 
some other implementation method without really knowing it.  I've been doing
pure java development for 
a long time and all this configuration is taking some getting aclimated to.

I attached my blueprint.xml file.
Just a route and some cxfEndpoints, can't seem to get it deployed correctly
When I drop the jar file, from the log, it seems to start loading up the
route, 
creating beans, etc.  Then camel shuts down.

But I find myself wondering if I am using the correct components for the
job, is cxfEndpoint correct
or should I be using something else.  Am I on the right path or the left
one?

http://servicemix.396122.n5.nabble.com/file/n5655683/blueprint.xml
blueprint.xml 

Any wisdom is a beautiful thing.

Cheers

--
View this message in context: http://servicemix.396122.n5.nabble.com/Proof-or-poof-of-Concept-tp5655683p5655683.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Proof (or poof) of Concept

Posted by Johan Edstrom <je...@savoirtech.com>.
This is the problem - 

Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: createAssetsEndpoint of type: org.apache.camel.component.cxf.CxfEndpoint
	at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:128)
	at org.apache.camel.component.cxf.CxfComponent.createEndpoint(CxfComponent.java:70)
	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:75)
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:425)

You need to use the camel-cxf namespace handlers for generating a <camel-cxf:endpoint ....

Look at : 

Configuring the CXF Endpoints with Apache Aries Blueprint.

on http://camel.apache.org/cxf.html

/je

On Apr 25, 2012, at 3:24 PM, johngalt wrote:

> Thanks,
> 
> I stripped it down to a file to a queue to calling an external webservice,
> using Java DSL.
> I'm attempting to deploy as a OSGI bundle, changed in the packaging to
> bundle in my pom.
> 
> Seems to create the queue fine and then onto the cxf bean, and then camel
> shutsdown, and an exception the the cxf bean isn't in the registry.  I
> attached the log and zipped up my src directory, am I misconfiguring
> something?
> 
> Regards
> 
> http://servicemix.396122.n5.nabble.com/file/n5666015/postlog.txt postlog.txt 
> 
> http://servicemix.396122.n5.nabble.com/file/n5666015/servicemix.zip
> servicemix.zip 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Proof-or-poof-of-Concept-tp5655683p5666015.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Proof (or poof) of Concept

Posted by johngalt <da...@gmail.com>.
Thanks,

I stripped it down to a file to a queue to calling an external webservice,
using Java DSL.
I'm attempting to deploy as a OSGI bundle, changed in the packaging to
bundle in my pom.

Seems to create the queue fine and then onto the cxf bean, and then camel
shutsdown, and an exception the the cxf bean isn't in the registry.  I
attached the log and zipped up my src directory, am I misconfiguring
something?

Regards

http://servicemix.396122.n5.nabble.com/file/n5666015/postlog.txt postlog.txt 

http://servicemix.396122.n5.nabble.com/file/n5666015/servicemix.zip
servicemix.zip 

--
View this message in context: http://servicemix.396122.n5.nabble.com/Proof-or-poof-of-Concept-tp5655683p5666015.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Proof (or poof) of Concept

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

In your XML file you most likely need to use xpath instead of simple
in the <language> if you route XML messages.
When you use XPath, then mind that if your XML message uses
namespaces, then those namespaces must be configured in the XPath
expression as well.

Some details here
http://camel.apache.org/xpath

And for starters I would make the XML much simpler. Just a JMS -> CXF
-> Log, and then see what is going on.


On Sat, Apr 21, 2012 at 4:44 AM, johngalt <da...@gmail.com> wrote:
> I find myself going in circles, so was I hoping some of you guys
> who known this platform/environment inside and out could give me some
> professional guidance.
>
> I am trying to implement a rather simple use case using servicemix.
> (or what I thought would be a simple use case)
>
> The purpose of the use case is to get a feel for what servicemix can do, to
> see if it is something we can use for a full blown esb implementation.
> (probably using activemq / camel or bpel / cxf) to implement the "glue" for
> many web services
> talking to each other across our enterprise, mostly java, some .net for good
> measure.
> I don't get the tangible differences between using bpel vs. camel and why
> one over the other,
> but that's a different issue.
>
> The reason that I started looking into servicemix was that I spent about 5
> months a year
> and a half ago working in a hospital that had implemented Oracle JCaps.  I
> thought what that
> platform could do was pretty impressive, and servicemix seems to be of the
> same vein (if you will)
> So if the decision is made to go with servicemix, hopefully the powers that
> be will bring
> someone in who is an expert in servicemix implementations to help us with
> the architecture, but I digress.
>
> So the use case is this:
> - xml file (from a queue or just put into a directory) into a camel route.
> - based on the content of the xml, the flow would be routed to different web
> services.
>     (currently "empty" cxf services (working and deployed on tomcat) - just
> some logging,
>      I just want to know that they were hit for now)
>
> So I started down the route of using blueprint to implement this, but I find
> myself unsure about what components
> I really need and looking a various tutorials it's easy for a newbie to get
> completley off the rails on
> some other implementation method without really knowing it.  I've been doing
> pure java development for
> a long time and all this configuration is taking some getting aclimated to.
>
> I attached my blueprint.xml file.
> Just a route and some cxfEndpoints, can't seem to get it deployed correctly
> When I drop the jar file, from the log, it seems to start loading up the
> route,
> creating beans, etc.  Then camel shuts down.
>
> But I find myself wondering if I am using the correct components for the
> job, is cxfEndpoint correct
> or should I be using something else.  Am I on the right path or the left
> one?
>
> http://servicemix.396122.n5.nabble.com/file/n5655683/blueprint.xml
> blueprint.xml
>
> Any wisdom is a beautiful thing.
>
> Cheers
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Proof-or-poof-of-Concept-tp5655683p5655683.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/