Blueprint route not shutdown when using OSGi service processor

2014-01-16 Thread Dominik Amon
Hi all, I am currently working on a Camel project inside Fuse ESB but also saw this problem inside the latest Servicemix release. When using an OSGi service as processor inside a route and I try to uninstall the project the route that uses the processor gets not shut down because it calls the toS

Re: Camel main class in osgi bundle

2014-01-16 Thread Claus Ibsen
Hi Using a spring or blueprint xml file to bootstrap Camel is often much easier, as it does all the OSGi lifecycle and other pieces you otherwise must do yourself. If you dont want to do that, then you need to use an osgi activator to call some code, that creates a OsgiCamelContext and setup a bu

Re: 2.12 Incompatible with Camel Restlet Component?

2014-01-16 Thread Claus Ibsen
Try excluding those old spring jars in the restlet-spring dependency and make sure to run with only the newer and same spring version. On Thu, Jan 16, 2014 at 11:23 PM, kraythe . wrote: > Greetings, > > I wanted to create a little rest let demo but when I tried to run it I got > an odd spring exc

Camel main class in osgi bundle

2014-01-16 Thread Muhzin
Hi all, I am trying to run camel application in karaf. I new to programming for osgi. How can I make my camel routes run in it? Can i put it in a normal main() class and run it? -- BR Muhsin

2.12 Incompatible with Camel Restlet Component?

2014-01-16 Thread kraythe .
Greetings, I wanted to create a little rest let demo but when I tried to run it I got an odd spring exception. It seems that rest let depends on older spring jars than Camel does and this causes confusion. Anyone have an idea how to work around this? The exception and the maven dependency tree ar

RE: Consuming multiple JMS messages in one single transaction

2014-01-16 Thread ravi.puli
Hi, If I understand correctly, it looks like sjms is not to read multiple messages but read a single BatchMessage which is an ArrayList of messages. Do we have any solution to consume multiple (chunk) JMS messages in a single transaction? Regards RK -Original Message- From: bengt.rod

Re: JVM is running out of memory during full Camel build

2014-01-16 Thread MichaelAtSAG
I ran it again with 2GB and hit compile exception at same point: set MAVEN_OPTS=-Xms528m -Xmx2024m Failure: [INFO] [INFO] Building Camel :: Web 2.13-SNAPSHOT [INFO] --

JVM is running out of memory during full Camel build

2014-01-16 Thread MichaelAtSAG
Hi, I just tried to build the Camel trunk, but the compiler continues to ran out of memory. Note that I have modified Maven options to 1GB of memory: d:\source\camel>set MAVEN_OPTS=-Xms128m -Xmx1024m d:\source\camel>mvn clean install -Pfastinstall Does Maven need more memory? The private worki

Re: PGP decryption from File route

2014-01-16 Thread hshicx
Hi, I have identified two possible issues with the decryption using PGPFormat or with the way I have been using it. *Issue 1:* PGPFormat unmarshalling seems to not work when the body is of type *org.apache.camel.component.file.GenericFile* which is what the camel-file producer is providing. The

[ANNOUNCE] Apache Camel 2.11.3 Released

2014-01-16 Thread hadrian
The Apache Camel project [1] is a powerful open source integration framework based on known Enterprise Integration Patterns [2]. The Camel community announces the immediate availability of the new patch release camel-2.11.3. The artifacts are published and ready for you to download [3] either

Re: Camel MongoDB Bug related to Type Conversion

2014-01-16 Thread anand_tech
Thanks for suggestion, I have placed a JSON validator in place for now. Please let me know when this fix will be available. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-MongoDB-Bug-related-to-Type-Conversion-tp5746090p5746095.html Sent from the Camel - Users mailing

RE: Camel/ActiveMQ/JmsProducer hung

2014-01-16 Thread Doyle, Aaron R
Nevermind, I figured this out. I didn't have enough sessions in the pool. I increased the maximumActiveSessionsPerConnection property and it is now working properly. I have a camel route consuming from an ActiveMQ queue, using 8 concurrent consumers,

Re: Camel MongoDB Bug related to Type Conversion

2014-01-16 Thread Raul Kripalani
Hello, Yes, as far as I remember the Type Converter Registry memorises what converters were successful in converting from a given source to a destination type, with the goal of speeding up the resolution of future type conversion attempts. Probably this converter is getting blacklisted due to the

Re: Web filter and camel-servlet

2014-01-16 Thread helander
The servlet has a name parameter. But if id had not have a name, would that have made any difference? /Lasse -- View this message in context: http://camel.465427.n5.nabble.com/Web-filter-and-camel-servlet-tp5746054p5746093.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel MongoDB Bug related to Type Conversion

2014-01-16 Thread anand_tech
Hi All, I have come across an issue in Camel's mongo component. Problem is if you try some operation through camel mongo and give incorrect json (i.e. wrong format extra comma or something) it throws NoTypeConversionAvailableException or so. If you try again but with correct json, exception will b

Re: Reroute from onException Handler Processor

2014-01-16 Thread alex
It works when I config an interceptor and set a header value in "onException-handler": interceptFrom() .when(header("somethingFailed").isEqualTo(Boolean.TRUE)) .process(new Processor() { @Override public void proce

Re: Unit Testing Question

2014-01-16 Thread Castyn
I've been reading over all of the test documentation and Mock documentation. It seems that I should be able to just setup a mock endpoint for the URI of the processor and use the producer template to send the information to the endpoint and run the asserts on that endpoint. Is that a proper usage

Re: Breadcrumid not unique

2014-01-16 Thread stephane baudouin
Many Thanks, This is exactly What I was looking for ... Regards, Stéphane. -- View this message in context: http://camel.465427.n5.nabble.com/Breadcrumid-not-unique-tp5746052p5746087.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Reroute from onException Handler Processor

2014-01-16 Thread stephane baudouin
just inside of the onexception block, you do not need any intercept in your case : @Override public void configure() throws Exception { onException(Exception.class) .maximumRedeliveries(10) .redeliveryDelay(2500) .handled(true) .to("direct:RO

unit test netty decoder

2014-01-16 Thread Mark
I have a specialized decoder that I am trying to figure out how best to unit test. I looked through the netty unit tests in the camel source code but nothing seems to do what I'm looking to do. Any thoughts?

Re: Reroute from onException Handler Processor

2014-01-16 Thread alex
you got it from here: http://camel.apache.org/intercept.html i guess? i have no idea how to use this: interceptSendToEndpoint("mock:foo").skipSendToOriginalEndpoint() .transform(constant("Bye World")).to("mock:detour"); inside a onException part or how to trigger the interceptSendToEndpoint.

camel activemq, POJO producer is null

2014-01-16 Thread m.mcinness1
Hi. I am new to camel and I'm trying to set up a POJO producer for an activemq component, following the instructions here: http://camel.apache.org/pojo-producing.html I'm using camel via servicemix 4.5.3 (camel 2.10.7) and am using the embedded activemq broker (ActiveMQ 5.7.0). I have an interf

Re: Web filter and camel-servlet

2014-01-16 Thread Sergey Beryozkin
Hi, On 16/01/14 14:47, helander wrote: Hi Sergey, I am not sure what you mean by side-effects, I thought for a moment it was to do with the security filters having no effects but this is what I see (or really: NOT see) : I have a web application (WAR) that have a Web Filter and a Camel Servl

Re: Web filter and camel-servlet

2014-01-16 Thread helander
Hi Sergey, I am not sure what you mean by side-effects, but this is what I see (or really: NOT see) : I have a web application (WAR) that have a Web Filter and a Camel Servlet. This filter is used throughout a number of applications and is configured to be activated by all requests ("/*") to the

Issue with Camel logs

2014-01-16 Thread Ankur
Hi All, i'm stuck with one issue in which i want to stop camel logs which is generating on his own. Even i had changed the debug level in log4j.xml from "debug" to "info". The logs which are coming are somekind of weird. for e.g My route look like this After modifying log4j.xml al

Re: Transaction spanning multiple routes separated by seda queue

2014-01-16 Thread Claus Ibsen
On Thu, Jan 16, 2014 at 10:57 AM, gilboy wrote: > Hi > > I have a route to consume a message from a JMS Topic, do some processing on > it and then place on a SEDA Queue. > > My second route will consume the message from the SEDA queue and place on a > different JMS Topic. > > I want to ensure that

Re: Web filter and camel-servlet

2014-01-16 Thread Sergey Beryozkin
Hi On 16/01/14 12:58, helander wrote: It seems like camel-servlet "bypasses" web filters in my container. Is this correct? Anything that could be done to have the requests to the camel-servlet pass a web filter prior to hitting the camel-servlet? What side-effects do you observe in your case ?

Re: Breadcrumid not unique

2014-01-16 Thread Claus Ibsen
Hi See http://camel.apache.org/uuidgenerator.html On Thu, Jan 16, 2014 at 1:48 PM, baudoust wrote: > Hello, > > I am running Camel 2.11 under websphere 7 on solaris and it looks like > several incoming message are getting the same breadcrumId, is there any > known bug around this ? all message a

Re: JMX ProcessorId Question

2014-01-16 Thread Claus Ibsen
In the route you can just name the processors / eips etc you want to have a special name using .id from x to y .id("someNameHereForY") to z On Thu, Jan 16, 2014 at 1:04 PM, duncanto wrote: > Is there a way to configure the JMX ProcessorId for some of our processes to > enable our support tea

JMX ProcessorId Question

2014-01-16 Thread duncanto
Is there a way to configure the JMX ProcessorId for some of our processes to enable our support team to easily monitor specific route processors. The default Proccessor Definition naming results in naming them process1 ... processN from the DefaultNodeIdFactory The solution was to plug in a custo

Web filter and camel-servlet

2014-01-16 Thread helander
It seems like camel-servlet "bypasses" web filters in my container. Is this correct? Anything that could be done to have the requests to the camel-servlet pass a web filter prior to hitting the camel-servlet? /Lasse -- View this message in context: http://camel.465427.n5.nabble.com/Web-filter

Re: Reroute from onException Handler Processor

2014-01-16 Thread stephane baudouin
Hi, something like .skipSendToOriginalEndpoint() .to("direct:ROUTE_3") inside the onException should do the job or am I wrong ? -- View this message in context: http://camel.465427.n5.nabble.com/Reroute-from-onException-Handler-Processor-tp5746043p5746053.html Sent from t

Breadcrumid not unique

2014-01-16 Thread baudoust
Hello, I am running Camel 2.11 under websphere 7 on solaris and it looks like several incoming message are getting the same breadcrumId, is there any known bug around this ? all message are coming in trough different Mqseries JMS queues, so endpoints are differents, same breadcrum is even shared b

RE: StreamCaching and multiple context

2014-01-16 Thread Zulio84
siano wrote > Hi, > > This looks like https://issues.apache.org/jira/browse/CAMEL-7087 . It is > supposed to be fixed in Camel 2.12.3 that should be released very soon. > > Best regards > Stephan It seems exactly my problem! I wait for the new release! Thanks Zulio -- View this message in

RE: StreamCaching and multiple context

2014-01-16 Thread Siano, Stephan
Hi, This looks like https://issues.apache.org/jira/browse/CAMEL-7087 . It is supposed to be fixed in Camel 2.12.3 that should be released very soon. Best regards Stephan -Original Message- From: Zulio84 [mailto:giulianopint...@hotmail.com] Sent: Donnerstag, 16. Januar 2014 11:11 To: us

Reroute from onException Handler Processor

2014-01-16 Thread alex
Dear All, I would like to know if there is a possibility to reroute from onException-Handler Processor ? from("direct:ROUTE_1") // Exception handling .onException(Throwable.class) .continued(true) .process(new Processor() {

Re: Transaction spanning multiple routes separated by seda queue

2014-01-16 Thread David Karlsen
AFAIK this is not supported, because transactions are threadbound and the SEDA stuff will run of another thread than the one that started the transaction, and hence not able to participate in it. 2014/1/16 gilboy > Hi > > I have a route to consume a message from a JMS Topic, do some processing

Re: StreamCaching and multiple context

2014-01-16 Thread Zulio84
Claus Ibsen-2 wrote > Try a SNAPSHOT as we fixed something related to that. Where can I find the configuration mvn to use the snapshot, there is' some reference to the site http://camel.apache.org ? Claus Ibsen-2 wrote > You can also load the content into memory using > .convertBodyTo(byte[].cla

Transaction spanning multiple routes separated by seda queue

2014-01-16 Thread gilboy
Hi I have a route to consume a message from a JMS Topic, do some processing on it and then place on a SEDA Queue. My second route will consume the message from the SEDA queue and place on a different JMS Topic. I want to ensure that the message only gets de-queued from the first Topic which it

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-16 Thread contactreji
Hi Williem Thanks brother for the advice. My package name was different from that of the Class which was in the application which en-queued the object. I fixed it by keeping same package name Regards Reji -- View this message in context: http://camel.465427.n5.nabble.com/Moving-Objects-betwe

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-16 Thread contactreji
Hi Claus Thanks a lot! I had the exact copy of annotated class at both server and client end. But sadly I didn't notice that package name was different. Once was com.example.Student and other was com.queueshifter.Student After renaming the package with the same name as the other, it worked like

PGP decryption from File route

2014-01-16 Thread hshicx
Hi, II am trying to decrypt a pgp file using the Camel PGP format. The route reads a PGP encrypted file from a folder and send it for decryption as shown below. *from('file:/home/user/Outbound?charset=utf-8&move=.processed&moveFailed=.failedProcessing&include=.*.xml.gpg&delete=false').to('direct

Re: Difference in standalone main class

2014-01-16 Thread Muhzin
Hi, Thanks for the advice Claus Ibsen. It was very helpful. On Thu, Jan 16, 2014 at 1:20 PM, Claus Ibsen wrote: > On Thu, Jan 16, 2014 at 6:15 AM, Muhzin wrote: > > Hi, > > I am new to camel > > can anyone please explain the difference between the the main class > > provided in camel to make

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-16 Thread Claus Ibsen
Its IMHO better to not use Java Objects with JMS. Otherwise you need to make sure the same classes are on the classpath on both the clients and servers, and that they are compatible. Instead you can tell Camel to use javax.jms.TextMessage as your POJO is a JAXB annotated that can be marshalled int