Re: 2.12 Incompatible with Camel Restlet Component?

2014-01-17 Thread kraythe .
I am just trying to toss up a quick REST interface for a a couple calls in a remote system without going to all of the trouble of using RESTeasy or any of the other frameworks. If I could just get a quick camel route to do what I need then life would be grand. Restlet sounded promising but with the

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

2014-01-17 Thread Babak Vahdat
Hi The problem is that you *only* specify the initial and maximum heap size and leave the permanent generation space to be the default. Look at the options Claus has already provided by his reply and try again (... -XX:MaxPermSize=512m). Babak Am 17.01.14 18:20 schrieb "MichaelAtSAG" unter :

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

2014-01-17 Thread MichaelAtSAG
I do not understand what this means. -- View this message in context: http://camel.465427.n5.nabble.com/JVM-is-running-out-of-memory-during-full-Camel-build-tp5746106p5746166.html Sent from the Camel - Users mailing list archive at Nabble.com.

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

2014-01-17 Thread MichaelAtSAG
Build still complaining about memory. It works if I disable the camel-web module: -- View this message in context: http://camel.465427.n5.nabble.com/JVM-is-running-out-of-memory-during-full-Camel-build-tp5746106p5746165.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem with camel routes running in apache-karaf-2.3.3

2014-01-17 Thread andrzej.majewski
I created a JIRA ticket https://issues.apache.org/jira/browse/CAMEL-7139 -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-camel-routes-running-in-apache-karaf-2-3-3-tp5745929p5746164.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel activemq, POJO producer is null

2014-01-17 Thread Claus Ibsen
Hi Your bean MyBean needs to be managed its lifecycle by spring, so you can for example add a then the injection of @Producer and whatnot should happen. On Thu, Jan 16, 2014 at 4:56 PM, m.mcinness1 wrote: > Hi. > > I am new to camel and I'm trying to set up a POJO producer for an activemq > co

Re: 2.12 Incompatible with Camel Restlet Component?

2014-01-17 Thread Claus Ibsen
what do you need restlet-spring for? What does it bring to the table? On Fri, Jan 17, 2014 at 5:25 PM, kraythe . wrote: > Actually that didn't work. Id have to specify all of the spring jars as > non-transitive dependencies. I am thinking of using another component to > put up the rest api, seems

Re: 2.12 Incompatible with Camel Restlet Component?

2014-01-17 Thread kraythe .
Actually that didn't work. Id have to specify all of the spring jars as non-transitive dependencies. I am thinking of using another component to put up the rest api, seems like RESTLet is pretty far behind the spring curve. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore

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

2014-01-17 Thread kraythe .
Make sure, also, in your maven pom that i you are forking the VM for testing that you provide the forked VM with enough memory. The Maven opts will not be propagated to the forked VM so beware of that. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Mainta

Re: Unit Testing Question

2014-01-17 Thread kraythe .
There are a number of examples on the camel testing page. However I can provide perhaps some information. Mock endpoints are just recorders of information the previous poster used in example. Normally an endpoint doesn't keep track of what exchanges go through it but mock ones do. You can also mock

Re: 2.12 Incompatible with Camel Restlet Component?

2014-01-17 Thread kraythe .
I will give that a shot and let you know how it turns out. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 *

Re: Unit Testing Question

2014-01-17 Thread Henryk Konsek
> I don't really understand yet how mock endpoints work, I am seeking a simple > example to help get me over this. You can test your processor with Mock endpoint by using the latter to catch exchange processed by the former. // Fixtures from("direct:test").process(new testProc()).to("mock:test");

problem in recipientList with onPrepareRef

2014-01-17 Thread ABouchama
Hello, The problem: we send a message the queue OUT, the message should be sent 2 times to the queue A, and 1 to the queue B, and we should have the following result: 1. Msg = should be in the queue A, with header invoked=1 2. Msg = should be in the queue B, with header invoked=2 3. Msg = should

Re: Camel JMS Queue Selector Problem

2014-01-17 Thread Claus Ibsen
Hi This is maybe fixed in a newer release. Try upgrading as we suggest here http://camel.apache.org/support On Fri, Jan 17, 2014 at 12:43 PM, Edwin wrote: > Using 2.10.3 > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-Queue-Selector-Problem-tp5746138p574

Re: Camel JMS Queue Selector Problem

2014-01-17 Thread Edwin
Using 2.10.3 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-Queue-Selector-Problem-tp5746138p5746147.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel JMS Queue Selector Problem

2014-01-17 Thread Claus Ibsen
What version of Camel do you use? On Fri, Jan 17, 2014 at 11:20 AM, Edwin wrote: > Hi Folks, > > I am encountering some issues when trying to implement a selector of a JMS > queue. My route is defined in the Spring DSL as follows: > > > > > > >

Re: PGP decryption from File route

2014-01-17 Thread Franz Paul Forsthofer
Hi Hassan, I also tested the route with the direct endpoint. It also worked in the snapshot version. Regards Franz On Fri, Jan 17, 2014 at 11:07 AM, hshicx wrote: > Hi, > > To be more precise in my example for Issue 1, I am using a "direct:" between > the file producer and the PGP decryption: >

Re: Problem Running Loan Broker Web Service Example

2014-01-17 Thread Richard Kettelerij
- Have you tried navigating with your browser to http://localhost:9008/loanBroker? - Check netstat -a and see if there's a process listening on port 9008 - Disable your OS firewall and see if it makes any difference. On Fri, Jan 17, 2014 at 11:27 AM, jameskisp wrote: > Hi, > > I am studying & tr

Re: Bean constructor Argument

2014-01-17 Thread Claus Ibsen
Hi See the blueprint documentation at http://aries.apache.org/modules/blueprint.html On Fri, Jan 17, 2014 at 11:26 AM, Muhzin wrote: > Hi all, > How can you give a give a constructor argument when creating a bean for > camel-blueprint? > > -- > BR > Muhsin -- Claus Ibsen - Re

RE: Camel main class in osgi bundle

2014-01-17 Thread Siano, Stephan
Hi, If you instantiate a bean it is automatically put into the registry (wit it's id). If you reference it (e.g. becaust it is an OSGi service) you put an id attribute into the reference tag. You don't write where you get the sqsClient from. This could be something like Probably you want to

Problem Running Loan Broker Web Service Example

2014-01-17 Thread jameskisp
Hi, I am studying & trying out Camel loan broker example. I have downloaded Camel 2.12.2 on Windows 7 with JDK 1.7.0_51. When I run the loan broker example web services client, I would get the following error. Please not that I have started the example LoanBroker service without any problem bef

Bean constructor Argument

2014-01-17 Thread Muhzin
Hi all, How can you give a give a constructor argument when creating a bean for camel-blueprint? -- BR Muhsin

Camel JMS Queue Selector Problem

2014-01-17 Thread Edwin
Hi Folks, I am encountering some issues when trying to implement a selector of a JMS queue. My route is defined in the Spring DSL as follows: When messages with header "EVENT" set to 1

Re: Camel main class in osgi bundle

2014-01-17 Thread Muhzin
Thanks for the reply. I have a doubt, how we can add beans such as sqsClient to registry so that I can use them in route configuration? On Fri, Jan 17, 2014 at 3:07 PM, Siano, Stephan wrote: > Hi, > > First of all you create a class foo.bar.impl.MyProcessor implements > Processor somewhere in

Re: PGP decryption from File route

2014-01-17 Thread hshicx
Hi, To be more precise in my example for Issue 1, I am using a "direct:" between the file producer and the PGP decryption: *from('file:/home/user/Outbound?charset=utf-8&move=.processed&moveFailed=.failedProcessing&include=.*.xml.gpg&delete=false').to('direct:pgpDecryptStep'); PGPDataFormat pgpFm

Re: PGP decryption from File route

2014-01-17 Thread hshicx
Hi, I can see that a fix for issue 2 has been committed to the snapshot 13 days ago. The code I patched is from Camel version 2.12.2. It might be a better idea to let *PGPSecretKeyRingCollection.getSecretKey(keyid)* find the secret key instead of looping through the collections as I believe PGP

RE: Camel main class in osgi bundle

2014-01-17 Thread Siano, Stephan
Hi, First of all you create a class foo.bar.impl.MyProcessor implements Processor somewhere in your project. You can instantiate this in your blueprint with a Beans like this are also available in the blueprint registry, so if you instantiate or reference the sqsClient this way, you can use it

Re: PGP decryption from File route

2014-01-17 Thread Franz Paul Forsthofer
Hi, I also tested the Issue 1 in the current snapshot version. There it did not occur. Regards Franz On Thu, Jan 16, 2014 at 8:19 PM, hshicx wrote: > Hi, > > I have identified two possible issues with the decryption using PGPFormat > or with the way I have been using it. > > *Issue 1:* > PGPFo

Re: Camel main class in osgi bundle

2014-01-17 Thread Claus Ibsen
Hi See this page how to use java routes in xml , section = using java code (same style for blueprint as for spring) http://camel.apache.org/spring On Fri, Jan 17, 2014 at 10:25 AM, Muhzin wrote: > Thanks for the reply. I'm trying to convert my camel configuration from > java DSL to blueprint

Re: Camel main class in osgi bundle

2014-01-17 Thread Muhzin
Thanks for the reply. I'm trying to convert my camel configuration from java DSL to blueprint and come across some hurdles. My route config looks something like SimpleRegistry registry = new SimpleRegistry(); registry.put("sqsClient", sqsClient); CamelContext context = new DefaultCamelContext(reg

Re: Reroute from onException Handler Processor

2014-01-17 Thread alex
so simple, thank you very much :) -- View this message in context: http://camel.465427.n5.nabble.com/Reroute-from-onException-Handler-Processor-tp5746043p5746127.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-17 Thread Richard Kettelerij
Hi Reij, I agree with Claus, you should avoid Java's build-in serializer since it has a number of drawback, tight coupling being one of them. I've you interested in high performance messaging I suggest you take a look at the JVM serialization benchmark at https://github.com/eishay/jvm-serializers

Re: Problem with camel routes running in apache-karaf-2.3.3

2014-01-17 Thread Claus Ibsen
On Tue, Jan 14, 2014 at 4:57 PM, andrzej.majewski wrote: > Just a quick update. > > I have just tested the same set of project with camel branch 2.10.x > (2.10.8-SNAPSHOT) and the problem is not there. Seems the problem was > introduced between 2.10 and 2.13. > > Should I log bug on camel JIRA? >

Re: PGP decryption from File route

2014-01-17 Thread Claus Ibsen
Hi There has been some improvements to this component recently I think. Is the code your patched from what Camel version? On Thu, Jan 16, 2014 at 8:19 PM, hshicx wrote: > Hi, > > I have identified two possible issues with the decryption using PGPFormat > or with the way I have been using it. >

Re: Web filter and camel-servlet

2014-01-17 Thread Richard Kettelerij
Can you post your web.xml? On Thu, Jan 16, 2014 at 6:27 PM, helander wrote: > 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-

Solved: Login/Error while connecting to invalid ftp adress through socks proxy

2014-01-17 Thread Robin.Lutter
Hi, found the error, the code generating proxied address removes the other parameters (throwExceptionOnConnectFailed) Regards Robin -Ursprüngliche Nachricht- Von: Lutter, Robin Gesendet: Freitag, 17. Januar 2014 09:23 An: users@camel.apache.org Betreff: Login/Error while connecting to

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

2014-01-17 Thread Claus Ibsen
I have these maven opts and build with maven 3.0.4 and it works fine declare -x MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" On Thu, Jan 16, 2014 at 10:05 PM, MichaelAtSAG wrote: > I ran it again with 2GB and hit compile exception at same point: > > set MAVEN_OPTS=-Xms528m -Xmx2024m > > Failure: >

Login/Error while connecting to invalid ftp adress through socks proxy

2014-01-17 Thread Robin.Lutter
Hi, we have a simple route to get files from ftp server with an error in server address: onException(GenericFileOperationFailedException.class, IOException.class) .process(new FileProtokollErrorProcessor()) .handled(true) .to("direct:error"); from("ftp://unkno