s,
> Naveen Raj Balasubramaniam
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Re-JAXB-Data-Format-tp5717522p5718669.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Thanks,
This helped me with the same issue i faced.
thanks,
Naveen Raj Balasubramaniam
--
View this message in context:
http://camel.465427.n5.nabble.com/Re-JAXB-Data-Format-tp5717522p5718669.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Finally, I got this working. I had my folders in the same location where my
java source files were located and I gave it a relative path. But now I
moved them to a seperate folder and gave an absolute path which seemed to
work.
from("file://C:/folders/inbox").to("file://C:/folders/outbox");
Regar
Thanks Claus.
I have the following lines being shown in the console.
[ main] DefaultCamelContextINFO
Route: route1 started and consuming from: Endpoint[file://.?fileName=my.xml]
[ main] DefaultCamelContextINFO Total
1 rout
On Sun, Aug 19, 2012 at 6:29 PM, Joe San wrote:
> Adding the Tracer seems to have no effect on the logging.
>
> log4j:WARN No appenders could be found for logger
> (org.apache.camel.impl.DefaultCamelContext).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging
Just wanted to mention that in the example given in the following page, the
formatter should be a tracer I guess??
http://camel.apache.org/tracer
public void configure() throws Exception {
// add tracer as an interceptor so it will log the exchange
executions at runtime// this
That was a typo in my email but in my original route I have them correctly
configured. Like you mentioned I already tried breaking up the route to
just pick it from Inbox and write it to the Outbox. Surprisingly, it seems
like the file is never picked up.
from("file://Users/jothi/Desktop/inbox?fi
Adding the Tracer seems to have no effect on the logging.
log4j:WARN No appenders could be found for logger
(org.apache.camel.impl.DefaultCamelContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
I se
On Sun, Aug 19, 2012 at 12:14 PM, Joe San wrote:
> What is wondering me is that I do not see any exception at all.
> Thread.sleep(1) sleeps for 10 seconds and I think that is ample time to
> copy a simple 4 line xml to the outbox. Is there a way that I could debug a
> bit here to understand wh
On Sun, Aug 19, 2012 at 11:14 AM, Joe San wrote:
> After being unsuccessful at my effort to make the above route to work, I
> created the necessary inbox and outbox folders and my new route looks like
> below:
>
>
> from("file://Users/jothi/Desktop/inbox/filename=my.xml").unmarshal(jaxb).bean(new
What is wondering me is that I do not see any exception at all.
Thread.sleep(1) sleeps for 10 seconds and I think that is ample time to
copy a simple 4 line xml to the outbox. Is there a way that I could debug a
bit here to understand what is happening behind the scenes?
Regards,
Jothi
On Sun
After being unsuccessful at my effort to make the above route to work, I
created the necessary inbox and outbox folders and my new route looks like
below:
from("file://Users/jothi/Desktop/inbox/filename=my.xml").unmarshal(jaxb).bean(new
ProcessorBean()).to("file://Users/jothi/Desktop/inbox/filena
Thanks for the pointer. I made the necessary changes to my route but still
unable to make it work!
from("file:.?fileName=my.xml").unmarshal(jaxb).bean(new
ProcessorBean()).to("file:.?fileName=my1.xml");
For convenient sake, I changed the name of the target file (my1.xml). Why
would my ProcessorBe
On Fri, Aug 17, 2012 at 11:26 AM, Joe San wrote:
> Thanks! That solved the problem.
>
> Now I'm able to successfully get my example running. But I'm not getting
> Camel do what I wanted. Here is how my route definition looks like!
>
> context.addRoutes(new RouteBuilder() {
>
Thanks! That solved the problem.
Now I'm able to successfully get my example running. But I'm not getting
Camel do what I wanted. Here is how my route definition looks like!
context.addRoutes(new RouteBuilder() {
public void configure() {
On Fri, Aug 17, 2012 at 10:46 AM, Joe San wrote:
> So here comes the next bump!
>
> javax.xml.bind.JAXBException: "com.example.filexml" doesnt contain
> ObjectFactory.class or jaxb.index
>
> Do I have to add a jaxb.index file to my package?
>
Yes, see for example p77 in Camel in Action book.
Or g
So here comes the next bump!
javax.xml.bind.JAXBException: "com.example.filexml" doesnt contain
ObjectFactory.class or jaxb.index
Do I have to add a jaxb.index file to my package?
Regards,
Jothi
On Fri, Aug 17, 2012 at 10:24 AM, Joe San wrote:
> Just managed to get rid of this issue and I was
Just managed to get rid of this issue and I was about to post my solution
and saw your message. Added the following as a dependency and it worked!
org.slf4j
slf4j-api
1.6.6
Regards,
Jothi
On Fri, Aug 17, 2012 at 10:18 AM, Claus Ibsen wrote:
> On Fri, Aug 17, 2
On Fri, Aug 17, 2012 at 10:06 AM, Joe San wrote:
> I've tried to get rid of this issue but unfortunately could not. What I do
> not understand is the following:
>
> The Error says:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/slf4j/LoggerFactory
> at
> org.apache.camel.
I've tried to get rid of this issue but unfortunately could not. What I do
not understand is the following:
The Error says:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory
at
org.apache.camel.support.ServiceSupport.(ServiceSupport.java:38)
at
org.example
On Thu, Aug 16, 2012 at 4:08 PM, Joe San wrote:
> Even with the al4j-log4j dependecy added in the libraries, I get this error.
>
Are you sure they are on the classpath when you run the app form within Eclipse.
And you may want to add slf4j-log4j12 or some other logging bridge so
you can use log4
Even with the al4j-log4j dependecy added in the libraries, I get this error.
Regards,
Jothi
On Thu, Aug 16, 2012 at 3:59 PM, Claus Ibsen wrote:
> Hi
>
> See this FAQ
> http://camel.apache.org/what-jars-do-i-need.html
>
>
>
> On Thu, Aug 16, 2012 at 3:50 PM, Joe San wrote:
> > Exception in thre
Hi
See this FAQ
http://camel.apache.org/what-jars-do-i-need.html
On Thu, Aug 16, 2012 at 3:50 PM, Joe San wrote:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/slf4j/LoggerFactory
> at
> org.apache.camel.support.ServiceSupport.(ServiceSupport.java:38)
> at
> org.exa
Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory
at
org.apache.camel.support.ServiceSupport.(ServiceSupport.java:38)
at
org.example.filexml.CamelWithFileAndXML.main(CamelWithFileAndXML.java:23)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFa
I just found that out from Chapter 4. I would have expected this hint that
"when the bean has only one method, camel invokes it automagically without
having to explicitly specifying it" in Chapter 3 itself.
Regards,
Jothi
On Thu, Aug 16, 2012 at 3:32 PM, Claus Ibsen wrote:
> On Thu, Aug 16, 201
On Thu, Aug 16, 2012 at 3:16 PM, Joe San wrote:
> Thanks for pointing me to toe documentation. My actual question got
> clarified once I had a look into the documentation.
>
> From the Camel in Action book:
>
> from("quartz://report?cron=0+0+6+*+*+?")
> .to("http://riders.com/orders/cmd=received&d
Thanks for pointing me to toe documentation. My actual question got
clarified once I had a look into the documentation.
>From the Camel in Action book:
from("quartz://report?cron=0+0+6+*+*+?")
.to("http://riders.com/orders/cmd=received&date=yesterday";)
.bean(new OrderToCsvBean())
.to("file://rid
Check the documentation for this:
http://camel.apache.org/bean-binding.html
Babak
Am 16.08.12 14:32 schrieb "Joe San" unter :
>I have decided to use JAXB instead of xStream. My route definition looks
>like this:
>
>final JaxbDataFormat jaxb = new
>JaxbDataFormat("com.example.filexml");
On Thu, Aug 16, 2012 at 2:32 PM, Joe San wrote:
> I have decided to use JAXB instead of xStream. My route definition looks
> like this:
>
> final JaxbDataFormat jaxb = new
> JaxbDataFormat("com.example.filexml");
> context.addRoutes(new RouteBuilder() {
> public void co
I have decided to use JAXB instead of xStream. My route definition looks
like this:
final JaxbDataFormat jaxb = new
JaxbDataFormat("com.example.filexml");
context.addRoutes(new RouteBuilder() {
public void configure() {
from("file://my.xml").unmarshal(ja
30 matches
Mail list logo