Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Sriraman Gopalan
Dear Willem, With the below mentioned change, I think, Camel can support Aries from 0.3 and above without any issues while addressing the concern of Claus to ensure that Camel supports Aries 0.3 and 1.0.0 as well. This is in the camel-parent project's POM. [0.3,) best regards Sriraman. --

Re: Is it possible for file component to NOT to move the file to .camel directory if there is error in the following endpoint of that route.

2012-08-21 Thread Claus Ibsen
On Tue, Aug 21, 2012 at 9:54 PM, dmhatre wrote: > Hi Folks, > > Need help with this issue. > Is it possible for file component to NOT to move the file to .camel > directory if there is error in the following endpoint of that route. Ex: if > error in processor "corpActionProcessor" can we AVOID mov

Re: Non-polling ssh

2012-08-21 Thread Claus Ibsen
Hi The ssh component should support being a producer as well so you can do http://camel.apache.org/ssh from quartz to ssh split to jms On Wed, Aug 22, 2012 at 4:50 AM, raheem wrote: > Hi, > Is it possible to have a non-polling ssh consumer? What I am trying to do > is to setup a rou

Re: Cannot invoke Otherwise method due to the splitter

2012-08-21 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html On Wed, Aug 22, 2012 at 6:44 AM, Murari Raghavan wrote: > Hello: > > Here is my route. The otherwise() call cannot be invoked because of the > splitter. Is there a way to bypass this issue? > >

Re: HL7 and Custom Models

2012-08-21 Thread Claus Ibsen
On Wed, Aug 22, 2012 at 12:23 AM, christian.ohr wrote: > Yes, as of 2.11 you can configure a dedicated HAPI-Parser instance to be used > for parsing, and of course you can configure this parser as you wish (with > regards to ValidationContext, ModelClassFactory etc.) using the > HL7DataFormat#setP

Cannot invoke Otherwise method due to the splitter

2012-08-21 Thread Murari Raghavan
Hello: Here is my route. The otherwise() call cannot be invoked because of the splitter. Is there a way to bypass this issue? from(inboundroute) .choice() .when(header("CamelFileName").regex("^DDSBATCHSTATUS.*(xml)$")) .to(someroute) .split().method(DDSResponseSplitService.class,

Non-polling ssh

2012-08-21 Thread raheem
Hi, Is it possible to have a non-polling ssh consumer? What I am trying to do is to setup a route such that an event is fired from a quartz scheduled process that starts the route. The route will then ssh to a server and run an ls command on a directory to get a list of all the directories that n

Re: Losing Messages in SEDA endpoint with polling consumer

2012-08-21 Thread raheem
Hi Simon, This may not be an option for you, but I thought I would throw it out there. It looks like this issue is fixed/handled in Camel 2.9 if you use the blockWhenFull option. --Raheem -- View this message in context: http://camel.465427.n5.nabble.com/Losing-Messages-in-SEDA-endpoint-with-

Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Willem jiang
Hi Sriraman, It's good to know you find a way to resolve this issue. Current camel-blueprint is using aries 0.3.x, I'm not sure if it support the aries 1.0 out of box. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (

Re: HL7 and Custom Models

2012-08-21 Thread christian.ohr
Yes, as of 2.11 you can configure a dedicated HAPI-Parser instance to be used for parsing, and of course you can configure this parser as you wish (with regards to ValidationContext, ModelClassFactory etc.) using the HL7DataFormat#setParser method. Until then, your workaround would be to write you

Re: Is it possible for file component to NOT to move the file to .camel directory if there is error in the following endpoint of that route.

2012-08-21 Thread Christian Müller
The file should not be moved into the .camel subdirectory if an exception occurs and it's not handled. You can configure to move it into another (sub) directory if you want. Check out: http://camel.apache.org/file2.html -> moveFailed Best, Christian On Tue, Aug 21, 2012 at 9:54 PM, dmhatre wrote

Is it possible for file component to NOT to move the file to .camel directory if there is error in the following endpoint of that route.

2012-08-21 Thread dmhatre
Hi Folks, Need help with this issue. Is it possible for file component to NOT to move the file to .camel directory if there is error in the following endpoint of that route. Ex: if error in processor "corpActionProcessor" can we AVOID moving the file from c://cameldata/corpactions to c://cameldat

Re: how to test a header with a regular expression ?

2012-08-21 Thread Babak Vahdat
Hi Regexp is supported as well: mockEndpoint.expectedMessagesMatches(header("CamelFileName").regex("test-[0-9]{4}-[0-9]{2}-[0-9]{2}\\.xml")); Babak -- View this message in context: http://camel.465427.n5.nabble.com/how-to-test-a-header-with-a-regular-expression-tp5717768p5717796.html

Jmx Tracer Notifications not displaying

2012-08-21 Thread RobertO
Hi Everyone. I've been trying to get Jmx Notifications working with Camel. I've gone over the documentation here (http://camel.apache.org/camel-jmx.html#CamelJMX-HowtousetheJMXNotificationListenertolistenthecamelevents%3F Section "Using the Tracer mbean to get fine grained tracing") but still seem

Re: Consumers to ActiveMQ shotdown but not reconnecting, even when failover is used

2012-08-21 Thread Miguel Ruiz Velasco Sobrino
On 08/21/2012 11:42 AM, ShlomiJ wrote: We noticed that *after an idle period* (around 40 minutes), during which no new message is put in MyQueue, *when finally a message is sent* over the queue, a *SocketException *is reported in the broker's log. We were able to verify this by the second, from

Re: Consumers to ActiveMQ shotdown but not reconnecting, even when failover is used

2012-08-21 Thread ShlomiJ
We noticed that *after an idle period* (around 40 minutes), during which no new message is put in MyQueue, *when finally a message is sent* over the queue, a *SocketException *is reported in the broker's log. We were able to verify this by the second, from examining the producer log, the broker lo

Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Charles Moulliard
I don't think that WebSphere 8.5 uses Aries 1.0.0. They should always uses 0.3 release (http://aries.apache.org/downloads/currentrelease.html). You can verify that by checking in one of the WAS directory the jars files On Tue, Aug 21, 2012 at 5:47 PM, Sriraman Gopalan wrote: > Dear Willem, > > Di

Re: camelwatch login

2012-08-21 Thread Bilgin Ibryam
Hi Sam, I also tried your application, a very good start! I was thinking may be you can change the default value in camelwatch.properties to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel so that by default it can connect to Camel w/o modifying and restarting the application Cheers B

Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Sriraman Gopalan
Dear Willem, Did some more research. I finally got the eba file deployed to Karaf 3.0.0-SNAPSHOT. However, I had to make the following changes in camel-parent for the aries dependency. Following were the changes: [0.3,) Now, the namespace http://camel.apache.org/schema/blueprint is getting resol

Re: HL7 and Custom Models

2012-08-21 Thread Claus Ibsen
Hi I dont think this is possible to use a custom parser. There is only an option to turn parsing on|off. As we love contributions then fell free to work on a patch with this functionality. Mind that Camel 2.11 onwards has been upgraded to HAPI 2.x and uses Apache Mina 2.x. So the code on trunk i

HL7 and Custom Models

2012-08-21 Thread mconner
I'm trying to use the HL7 component in Camel, but I have a custom model. Outside of camel, I can do this with: new PipeParser(ModelClassFactory theFactory) However, I don't see any direct way to configure that in Camel. In org.apache.camel.component.hl7.HL7Converter (camel-hl7-2.2.0), the p

Re: IBM J9 VM and transactions

2012-08-21 Thread Lars-Erik Helander
I experienced a similar thing the other day. Things did not work as expected and console outprints related to some XML parsing problems. After some "googling" i found that the problem might relate to IBM J9. I checked my system and found out that it had bern started with the IBM JVM. When switc

IBM J9 VM and transactions

2012-08-21 Thread chris . odom
I was wondering if anyone has seen this issue and might be able to give me a direction on how to solve it. Currently I have seen this issue. Lets say I have route A which consumes from queue 1 and produces to queue 2. This is a transacted route using the default Spring Transaction Manager usin

Re: camelwatch login

2012-08-21 Thread Sam (Stephen Samuel)
I've put version 0.4.1 up on github, or you can build from source. Note that I've changed the naming on the properties file for endpoint to endpoint.url and added in user and password properties. On 21 August 2012 09:19, Marco Westermann wrote: > Hi Stephen, > > did you have time to update the l

Re: Validator component + onException

2012-08-21 Thread livensn
As you said, I updated to the most recent version (2.10.0) through maven, but this didn't do the job. :) -- View this message in context: http://camel.465427.n5.nabble.com/Validator-component-onException-tp5717756p5717767.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dzone Refcard

2012-08-21 Thread ceposta
Thx for the feedback. I forgot to have "file component" in my list of 6 (i only listed 5, file is the 6th one). Maybe I'll shorten the section on Mock and add in bean, log, and maybe jdbc and mina? Im trying not to make it too long. I'll post a draft once i've incorporated my updates, hopefully fo

Re: Validator component + onException

2012-08-21 Thread Claus Ibsen
On Tue, Aug 21, 2012 at 1:12 PM, livensn wrote: > Hi, > > I'm using Windows 7. > The .converBodyTo(String.class) part worked :) > Good to know. What Camel versions do you use? Would like to have it working out of the box, and we may have fixed that in a recent release. > Thank you Claus! > > >

Re: Validator component + onException

2012-08-21 Thread livensn
Hi, I'm using Windows 7. The .converBodyTo(String.class) part worked :) Thank you Claus! -- View this message in context: http://camel.465427.n5.nabble.com/Validator-component-onException-tp5717756p5717764.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use request reply in JMS

2012-08-21 Thread Claus Ibsen
On Tue, Aug 21, 2012 at 12:45 PM, agustino wrote: > Hi, > > The problem occurs only when I have .to syntax inside the code. > In this case > .to("activemq://queue:OUTPUT.Q?jmsMessageType=Object&replyTo=REPLY.Q") cause > the error that was stated in the stack trace above. > > I have put replyToType

Re: How to use request reply in JMS

2012-08-21 Thread agustino
Hi, The problem occurs only when I have .to syntax inside the code. In this case .to("activemq://queue:OUTPUT.Q?jmsMessageType=Object&replyTo=REPLY.Q") cause the error that was stated in the stack trace above. I have put replyToType=Exclusive as well but it still give me the error. Thanks. -

Re: Validator component + onException

2012-08-21 Thread Claus Ibsen
Hi What OS and Camel version are you using? And have you tried upgrading to newer releases? And you can also try to load the content into memory before the validator, eg using a .convertBodyTo(String.class) etc. On Tue, Aug 21, 2012 at 12:24 PM, livensn wrote: > Hi all, > > I got the following

Validator component + onException

2012-08-21 Thread livensn
Hi all, I got the following camel route : from("direct:customerroute") .log("File was found in directory: " + customersFolder) .choice() .when(simple("${file:ext} == 'xml' || ${file:ext} == 'XML'")) .log("XML file recognized")

Re: How to use request reply in JMS

2012-08-21 Thread Claus Ibsen
Hi Just configure the name of the reply queue on the from uri. You may want to configure the reply queue as being exclusive then it runs faster. Then when the route completes, the message will be send back to the reply queue. eg in the example below, after the processor has run, the message contai

Re: File Component : Route not picking up files

2012-08-21 Thread Claus Ibsen
On Tue, Aug 21, 2012 at 10:45 AM, livensn wrote: > Hi all, > > I got my camel route which is picking up all files perfectly except for the > ones starting with a "." > So for example: I got a file named ".Contacts.xml". I would think camel > would pick up this file, but instead ignores it. If I re

File Component : Route not picking up files

2012-08-21 Thread livensn
Hi all, I got my camel route which is picking up all files perfectly except for the ones starting with a "." So for example: I got a file named ".Contacts.xml". I would think camel would pick up this file, but instead ignores it. If I rename the file to "Contacts.xml" it gets picked up. Is this s

How to use request reply in JMS

2012-08-21 Thread agustino
Hi All, Is there any example for request reply in JMS? Currently I am using camel 2.10 from("activemq://queue:INPUT.Q?jmsMessageType=Object") .setExchangePattern(ExchangePattern.InOut). .to("activemq://queue:OUTPUT.Q?jmsMessageType=Object&replyTo=REPLY.Q").process(new Processor() {

Netty UDP Consumer not listening

2012-08-21 Thread Benedict Etzel
Hello, I've got a problem concerning receiving UDP packets and passing them on to the Camel route. No packets seem to be received via Camel/Netty, the UDP consumer doesn't seem to be listening at all. My configure() function is as follows: public void configure() throws Exception { from("netty:u

Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Willem jiang
HI Sriraman, For the issue1, you don't need to install the camel-core-xml, as the camel-blueprint bundle already has classes of camel-core-xml. As you didn't have chance to play with WebSphere I can not answer the issue2. But if you look at the camel-blueprint bundle, you should be able find the

Re: camelwatch login

2012-08-21 Thread Marco Westermann
Hi Stephen, did you have time to update the login? regards, Marco Am 16.08.2012 16:06, schrieb Sam (Stephen Samuel): When I get home from work I'll update camelwatch so that you can configure the user and password. It was a bit stupid of me to hardcode that in :) On 16 August 2012 14:19, Marc

Re: Unable to deploy a camel route in websphere application server 8.5

2012-08-21 Thread Sriraman Gopalan
Dear Willem, I did install the camel-blueprint component in the internal bundle repository of websphere. There are 2 issues here. 1. I am not too sure if the camel-core-xml is also required as it seems to be a dependency for the camel-blueprint. However, it is not a valid OSGi bundle in the sen

Re: Dzone Refcard

2012-08-21 Thread Charles Moulliard
Very eclectic list Christian. As Claus mentions, the bean component should part of that list like the file/ftp/log which are the most used. As you propose to cover direct/seda. that could also interesting to include VM and Direct-VM. Maybe jdbc, sql, jpa could also be added ( https://github.com/F

Re: Passing arguments to a customer splitter

2012-08-21 Thread Claus Ibsen
Hi You can read about bean parameter binding which is what is in use when the method is being invoked. http://camel.apache.org/bean-binding.html However you may consider having getter/setters on DDSResponseSplitService and then configure the xslt path on the bean before its being used by Camel. A

Re: Dzone Refcard

2012-08-21 Thread Claus Ibsen
On Mon, Aug 20, 2012 at 10:15 PM, ceposta wrote: > suppose i could have asked this before i started… but i'm almost done with a > dzone refcard for most-used camel components and their configs. I wanted to > limit it to 6 components, and I chose: > > JMS/ActiveMQ > CXF > HTTP4/Jetty > Direct/Seda