Re: Anyone seen this problem: Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195

2014-07-22 Thread Frankiboy
Thanks for the reply. All the examples i have looked at is this the way to do it, yes its possible to use sjms, this is new, and there stille some problems using it. I have struggelt with this problem for 2 days now, i dont know what my problem is here Frank -- View this message in context:

Re: Usage of interface NotificationSender and @ManagedNotification

2014-07-22 Thread dermoritz
Thanks for the hint Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Usage-of-interface-NotificationSender-and-ManagedNotification-tp5753980p5754186.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Anyone seen this problem: Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195

2014-07-22 Thread David Karlsen
Have you added all the mq jars? There is quite a number of them. And are they all from the same mq version? You have a list of errorcodes here: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqsao.doc/fm13700_1.htm?cp=SSFKSJ_7.0.1%2F1-28-46-1-0-165lang=en 2014-07-22 7:57

Re: Anyone seen this problem: Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195

2014-07-22 Thread Frankiboy
Thanks I use this jar files: com.ibm.mq.commonservice.jar com.ibm.mq.headers.jar com.ibm.mq.mq.jar com.ibm.mq.jmqi.jar com.ibm.mq.pcf.jar All version 7.0.1.1 I looked at the RC2195, and that tells my that i have to contact the system programmer, but but, he is on holliday to monday... So

Re: Exception handling

2014-07-22 Thread Claus Ibsen
Hi Sending back a reply message from an exception depends if the component support that. For example the jms component has a transferException option you must enable. http://camel.apache.org/jms Usually you may want to handle the exception using .handle(true) and then transform the message to

Need Feedback for a new book - “Apache Camel Developer's Cookbook”

2014-07-22 Thread Paush
Hi guys, I'm looking for some feedback on a recently published book on Apache Camel, namely, Apache Camel Developer's Cookbook http://www.packtpub.com/apache-camel-developers-cookbook/book . Link to the book page: http://www.packtpub.com/apache-camel-developers-cookbook/book

Camel splitter threadpool configuration : messages stuck in queue ?

2014-07-22 Thread A577127
Hi everyone, I'm working with camel to build a server that involves a lot of parallel processing, and some of my messages get stuck somewhere. I will try to explain my problem by explaining what I'm doing. I have this camel route : The idea is that the REST request that triggers the route

Re: How to remove intercept() or process() from superclass with adviceWith

2014-07-22 Thread mikaelst
Please -- View this message in context: http://camel.465427.n5.nabble.com/How-to-remove-intercept-or-process-from-superclass-with-adviceWith-tp5753834p5754195.html Sent from the Camel - Users mailing list archive at Nabble.com.

What would be the benefits of running Camle on osgi?

2014-07-22 Thread user3152723
It is recommended to use blueprint with Camel if you run your routes on osgi. But what would you miss out if your choose to run Camel routes in / imbedded in Spring (SpringBoot) in stead of Karaf? You anyway get the ease of testing with Spring. Using Fuse : Camel, Activemq, and starting with

Re: What would be the benefits of running Camle on osgi?

2014-07-22 Thread akoufoudakis
That is what official Red Hat Fuse ESB Enterprise documentations says: When trying to decide between the blueprint and Spring dependency injection frameworks, bear in mind that blueprint offers one major advantage over Spring: when new dependencies are introduced in blueprint through XML schema

Re: Camel splitter threadpool configuration : messages stuck in queue ?

2014-07-22 Thread Ravi Godbole
Are you getting any memory specific issues which indicate inability of system to create indefinite threads ? It seems you want to spawn as many threads as possible in order to execute the job faster. Have you tried following option and played around with number of threads in the pool ? [ in the

Re: Exception handling

2014-07-22 Thread Jon Mithe
Hi, Yeah that's the bit I'm struggling back with I though with the inOut if an exception was thrown / not handled then camel would return something back automatically so that the exchange would say fault and the original route would continue from the inOut. So I was thinking something like

context stoping to many time

2014-07-22 Thread alexey-s
Help to understand the following information karaf@root camel:route-list ContextRoute Status ---- -- camel-exchange-oos-dict-read route-exchangeDictRead

Re: What would be the benefits of running Camle on osgi?

2014-07-22 Thread Charlie Mordant
I think it is also a question of modularity/concern. The major subject of Camel is to make routes between services (EIPs). So everytime you deploy a new service (and so modify your routes) you'll have to stop and restart them. Now, if you have mutliple routes on the same Vm and use Spring, a

RE: JMS producer creating connection for every message causing performance issue

2014-07-22 Thread Ali, Mohammad
Thanks for your reply Matt. I have tried using CachingConnectionFactory and now it creates only one connection. But the issue with this is when I stop the camel route, I can see the connection is still open in the IBM MQ explorer. Also when I restart the camel route again it creates a new

Re: Camel splitter threadpool configuration : messages stuck in queue ?

2014-07-22 Thread A577127
Thanks for your reply. Uh ok, I put the wrong log4j level and didn't saw all the OutOfMemoryErrors... Using Executors.newFixedThreadPool(1000) looks good. However as you pointed out, I'm looking for the best number of threads. Am I forced to define a static (max) size ? I hoped that the

Log out sent xml data for cxf producer

2014-07-22 Thread dermoritz
Is there an easy way to log the xml data sent to a web service? We need this only for debugging. So if this could be switched with loglevel would be great. -- View this message in context: http://camel.465427.n5.nabble.com/Log-out-sent-xml-data-for-cxf-producer-tp5754245.html Sent from the

Re: Log out sent xml data for cxf producer

2014-07-22 Thread Claus Ibsen
Apache CXF has some logging information here. I think you need to add some cxf logging intercepts. But you can then turn their logging level accordingly what you want http://cxf.apache.org/docs/debugging-and-logging.html And there is also something about logging here

Re: Log out sent xml data for cxf producer

2014-07-22 Thread dermoritz
Thanks this was fast, in meanwhile i found this from (http://stackoverflow.com/questions/23339650/capturing-apache-camel-route-cxf-web-response) from uri=file:src/data?noop=true / log loggingLevel=INFO message=${body}/ to

Re: What would be the benefits of running Camle on osgi?

2014-07-22 Thread Charlie Mordant
For testing, you have some frameworks with OSGI too: * You can use Spring for unit testing (it will replace blueprint as test context) * You can use pax-exam (maybe with karaf-pax-exam-container) for integration testing (all your stack, as you would do with spring/tomcat) 2014-07-22 13:59

Re: Log out sent xml data for cxf producer

2014-07-22 Thread dermoritz
found loggingFeatureEnabled if set to true all in- and outbound messages are logged. The only problem with it is: it is logging as info what is not appropriate. -- View this message in context: http://camel.465427.n5.nabble.com/Log-out-sent-xml-data-for-cxf-producer-tp5754245p5754251.html

Camel 2.13.1 MyBatis Batch Insert to Oracle 11g Table ORA-00933: SQL command not properly ended

2014-07-22 Thread sandeepreddip
Hi, I'm trying to insert a list of data to a table using MyBatis Batch.The query seems to be fine as I was able to insert the data successfully from a a SQL client, but fails with MyBatis. Below are the Camel DSL Route, Mapper Query, SQL Log and Exception trace and SQL Query that run

Re: Camel 2.13.1 MyBatis Batch Insert to Oracle 11g Table ORA-00933: SQL command not properly ended

2014-07-22 Thread sandeepreddip
I ran the same case directly by obtaining a MyBatis SqlSessionFactory and it ran fine. The only difference I see is the way I used it in the Camel Route and API call is: *From Camel Route:* .to(mybatis:insertTransactionBids?statementType=*InsertList*executorType=batch) *MyBatis API call:*

Exception on adding throttle Definition has no children on Throttle

2014-07-22 Thread dermoritz
i am creating some routes with jave in a for loop (all is working fine). now i need to add throttle to the outer route definition but with it i get: Exception in thread main org.apache.camel.FailedToCreateRouteException: Failed to create route cepToRtdmdfESP://192.168.154.128:5/TEST/TEST/PCRF

Re: Exception on adding throttle Definition has no children on Throttle

2014-07-22 Thread Claus Ibsen
Hi You need to use the fluent builder that is returned, something alike this ProcessorDefinition pd = from(fromEndpoint) if(throttleOn){ pd = pd.throttle(10) } pd = pd.process(someProcessor) On Tue, Jul 22, 2014 at 8:03 PM, dermoritz tantea...@hotmail.com wrote: i am creating

Behavior of onCompletion for exception, fault and stop

2014-07-22 Thread jorabin
Hi I have been looking at onCompletion in 4 scenarios: a) normal - exchange finishes normally b) on exception - an exception is thrown and handled c) stop is called in the route d) the faultBody is set It looks to me as though onCompletion is not triggered when stop is called but is in the other

Re: Exception on adding throttle Definition has no children on Throttle

2014-07-22 Thread dermoritz
Thanks for quick reply (it is working), the only downside on this is i can't call autoStartup(false) on ProcessorDefinition. The only workaround i see is to use another variable for ThrottleDefinition or set autoStartup on RouteDefinition and then cast to ProcessorDefinition? -- View this

Adding HTTP Headers to All Jetty Routes

2014-07-22 Thread Gavagai
Hi all - I am trying to add some headers to the exchange's out on all routes. Specifically, I would like to add the following to support CORS: exch.out.headers['Access-Control-Allow-Origin'] = '*' exch.out.headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'

Re: What would be the benefits of running Camle on osgi?

2014-07-22 Thread Matt Sicker
Fabric only supports Karaf right now, but it's supposed to add support for more servers over time (I think Tomcat or Jetty was one of them). On 22 July 2014 10:47, Charlie Mordant cmorda...@gmail.com wrote: For testing, you have some frameworks with OSGI too: * You can use Spring for unit

Re: JMS producer creating connection for every message causing performance issue

2014-07-22 Thread Matt Sicker
You'd need some sort of stale connection checking. If you combined commons-pool2 with the JMS API, you could make a simple connection pool that uses ConnectionFactory to create new connection objects. This library has a bunch of pooling concepts already coded in (like activating/passivating,

Transactions on POJO ProducerTemplates

2014-07-22 Thread Robert Dare
Hi, I am producing events through a centralized Spring managed bean that uses the @EndpointInject annotation. @EndpointInject(uri=direct:*incomingEvents*) These events are then routed to individual queues based on a header value: route xmlns=http://camel.apache.org/schema/spring; id=mainRoute

Re: How to retrieve Sqs message attributes

2014-07-22 Thread Bilgin Ibryam
Have you checked CamelAwsSqsMessageAttributes and CamelAwsSqsAttributes headers? It is best if you log the whole exchange exactly after consuming to see for yourself which headers are populated. Something like: from(aws-sqs:foo). to(log:com.mycompany.order?showAll=truemultiline=true); HTH,

transform component

2014-07-22 Thread Lowry
I have a camel route that routes from a Camel CXF (producer) Endpoint, performs some transformation, then the route sends to a CXF (consumer) Endpoint. I've tried options like XSLT, xquery, and velocity, for performing the transformation step - but the developers I'm working with would prefer a

Re: Log out sent xml data for cxf producer

2014-07-22 Thread Willem Jiang
The loggingFeature is mainly for debugging.  If you want to change the log level you may need to setup your own logger interceptor to the cxf endpoint yourself. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com

Re: Classpath problem, any good ideas ?

2014-07-22 Thread Willem Jiang
Can you double check if there are different version JMS API jars  in you war and web sphere container? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On July 21,

Camel Java routes using Timer firing only once

2014-07-22 Thread mikes300
I can get routes kicked off in Java DSL however the timer routes execute once and only once no matter what. Here is a sample of what I have, very easy/simple. But it just fires once. Successfully, but just once.