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

2014-07-21 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-165&lang=en 2014-07-22 7:57

Re: Usage of interface NotificationSender and @ManagedNotification

2014-07-21 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-21 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: seda concurrency when sending messages to another route

2014-07-21 Thread Claus Ibsen
On Tue, Jul 22, 2014 at 7:36 AM, Robert Rich wrote: > Sorry for cluttering up the list with thank yous, but this is very helpful. > Thank you! > Hi Do not fell sorry. Welcome to the community. That is what this user list is for, to help each other. Though its volunteer based so people may not

Re: Scheduled Timer and Conditional select using camel-hibernate

2014-07-21 Thread Claus Ibsen
Hi The hibernate component works similar as the jpa component, so you can do similar what the jpa can do. http://camel.apache.org/jpa You can use the @Consumed annotation on the entity to have camel-hibernate call a method where you can set a flag that marks the record as processed https://code.g

RE: seda concurrency when sending messages to another route

2014-07-21 Thread Robert Rich
Sorry for cluttering up the list with thank yous, but this is very helpful. Thank you! -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Tuesday, July 22, 2014 1:33 AM To: users@camel.apache.org Subject: Re: seda concurrency when sending messages to another route

Re: seda concurrency when sending messages to another route

2014-07-21 Thread Claus Ibsen
Hi No the direct component does not use the MEP. It just continues routing the message. And when its done, it returns back to the route that called it. eg from A -> to B -> to direct C -> to D from direct C -> to E -> to F then when its done at F, then it continues in the 1st route, and goes to

Re: readLock=fileLock causes GenericFileOperationFailedException on Windows

2014-07-21 Thread kavita961
Hi, Did anybody get a solution for this error? I am using camel 2.10.4 version and getting the same error. I was not getting this error before, but dont know what happened since past couple of days any huge file that I am trying to process is giving this error. My observation is that its happenin

Camel/ActiveMQ Reuqest/Reply and Transactions

2014-07-21 Thread mattmadhavan
Hello, I have some basic questions on Camel/ActiveMQ transactions with request/reply jms endpoints/ Have the following route. ( i basically took the example request/reply jms example from the Camel in action book and springiified). When I have the *transactionManager *attribute pf the ActiveMQ co

HazelcastMQ Webinar Wednesday July 23rd at 1PM ET

2014-07-21 Thread Mike Pilone
I'll be hosting a webinar on HazelcastMQ this Wednesday, July 23rd at 1PM ET. Of particular interest to this group is that HazelcastMQ includes a Camel component for basic in-process or cluster messaging. The component is similar to the ActiveMQ or JMS components but it works with HazelcastMQ ov

Scheduled Timer and Conditional select using camel-hibernate

2014-07-21 Thread rbkumar88
Hi, I want to do a conditional select on a table using camel-hibernate and it should happen every 1 minute. Once the record is consumed, I also want to mark the record as processed(update some fields in the table). I am able to achieve this using a camel-sql component. But I am looking for a hib

Re: Thread pool profiles - Thread.currentThread().setPriority(MIN_PRIORITY)

2014-07-21 Thread Matt Sicker
ThreadPoolExecutor is the better way to go with this, but you could also try ForkJoinPool if that helps, or check out LMAX: https://github.com/LMAX-Exchange/disruptor On 21 July 2014 22:48, marks1900 wrote: > Matt Sicker wrote > > The Java APIs themselves. They recommend the executor classes a

Re: Thread pool profiles - Thread.currentThread().setPriority(MIN_PRIORITY)

2014-07-21 Thread marks1900
Matt Sicker wrote > The Java APIs themselves. They recommend the executor classes and the > java.util.concurrent classes in general. > > -- > Matt Sicker < > boards@ > > Can you point me to any documentation on this? == Some Thoughts == I did a quick look at the ThreadPoolExecutor class and

Re: Thread pool profiles - Thread.currentThread().setPriority(MIN_PRIORITY)

2014-07-21 Thread Matt Sicker
The Java APIs themselves. They recommend the executor classes and the java.util.concurrent classes in general. On 21 July 2014 21:03, marks1900 wrote: > > > Matt Sicker wrote > > I thought thread priorities were deprecated? > > > > -- > > Matt Sicker < > > > boards@ > > > > > > Just to clarify

Re: Thread pool profiles - Thread.currentThread().setPriority(MIN_PRIORITY)

2014-07-21 Thread marks1900
Matt Sicker wrote > I thought thread priorities were deprecated? > > -- > Matt Sicker < > boards@ > > Just to clarify what is deprecated. Do mean that the Camel Library's use of Java Thread Priorities is deprecated or the Java API's use of thread priorities deprecated (http://docs.oracle.co

HazelcastMQ Webinar Wednesday July 23rd at 1PM ET

2014-07-21 Thread Mike Pilone
I'll be hosting a webinar on HazelcastMQ this Wednesday, July 23rd at 1PM ET. Of particular interest to this group is that HazelcastMQ includes a Camel component for basic in-process or cluster messaging. The component is similar to the ActiveMQ or JMS components but it works with HazelcastMQ ov

Re: How to retrieve Sqs message attributes

2014-07-21 Thread Christian Müller
What did you tried? Best, Christian Am 21.07.2014 08:07 schrieb "david.yuan" : > Hi all, > I created a consumer to poll messages via aws sqs. I can retrieve message > body but can not get message attributes. > > any suggestions? > Thanks in advance > > > > -- > View this message in context: > htt

Re: weaveById - works with 2.13.1, not with 2.14-SNAPSHOT

2014-07-21 Thread Matt Raible
Actually, scratch what I said below - I was testing it on the wrong branch in my project. Making the change in ProcessDefinitionHelper does NOT cause my test to pass. I created a JIRA and attached a sample project that shows this issue. https://issues.apache.org/jira/browse/CAMEL-7622 Thanks,

Re: weaveById - works with 2.13.1, not with 2.14-SNAPSHOT

2014-07-21 Thread Matt Raible
If I remove the continue line on 253 in ProcessDefinitionHelper and install locally (with -DskipTests), my test passes. There is a test failure in camel-core after making this change. AdviceWithPolicyTest>TestSupport.runBare:58->testAdviceWithPolicy:49->ContextTestSupport.assertMockEndpointsS

Re: Exception handling

2014-07-21 Thread Jon Mithe
Thanks, Yeah I'm reading Camel in action, Camel cookbook and EIP. I'm looking into request-reply and in particular what happens if the server making the reply encounters an unexpected exception. I think I'm not quite getting how to do inOut well from both sides and handle the errors. I cant find

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

2014-07-21 Thread Matt Sicker
Shouldn't you be using the JMS or SJMS component instead of the ActiveMQ one? On 21 July 2014 06:54, Frankiboy wrote: > When i try to call MQ from appache camel, i get this error: > > aused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195;AMQ9546: Error return > code received. > > [1=java.lang.N

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

2014-07-21 Thread Matt Sicker
The CachingConnectionFactory should keep a single Connection open that is returned by that factory. I'm not sure on the specifics, but it should do at least what you were originally asking about maintaining a single Connection. On 21 July 2014 02:18, Ali, Mohammad wrote: > Hi, > > Mine is a sta

RE: JSON - Jackson return list rather than POJO

2014-07-21 Thread Daniel Gredler (DHL GM US)
Ha! Since the subject was JSON, I had assumed that the pun had to do with HTTP POST, not with forums... hence my follow up pun referencing HTTP GET :-) Take care, Daniel -Original Message- From: yourboogieman [mailto:eric_gree...@hotmail.com] Sent: Saturday, July 19, 2014 3:19 PM To:

RE: seda concurrency when sending messages to another route

2014-07-21 Thread Robert Rich
Thanks Claus! Is this because it is (as described in the docs) a 'synchronous call to another endpoint'? Does the exchange pattern used in the seda route influence this at all? If it's InOut, does the Out come from the referenced direct route? Sorry for all the questions! -Original Mess

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

2014-07-21 Thread Frankiboy
When i try to call MQ from appache camel, i get this error: aused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195;AMQ9546: Error return code received. [1=java.lang.NoSuchMethodException[com.ibm.mq.jmqi.remote.internal.RemoteFAP.(com.ibm.mq.jmqi.JmqiEnvironment, int)],3=Class.throwNoSuchMethodExcep

Re: Passing SOAP XML to the CXF endpoint

2014-07-21 Thread Aki Yoshida
what's the error? the service returning a soap faull complaing the missign soapaction header? in that case, you need to set the soapaction header (i.e., .setHeader("soapaction", ...) explicitly or set the operation name header (i.e., .setHeader("operationName", ...) so that the correct soapaction

Re: Package camel spring into .jar file

2014-07-21 Thread Aki Yoshida
this is not a camel question and actually it has nothing to do with camel. you need to look at the maven jar archive plugin documentation. http://maven.apache.org/shared/maven-archiver/ in your case, take a look at how the Class-Path header in the manifest file of your jar looks like. You probabl

Re: Exception handling

2014-07-21 Thread Claus Ibsen
Hi I dont think people understand what your problem is. I suggest to study the error handling documentation. And if you have either of the bigger Camel books then they each have a full chapter on error handling, that can help you. On Mon, Jul 21, 2014 at 11:28 AM, Jon Mithe wrote: > Thanks for

Re: Exception handling

2014-07-21 Thread Jon Mithe
Thanks for the help, that makes sense. Have any idea where I maybe going wrong on the exception handling? Struggling to get this working transparently. Thanks, Jon -- View this message in context: http://camel.465427.n5.nabble.com/Exception-handling-tp5754013p5754136.html Sent from the Cam

Re: Sending mail using JAMES Server

2014-07-21 Thread Jishnu
Thank you Reji for your irrelevent ,digressive, tangential extraneous, immaterial, impertinent, orthogonal inapplicable, unsuitable and inappropriate HELP. map.put("Subject",Subject); map.put("To",lhm.get("SUCCESSEMAILI

Re: Sending mail using JAMES Server

2014-07-21 Thread Jishnu
@Reji is there a problem in using it?? -- View this message in context: http://camel.465427.n5.nabble.com/Sending-mail-using-JAMES-Server-tp5753941p5754130.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Classpath problem, any good ideas ?

2014-07-21 Thread Frankiboy
My camel.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cxf="http://camel.apache.org/schema/cxf"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spr

Re: Setting jmx object name (...name=myName)

2014-07-21 Thread dermoritz
I looked into DefaultManagementNameStrategy and DefaultManagementNamingStrategy. The first one can be set on camel context and the last one is used to inject beans. At the end no one helped here but on looking into their code i found that the endoints method "getEndpointKey()" is used to create

test

2014-07-21 Thread Lefillastre Alexandre
test Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de

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

2014-07-21 Thread Ali, Mohammad
Hi, Mine is a standalone application, it's not EJB managed. I am using IBM Websphere MQ as JMS provider, and read in IBM forum that from WAS-7 IBM has removed its connection pooling classes. Will wrapping the IBM connection factory class in spring provided CachingConnectionFactory will do conn

RE: How to get all the properties in the exchange in spring configuration

2014-07-21 Thread Ravindra.Godbole
Naveen You can access specific exchange property like this in the log expression : ${property.CamelCreatedTimestamp} but currently ${properties} does not evaluate to any expression for simple language. Clause, ExpressionBuilder already has a function but it is not used to build functions after