Load balancing camel endppoints

2017-06-15 Thread anjanaintergration
Hi, 

I have soap endpoints produced from application that uses apache camel to
route the request when soap endpoint receives request. 

Now i need to add load balancer to manage these endpoints. From what i
understand the option are 
a. option 1. multiple jvm application, mutiple tomcat instance and multiple
camel context. 
1. deploy my application in multiple tomcat instance
2. Have an Jetty http proxy to enable load balancer to redirect the
request to one of the endpoint on any of the tomcat instance
   3. add failover node mapping

b. option 2. single jvm application single tomcat instance one camel
context. 
   1. deploy my application in single tomcat instance
   2. in camel-config add load balancing configuration for that endpoint
which need to be load balanced 
   3. so the configuration would be
   
 
  
 
  
  
  











c. Option 3: Will apache camel Mina applicable here. 

Appreciate if someone can share experience with apache camel endpoint load
balancing will the above option correct for load balancing endpoint.

Thanks,




--
View this message in context: 
http://camel.465427.n5.nabble.com/Load-balancing-camel-endppoints-tp5804266.html
Sent from the Camel - Users mailing list archive at Nabble.com.


inject OSGi service into Camel Route

2017-06-15 Thread Mark
I need to expose a service in OSGi that I would like my Camel route to have
access to.  Is there example code or documentation that shows how this can
be done?  My Camel route uses Java DSL, so that may present an extra
challenge to this problem.  I'm hoping that this can be done easily so that
I can use this service in my Camel Route.

Thanks,
Mark


[ANNOUNCEMENT] Apache Camel 2.19.1 Released

2017-06-15 Thread Gregor Zurowski
The Camel community announces the immediate availability of the Camel
2.19.1 patch release. This release contains 57 fixes and improvements
applied in the past weeks on the 2.19.x branch.

The artifacts are published and ready for you to download [1] either
from the Apache mirrors or from the Central Maven repository. For more
details please take a look at the release notes [2, 3].

Many thanks to all who made this release possible.

On behalf of the Camel PMC,
Gregor Zurowski

[1] http://camel.apache.org/download.html
[2] http://camel.apache.org/camel-2191-release.html
[3] 
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12340460=12311211


Re: ActiveMQ shuts down before Camel routes when stopping service in Windows

2017-06-15 Thread nexus
Hello, Zoran

Thank you for the response!

I'm continuing my investigation. Seems, that shutdown of ActiveMQ + Camel
never worked perfectly :)
 at least starting from activemq v5.8.0 with camel v2.10.3...
or, probably, the example configuration shipped with release and managed in
public access does not bring desired effect

I have downloaded and tested following activemq releases:
activemq v5.8.0 (camel v2.10.3)
activemq v5.9.0 (camel v2.12.1)
activemq v5.10.0 (camel v2.13.1)
activemq v5.14.5 (camel v2.16.3)
activemq v5.14.5 (camel v2.20.0-SNAPSHOT)
/commit fef52d7eaabe205496319f9b459da5258d8678bb/
with tiny yet sufficient configuration based on  recommendations

  
from Claus Ibsen:

activemq.xml   

In fact, the last part of config. with props. placeholder and jetty can be
excluded, but I've used activemq web console to produce messages.

Also, I've raised error level for *org.apache.camel* logger in
*log4j.properties* to dump more details.

Testing procedure:
start activemq service and wait until camel routes are up and running
produce message via activemq web console
verify that camel redirected message to other queue
stop activemq service
The result is always the same, activemq shuts down before camel.
You may find details in attached log files:
activemq-5-8-0.log
  
activemq-5-9-0.log
  
activemq-5-10-0.log
  
activemq-5-14-5.log
  
activemq-5-14-5-snapshot.log
  
(Camel 2.20.0-SNAPSHOT)

Additionally, I've tried to simulate clean shutdown sequence by stopping
camel routes manually from jconsole after producing message and before
stopping activemq service.
No errors in log:  activemq-5-14-5-jconsole.log
 
.





--
View this message in context: 
http://camel.465427.n5.nabble.com/ActiveMQ-shuts-down-before-Camel-routes-when-stopping-service-in-Windows-tp5803644p5804170.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Printing log twice

2017-06-15 Thread Claus Ibsen
Hi

Maybe its related to: http://camel.apache.org/why-is-my-message-body-empty.html

On Thu, Jun 15, 2017 at 2:20 PM, RajeshThummala  wrote:
> Hi Team,
> Today I have observed a behavior, I am trying to print API response twice
> (without any other operations in between), in this case I am seeing log
> generated only once.
> Any reason in this?
> Thanks and regards,
> Rajesh Thummala
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Printing-log-twice-tp5804156.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Printing log twice

2017-06-15 Thread RajeshThummala
Hi Team,
Today I have observed a behavior, I am trying to print API response twice
(without any other operations in between), in this case I am seeing log
generated only once. 
Any reason in this?
Thanks and regards,
Rajesh Thummala
  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Printing-log-twice-tp5804156.html
Sent from the Camel - Users mailing list archive at Nabble.com.