How to run Camunda Camel with Spring on Jetty?

129 views
Skip to first unread message

walan...@gmail.com

unread,
Dec 20, 2013, 12:50:18 AM12/20/13
to camunda-...@googlegroups.com, Amol....@sigma-systems.com
Hi ,
I am trying to run Camunda with Camel using spring on Jetty Server.

If we do not declare the following bean then we are getting the bean not found error.

<camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
<packageScan>
<package>com.sigma.omp.engine.bpmn.camel.route</package>
</packageScan>
</camelContext>

<bean id="camel" class="org.camunda.bpm.camel.spring.CamelServiceImpl">
<property name="processEngine" ref="processEngine" />
<property name="camelContext" ref="camelContext"/>
</bean>

The current Route for testing I had configured as follows.

from("direct://asyncService1").routeId("asyncService1").to("seda:asyncService1Queue?waitForTaskToComplete=Never");

from("seda:asyncService1Queue").routeId("asyncResponse").process(new Processor() {
@Override
public void process(Exchange arg0) throws Exception {
System.out.println("Camunda Testing .... ");
}
}).to("camunda-bpm:message?messageName=camel.answer");

After adding bean defination the message get posted on queue and we are able to
get the Message as 'Camunda Testing'

But after that it hault.
So seems to be camunda-bpm:message not working.

I had tried to add , Camunda - BPM manually by extending CamelServiceImpl.
But still , result is the same.

Thanks,
Amol Walanj

Bernd Rücker (camunda)

unread,
Dec 20, 2013, 4:01:39 AM12/20/13
to camunda-...@googlegroups.com, Amol....@sigma-systems.com
Hi Amol.

Do you see any error/exception anywhere?

Cheers
Bernd
Consultant & Evangelist (www.camunda.org/community/team.html)
We are hiring: http://www.camunda.org/community/jobs.html

-----Urspr�ngliche Nachricht-----
Von: camunda-...@googlegroups.com
[mailto:camunda-...@googlegroups.com] Im Auftrag von
walan...@gmail.com
Gesendet: Freitag, 20. Dezember 2013 06:50
An: camunda-...@googlegroups.com
Cc: Amol....@sigma-systems.com
Betreff: [camunda-bpm-users] How to run Camunda Camel with Spring on
Jetty?
--
You received this message because you are subscribed to the Google Groups
"camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/camunda-bpm-users/083e3474-84ac-473d-bea
5-143d123529ad%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

walan...@gmail.com

unread,
Dec 20, 2013, 4:08:14 AM12/20/13
to camunda-...@googlegroups.com, Amol....@sigma-systems.com, walan...@gmail.com
Hi Bernd ,

I haven't got any error / exception.

Thanks,
Amol Walanj

Bernd Rücker (camunda)

unread,
Dec 20, 2013, 4:43:35 AM12/20/13
to camunda-...@googlegroups.com, Amol....@sigma-systems.com
Hi Amol.

That's strange - could it be that camel somehow swallows it? Or can you
maybe debug into it to check what happens? Because actually that is no
rocket science - that should work straight forward.

Cheers
Bernd

-----Urspr�ngliche Nachricht-----
Von: camunda-...@googlegroups.com
[mailto:camunda-...@googlegroups.com] Im Auftrag von
walan...@gmail.com
Gesendet: Freitag, 20. Dezember 2013 10:08
An: camunda-...@googlegroups.com
Cc: Amol....@sigma-systems.com; walan...@gmail.com
Betreff: [camunda-bpm-users] Re: How to run Camunda Camel with Spring on
Jetty?
--
You received this message because you are subscribed to the Google Groups
"camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/camunda-bpm-users/2fcdc2ed-1cd7-46b6-b8a
f-560e5e50d60d%40googlegroups.com.

walan...@gmail.com

unread,
Dec 23, 2013, 8:05:55 AM12/23/13
to camunda-...@googlegroups.com, Amol....@sigma-systems.com, walan...@gmail.com
Hi ,
I had tried with bulk testing.
It's seems to be few messages are getting lost in between. I couldn't find out the reason.

from("seda:asyncService1Queue").routeId("asyncResponse").process(new Processor() {
@Override
public void process(Exchange arg0) throws Exception {
System.out.println("Camunda Testing .... ");
}
}).to("camunda-bpm:message?messageName=camel.answer");

From my above route definition , I can see exact number of "Camunda Testing.." statement in log. But the process didn't get completed.

Thanks,
Amol Walanj

Reply all
Reply to author
Forward
0 new messages