Re: contextScan in CamelConfiguration

2013-12-19 Thread edhansen42
Looks like this is all going to be solved in 2.13.
 
http://camel.apache.org/camel-2130-release.html
http://camel.apache.org/camel-2130-release.html  

Spring Java Config CamelConfiguration now automagically detects all
RouteBuilder instances registered in the Spring context if
CamelConfiguration#routes method is not overridden.



--
View this message in context: 
http://camel.465427.n5.nabble.com/contextScan-in-CamelConfiguration-tp5745004p5745018.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to monitor number of open files in camel?

2013-12-19 Thread Claus Ibsen
On Thu, Dec 19, 2013 at 7:55 AM, Bharath bharath4...@gmail.com wrote:
 Hi,

Is there any way to monitor the number of open files in camel.

What do you mean by open files?

You can use JMX to gather all the stats you want, some people have
logged about monitoring Camel
http://camel.apache.org/articles


My camel applications are running in fuse fabric container 7.1.0.
I know this is possible using Hawtio but it supports fabric option only
 from Jboss Fuse 6.1

That is no true, hawtio can be installed in JBoss Fuse 6.1 also.
Just as you can install hawtio in other containers such as Tomcat,
WebSphere, WebLogic, Jetty, Karaf, ServiceMix etc.
http://hawt.io/getstarted/index.html

hawtio is included out of the box in JBoss Fuse 6.2 onwards.




 Cheers!!!
 Bharath.R



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/How-to-monitor-number-of-open-files-in-camel-tp5745033.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: FuseIDE in combination with routeContext elements from external files

2013-12-19 Thread Claus Ibsen
Hi

I suggest to get in touch with the Fuse IDE community at github
https://github.com/fusesource/fuseide

You can log a ticket in their issue tracker
https://github.com/fusesource/fuseide/issues


On Mon, Dec 16, 2013 at 5:18 PM, Ronny Aerts ronny.ae...@intris.be wrote:

  Hello camel community,



 I started about a half year ago using Camel in combination ActiveMQ and I
 feel good with this esb solution. I created all xml files and related files
 using an xml or text editor. I would like to switch to a more visual editor
 and I came across the FuseIDE. Everthing seems to work fine except for my
 sub-routes. I use the routeContext functionality as sub-routes in the main
 route file. A sub-routes are predefined reusable routes which, dependable
 on the customer, are included or not (in the main file). I already have a
 collection of sub-routes which is extending every week.



 My example main route file is called TrisESB-config-intris-erp.xml and the
 sub-route are attached.



 I found the same issue in eclipse-344 (
 http://fusesource.com/forums/thread.jspa?messageID=17641)  but it should
 have solved quite some time ago. I am very confused about the version
 information for the FuseIDE product. Eclipse-344 indicates that this issue
 is solved in version 2.1.0 but I can't find this version number anywhere. I
 download the FuseIDE as part of the jboss fuse page and this gives me a
 download file FuseIDE-6.0.0.129-win32.win32.x86_64.zip. A see here a
 version 6.0.0.129 and zip contains a folder FuseIDE-6.0.0.

 The About FuseIDE window (in eclipse) shows a version 7.6.2 (but I think
 this is the eclipse.exe version).



 Can someone please clear out this version confusion? Can someone tell me
 why my sub-route design windows is blank when I open it?



 --

 Kind regards,
 Ronny Aerts ronny.ae...@intris.be – Intris nv – Wapenstilstandlaan 47,
 2600 Berchem, Belgium
 RD Integration Architect

 Prince II certified

 Tel: +32-3-326.50.75



 Intris nv
 Wapenstilstandlaan 47
 B-2600 Berchem
  Tel.  +32 3 326 50 75
 Fax  +32 3 326 42 23
 *www.intris.be* http://www.intris.be/
 DISCLAIMER
 This is an e-mail from Intris. The information contained in this
 communication is intended solely for use by the individual or entity to
 whom it is addressed.
 Use of this communication by others is prohibited. If the e-mail message
 was sent to you by mistake, please notify supp...@intris.be, destroy it
 without reading, using, copying or disclosing its contents to any other
 person.
 We accept no liability for damage related to data and/or documents which
 are communicated by electronic mail.




-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: VM Queues Disconnected after Karaf Bundle Update

2013-12-19 Thread Thomas Weinschenk
Hi Raul,

I am facing the same problem with 2.12.2 ? But it should be fixed since
2.11.0, how can this be?

Regards,
Thomas



--
View this message in context: 
http://camel.465427.n5.nabble.com/VM-Queues-Disconnected-after-Karaf-Bundle-Update-tp5727205p5745046.html
Sent from the Camel - Users mailing list archive at Nabble.com.


compatible version of apache cxf, spring and camel

2013-12-19 Thread reena upadhyay
I am trying to deploy apache cxf service on camel.Can anybody tell me the 
stable compatible version of apache cxf, spring and camel.I am facing jar 
compatbility issue with different versions. 
  

Re: Oncompletion callbacks and message history of Camel exchanges

2013-12-19 Thread Claus Ibsen
The on completion is called when the exchange is done routing.

So if .to(jms) is InOnly then the exchange is done after it has sent
the message to the queue as fire and forget.
But if .to(jms) is InOut then the exchange is done after it has
received the correlated reply message over JMS.



On Tue, Dec 10, 2013 at 9:01 AM, shindito atanas.shin...@gmail.com wrote:
 Hi guys,

 I want to store exchanges in a cache before processing them with Camel
 routes. Consider the following route:

 from(vm)
 .to(file)
 .to(jms);

 My emitter application performs the following operations:
 1. store exchange in cache
 2. Add oncompletion callback
 3. send exchange to vm (the Camel route takes it from here)

 However, I want to have this exchange purged from the cache only if it has
 been processed by ALL route endpoints - file and jms. My questions are:
 - When gets an http://camel.apache.org/oncompletion.html callback invoked?
 When the final (jms) endpoint is reached, or on every endpoint reached by
 the exchange (file, jms)? When is an exchange completed? Is this
 configurable - to have the callback invoked only when the exchange has been
 sent to all route endpoints?
 - Will the https://camel.apache.org/message-history.html of the exchange
 contain information about all endpoints that have been processed, or only
 about the last one? If only the last endpoint is known, how can I get the
 whole route history?

 Thanks for the assistance.

 Best regards,
 Atanas




 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Oncompletion-callbacks-and-message-history-of-Camel-exchanges-tp5744543.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


RE: Annoying warning (SftpOperations - JSCH - Permanently added XXX to the list of known hosts)

2013-12-19 Thread geppo
Great answer siano!
That worked perfectly.

I'm still getting the following every minute, which is still a bit annoying,
but at least is much shorter and all in one line:
Kerberos username [xxx]: Kerberos username [xxx]: Kerberos username
[xxx]:

Thank you!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Annoying-warning-SftpOperations-JSCH-Permanently-added-XXX-to-the-list-of-known-hosts-tp5745014p5745053.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Aggregator, beyond the simple string example

2013-12-19 Thread Cecilio Alvarez
Hi,

I did long time ago a test to add a child node to an xml root, you could
modify it.

public class XmlAggregator implements AggregationStrategy {

public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {

Document oldBody =
oldExchange.getIn().getBody(org.w3c.dom.Document.class);
Document newBody =
newExchange.getIn().getBody(org.w3c.dom.Document.class);

NodeList list = newBody.getElementsByTagName(tag);

Element element = (Element) list.item(0);

Node copiedNode = oldBody.importNode(element, true);

oldBody.getDocumentElement().appendChild(copiedNode);

oldExchange.getIn().setBody(oldBody);

return oldExchange;
}
}

Hope it help.














--
View this message in context: 
http://camel.465427.n5.nabble.com/Aggregator-beyond-the-simple-string-example-tp5745012p5745055.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: error when invoking service in camel (java.lang.NoSuchMethodError: org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo) through soap ui)

2013-12-19 Thread reena upadhyay
Hi,
I am using latest apache cxf version, 2.7.7, also I have tried with different 
cxf version above 2.6+, and there are no duplicate jars, or the same jar of 
different version. Still I am not able to figure out whats wrong, as the same 
application works fine o jetty server, but on tomcat I am facing the error.
Any idea?
 Date: Wed, 18 Dec 2013 18:52:02 +0100
 Subject: Re: error when invoking service in camel 
 (java.lang.NoSuchMethodError: 
 org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo)
  through soap ui)
 From: elak...@gmail.com
 To: users@camel.apache.org
 
 it looks like you have some very old cxf library on your tomcat, which
 is picked up instead of the one intended.
 
 Can you verify which jars are deployed and make sure the deployed cxf
 jars are consistent?
 
 regards, aki
 
 
 
 
 2013/12/18 reena upadhyay reena2...@outlook.com:
  I have a web application deployed on Tomcat container. I have created a 
  route in camel. When I am trying to invoke the webservice through soap UI. 
  I get following error:
 
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 soap:Body
soap:Fault
   faultcodesoap:Server/faultcode
 
 
  faultstringorg.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo;/faultstring
/soap:Fault
 /soap:Body
  /soap:Envelope
 
  I am trying to run the sample example taken from site:
 
 
  http://10-99.blogspot.in/2011/03/camel-and-cxf-integration-use-cases.html
 
  I am able to invoke the service through soap ui when the war is deployed on 
  jetty container, but if I deploy the war on tomcat I get the mentioned 
  error.
 
 
  On Tomcat console I am able to see below error, When I make request to a 
  service through SOAP UI:
 
  WARNING: Interceptor has thrown exception, unwinding now
  org.apache.cxf.interceptor.Fault: 
  org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo;
  at 
  org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:115)
  at 
  org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
  at 
  org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
  at 
  org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
  at 
  org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:452)
  at 
  org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:196)
  at 
  org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:220)
  at 
  org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:153)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
  at 
  org.apache.cxf.transport.servlet.AbstractCXFServlet.service(AbstractCXFServlet.java:211)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  at 
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  at 
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
  at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at 
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
  at 
  org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:261)
  at 
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
  at 
  org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773)
  at 
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at 
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:724)
  Caused by: java.lang.NoSuchMethodError: 
  org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo;
 
  

Camel Jetty component and overlapping urls when a consumer

2013-12-19 Thread samslara
Hello,
  I have a question about the behavior of the jetty component when in an
OSGi environment (such as in ServiceMix).  If I have two bundles each with a
camel context where one has a route such as:

from uri=jetty:http://0.0.0.0:8080//
...

and the other has a route such as:

from uri=jetty:http://0.0.0.0:8080/application1/
...

and I call the container with

http://myip:8080/application1/a/b/c

Because of the overlapping url but with the second route being more specific
will this request go to the 2nd route, the 1st route, randomly to either or
will something else occur?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Jetty-component-and-overlapping-urls-when-a-consumer-tp5745068.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RecipientList or DynamicRouter or RoutingSlip

2013-12-19 Thread ABouchama
Hello,I have the need :from -- in.header.Recipient=A,B,C -- Send message to
the queue:A with Receiver=A, queue:B with Receiver=B, queue:C with
Receiver=C.I have read the documentation and all EIP, and I'm a bit lost
with what component or what pattern I can use to make this route.Thanks in
advance,



--
View this message in context: 
http://camel.465427.n5.nabble.com/RecipientList-or-DynamicRouter-or-RoutingSlip-tp5745069.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to set proxy excludes on http component?

2013-12-19 Thread JaredBoucher
Hi Willem,

I have a requirement for my current project using camel to be able to
exclude internal hosts in our network from a proxy which allows outbound
traffic.  All external traffic would go through the proxy.  Is there any
plans to support proxy exclusions in the camel context for the
HttpComponent/HttpEndpoint in the near future, as this would be very useful
for our requirements.

Thank you,



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-set-proxy-excludes-on-http-component-tp5726744p5745070.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to set proxy excludes on http component?

2013-12-19 Thread Henrique Viecili
You could set up the system property 'http.nonProxyHosts'

Henrique Viecili


On 20 December 2013 10:40, JaredBoucher jboucher1...@gmail.com wrote:

 Hi Willem,

 I have a requirement for my current project using camel to be able to
 exclude internal hosts in our network from a proxy which allows outbound
 traffic.  All external traffic would go through the proxy.  Is there any
 plans to support proxy exclusions in the camel context for the
 HttpComponent/HttpEndpoint in the near future, as this would be very useful
 for our requirements.

 Thank you,



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/How-to-set-proxy-excludes-on-http-component-tp5726744p5745070.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Re: RecipientList or DynamicRouter or RoutingSlip

2013-12-19 Thread Henrique Viecili
Take a look at Dynamic Recipient List [1], you could use a custom build
bean to define the list of endpoints or a combination of header/tokenizer
to achieve what you want.

[1]
http://camel.apache.org/recipient-list.html#RecipientList-DynamicRecipientList


Henrique Viecili


On 20 December 2013 08:22, ABouchama tit...@yahoo.fr wrote:

 Hello,I have the need :from -- in.header.Recipient=A,B,C -- Send message
 to
 the queue:A with Receiver=A, queue:B with Receiver=B, queue:C with
 Receiver=C.I have read the documentation and all EIP, and I'm a bit lost
 with what component or what pattern I can use to make this route.Thanks in
 advance,



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/RecipientList-or-DynamicRouter-or-RoutingSlip-tp5745069.html
 Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Jetty component and overlapping urls when a consumer

2013-12-19 Thread Willem Jiang
Current Camel Jetty component doesn’t support to share the Jetty component 
across bundle.
So I think if you put two bundles which use the same port into OSGi container, 
you will Socket bind error.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) 
(English)
http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On December 20, 2013 at 4:17:09 AM, samslara (samsl...@yahoo.com) wrote:
  
 Hello,
 I have a question about the behavior of the jetty component when  
 in an
 OSGi environment (such as in ServiceMix). If I have two bundles  
 each with a
 camel context where one has a route such as:
  
  
 ...
  
 and the other has a route such as:
  
  
 ...
  
 and I call the container with
  
 http://:8080/application1/a/b/c
  
 Because of the overlapping url but with the second route being  
 more specific
 will this request go to the 2nd route, the 1st route, randomly  
 to either or
 will something else occur?
  
  
  
 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Camel-Jetty-component-and-overlapping-urls-when-a-consumer-tp5745068.html
   
 Sent from the Camel - Users mailing list archive at Nabble.com.  
  



Re: How to monitor number of open files in camel?

2013-12-19 Thread Bharath
Number of open files in the sense the files which are in process

Questions on Hawtio:

I am using Fuse ESB Enterprise which is running as fabric containers
I installed hawtio feature to this fabric containers
I am not getting fabric option in the browser

As per the documentation i could see 

Currently this hawtio plugin requires JBoss Fuse 6.1 or later. For earlier
versions of Fuse, hawtio works great for Camel, ActiveMQ, OSGi, JMX and so
forth; but hawtio requires the new JMX MBean in version 6.1 of Fuse Fabric
to enable the Fabric plugin.

I referred http://hawt.io/plugins/fabric/


Cheers!!!
Bharath.R 



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-monitor-number-of-open-files-in-camel-tp5745033p5745089.html
Sent from the Camel - Users mailing list archive at Nabble.com.


EventNotifiers not working in OSGi (as imported service)

2013-12-19 Thread Henrique Viecili
I am looking at https://issues.apache.org/jira/browse/CAMEL-5299 and it
says the bug is fixed but I'm facing the same kind of issue when creating
the EventNotifier from another bundle's exported service.

*Bundle 1 (exposes an EventNotifierFactory):*
Export-Service =
com.event.logger.CommonLogEventNotifierFactory

*blueprint.xml:*
service id=commonLogEventNotifierFactory
interface=com.event.logger.CommonLogEventNotifierFactory
bean class=com.event.logger.CommonLogEventNotifierFactoryImpl
/bean
/service


*Bundle 2 (uses the EventNotifierFactory to create EventNotifiers)*
Import-Service =
com.event.logger.CommonLogEventNotifierFactory;multiple:=false

*blueprint.xml:*
reference id=commonLogEventNotifierFactory
interface=com.event.logger.CommonLogEventNotifierFactory /
bean id=commonLogEventNotifierLocal
factory-ref=commonLogEventNotifierFactory
factory-method=createEventNotifier /

The EventNotifier class definition is:
public class CommonLogEventNotifier extends EventNotifierSupport implements
EventNotifier


The curious fact is that if I don't use the factory and create the
CommonLogEventNotifier bean, camel will pick it up.

*Environment:* JBoss Fuse 6.0.0  (camel-2.10.0.redhat-60024)

Regards,
Henrique Viecili