Hello Claus...
thank you very much. That worked like a charm.
My best regards.
Vinícius.
--
View this message in context:
http://camel.465427.n5.nabble.com/problem-processing-CSV-to-Database-camel-csv-and-camel-sql-tp5735821p5735852.html
Sent from the Camel - Users mailing list archive at
irst_name` varchar(45) CHARACTER SET latin1 NOT NULL,
> `last_name` varchar(45) CHARACTER SET latin1 DEFAULT NULL,
> `email` varchar(45) CHARACTER SET latin1 NOT NULL,
> `active` bit(1) DEFAULT b'1',
> PRIMARY KEY (`id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8$$
>
>
s message in context:
http://camel.465427.n5.nabble.com/problem-processing-CSV-to-Database-camel-csv-and-camel-sql-tp5735821.html
Sent from the Camel - Users mailing list archive at Nabble.com.
It looks really odd for me...
1) You select the Customers twice (in your polling JPA endpoint and in your
processor)
2) You create a new EntityManagerFactory each time the processor is called.
All what you should have to do is:
from("jpa://Customer")
.process(new MyConverter())
.to("jpa://Cus
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5041482.html
Sent from the Camel - Users mailing list archive at Nabble.com.
va:1110)[:1.7.0_01]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_01]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_01]
>
> Thanks,
> Best,
> Idriss
>
> --
> View this message in context:
> http://c
cutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_01]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_01]
Thanks,
Best,
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5039874.html
Sent from the Camel - Users mailing list archive at Nabble.com.
utureTask.java:334)[:1.7.0_01]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_01]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_01]
> at
> java.util.concurrent.ThreadPoolExecutor$Wor
1]
Thank you very much for your help.
Best,
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5038173.html
Sent from the Camel - Users mailing list archive at Nabble.com.
amel-example-etl2.zip
> camel-example-etl2.zip
>
> Best,
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5023529.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Of course.
you find in attchement the source code for my example.
http://camel.465427.n5.nabble.com/file/n5023529/camel-example-etl2.zip
camel-example-etl2.zip
Best,
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5023529.html
Sent from the Camel
tBody(PccCommoncard.class);
> >
> > Then I instanciate OcPccCommoncard :
> > OcPccCommoncard opcc = new OcPccCommoncard();
> >
> > Then I fill the fields of this instance (opcc).
> >
> >
> > --
> > View this message in context:
> > http://camel.4
ommoncard.class);
>
> Then I instanciate OcPccCommoncard :
> OcPccCommoncard opcc = new OcPccCommoncard();
>
> Then I fill the fields of this instance (opcc).
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp44357
instance (opcc).
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018527.html
Sent from the Camel - Users mailing list archive at Nabble.com.
me, please?
>
> Best,
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018467.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
I don't know how I will do that.
Can you explain that to me, please?
Best,
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018467.html
Sent from the Camel - Users mailing list archive at Nabble.com.
at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[:1.7.0_01]
>at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.7.0_01]
>at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_01]
>at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_01]
>at java.lang.Thread.run(Thread.java:722)[:1.7.0_01]
>
>
> Best,
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018419.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_01]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_01]
Best,
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018419.html
Sent from the Camel - Users ma
t(DefaultRouteContext.java:110)
>at
>
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
>at
>
> org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
>at
>
> org.apache.camel.model.SendDefinition.createProcessor(SendDefinitio
his message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5017515.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Hi Romain,
Yes, in my processor I create EntityManagerFactory, EntityManager and
EntityTransaction for each message.
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5017515.html
Sent from the Camel - Users mailing list archive at Nabble.com.
e.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:817)
... 31 more
Do you know how I can resolve this?
Thanks,
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5017505.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ger.begin() and
> myTransManager.commit(),
> and I think that is the cause of low performance?).
>
>
>
> Best,
>
> Idriss
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5015124.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
n the class MyProcess I'm using EntityManagerFactory, EntityManager
> and
> TransactionManager (with myTransManager.begin() and
> myTransManager.commit(),
> and I think that is the cause of low performance?).
>
>
>
> Best,
>
> Idriss
>
> --
> View this message in
is the cause of low performance?).
Best,
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5015124.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ing a Processor, but this procedure is very long. Is
> there a way to optimize the insertion of these data in the database?
>
> Regards
> Idriss
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5010354.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5010354.html
Sent from the Camel - Users mailing list archive at Nabble.com.
database. I
> want to know is there a way to do this with came?
>
> Thank you
>
> Idriss
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5005300.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Hi all,
I try to extract data from a database and load it in an other database. I
want to know is there a way to do this with came?
Thank you
Idriss
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5005300.html
Sent from the Camel - Users mailing
Thanks Claus... I was able to do that everything is working fine now :)
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p4437055.html
Sent from the Camel - Users mailing list archive at Nabble.com.
t; --
> View this message in context:
> http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p4436846.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
C
;beans)? If yes
can you provide me some sample code snippet for the route??
Thanks in advance
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p4436846.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ot;camelinaction")
.split(body())
.to("jpa:camelinaction.PurchaseOrder");
Something like above, where we use the split and tell Camel to split
the message body. (It knows how to iterate the list from the body)
> thanks in advance
>
> --
> View this messag
ot;jpa:camelinaction.PurchaseOrder")
Its giving type mismatch error as the bindy is returning list and jpa
component is awaiting a bean.
Any help will be appreciated...
thanks in advance
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p4435750.h
34 matches
Mail list logo