It's in the Fuse camel trunk now and will be a part of Fuse MR 2.5.0.
Willem
boday wrote:
It works great...thanks Willem. Any idea when this can be rolled into a Fuse
release? My client (Alcatel-Lucent) will be eager to get this fix.
thanks again...
__
Ben O'Day
Senior
If you want to start a camel route without using
org.apache.camel.spring.Main or Spring application context, you need to
create a camel context yourself, then put the route into the camel
context. and start the camel context.
There is a good example[1] in the last page of Camel in Action chapt
Thanks for the reply.
The thing is, I do want to use org.apache.camel.spring.Main to start the
route, but how do you allow this class to be the run configuration when
running from a JAR?
I'm not understanding how I can run it perfectly well in eclipse, yet I
cannot choose to use that as the run
Actually, I have used your advice and followed the example in the link you
provided.
But I'm assuming that is creating a new CamelContext from within the Java
class? That would mean having to add al the enpoints, beans etc to the
class.
Is there a way to pull in my existing CamelContext?
--
Vie
It's not easy to make Camel work with all OSGi platform rightly.
I just went through the Camel OSGi related code, it uses another method
to load converter class, and it should be fine.
I don't know how you inject the camel context, if this camel context is
not replace its DefaultPackageScanCla
somemightsay wrote:
Thanks for the reply.
The thing is, I do want to use org.apache.camel.spring.Main to start the
route, but how do you allow this class to be the run configuration when
running from a JAR?
You can extends the Main class or just use it in your Main class to
start the camel co
Do You mean to pull the Spring configuration file ?
If the CamelContext is created, you can use it directly.
Willem
somemightsay wrote:
Actually, I have used your advice and followed the example in the link you
provided.
But I'm assuming that is creating a new CamelContext from within the Java
The CamelContext.xml is created. It is used when you run Main.class, but
obviously not when I run the Java.class i have created to define the routes.
So when you run Main.class, CamelContext.xml and Camelroutes.java are both
used, and it works correctly.
But I can't seem to get Main.class to be
After went through the example, I got the same conclusion as Christian did.
The issue was caused by CXF Bus can't load the http conduit rightly, you
may let cxf bus to load it explicately by using spring configure that we
showed to you, or you create the bus yourself.
Within Camel 2.2 we intr
somemightsay wrote:
The CamelContext.xml is created. It is used when you run Main.class, but
obviously not when I run the Java.class i have created to define the routes.
So when you run Main.class, CamelContext.xml and Camelroutes.java are both
used, and it works correctly.
But I can't seem to
How then do you define the database information in the Java class?
The examples only show how to do it in the XML camel context.
I would however still much prefer to have the program how it is but find a
way for the Main.class to be used in the JAR. It seems that it would be a
very simple soluti
In reply to what kind of error did I get:
I got "Could not find the main class: org.apache.camel.spring.Main. program
will now exit.
The manifest holds:
Main-Class: org.apache.camel.spring.Main.
i also tried:
Main-Class: Main.
--
View this message in context:
http://camel.465427.n5.nabble.c
How about using google to find it out?
Here is link for the it.
http://download.oracle.com/javase/tutorial/deployment/jar/manifestindex.html
Willem
somemightsay wrote:
How then do you define the database information in the Java class?
The examples only show how to do it in the XML camel cont
I have tried that before with the manifest, it still says it cannot find
org.apache.camel.spring.Main.
But thanks anyway.
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-Reporting-with-Java-and-XML-tp2641453p2641987.html
Sent from the Camel - Users mailing list archive at
I am trying to send sterilized object to JMS and should get the response back
using request-response EIP pattern. I am try to find some example which does
the same….
I saw the example code for request-response in Apache camel site, but not
able to understand what it really happening.
Below are
You should be able to just call requestBody
camelTemplate.requestBody()
On 20 August 2010 21:01, Mohammed Yousuff wrote:
>
> I am trying to send sterilized object to JMS and should get the response back
> using request-response EIP pattern. I am try to find some example which does
> the same….
That Worked!
Thanks a lot for you answers...
I did the hack thing first - using a ClassLoader.
But I can see that next step must be to use spring to create the service
proxy. This seems to be "the way".
one more: Thanks you so much for all you - Christian and Willem
--
View this message in c
Basically the following should work:
On the client side:
yourResponse = camelTemplate.sendBody("jms:queue:yourqueue",
ExchangePattern.InOut, yourObject);
On the server side:
from("jms:queue:yourqueue").to("bean:yourbean?method=yourmethod")
The class behind your bean should have the named metho
jrobens,
Thanks for your reply. As i am very new Camel,if you can share me some *
Pseudocode* related to requestBody that could be great. thank you
Regards,
Yousuff
My Tech Blog: http://passion4java.blogspot.com
On Fri, Aug 20, 2010 at 4:34 PM, jrobens [via Camel] <
ml-node+2642012-19931
Thanks a lot Christian.
a quick question, i am using Came 2.3 Version .. does this version
has camelTemplate class? the reason because i can't import this class inside
my eclipse
Regards,
Yousuff
My Tech Blog: http://passion4java.blogspot.com
On Fri, Aug 20, 2010 at 4:51 PM, Schneider
Hi Mohammed,
the class has been renamed to ProducerTemplate. You can find a complete example
in the distribution. It is named camel-example-spring-jms. The example also
shows how to initialize the camel context and how to retrieve the
ProducerTemplate instance from the context.
Greetings
Chri
i have gone throw the example. You are right.. Examples are similar of what
I am expecting. I have executed the client version and not sure how to
deploy the server version of this example.
I am using JBOSS 4.2 as my appserver, can you please throw me some lights on
this.
Regards,
Yousuff
M
You can simply execute the following with maven like described in the readme:
mvn exec:java -PCamelServer
Inside the pom file you can see how it works. There is a generic start class
org.apache.camel.spring.Main in the distribution that simply starts up a spring
context with a given config. Al
Hi
I have a route where I call this bean. The consumer gets the file and
everything is OK except the file is not deleted. There is also a .camelLock
file which is left behind at every run. So isn't the consumer finishing up,
or what could be wrong?
public class CustomEnricher {
public v
On Fri, Aug 20, 2010 at 1:24 PM, Mohammed Yousuff wrote:
>
> jrobens,
>
>
> Thanks for your reply. As i am very new Camel,if you can share me some *
> Pseudocode* related to requestBody that could be great. thank you
>
You can see this tutorial
http://camel.apache.org/tutorial-jmsremoting.html
On Fri, Aug 20, 2010 at 4:15 PM, Andreas Asmuss wrote:
>
> Hi
>
> I have a route where I call this bean. The consumer gets the file and
> everything is OK except the file is not deleted. There is also a .camelLock
> file which is left behind at every run. So isn't the consumer finishing up,
> or w
26 matches
Mail list logo