Re: Issue using camel-cxf and wss4j

2013-01-11 Thread Willem jiang
+1 for the refactoring of camel-cxf in Camel 3.0. I think we could put the camel-cxf-transport into CXF, as it is mainly used for CXF. And the component just have the dependency of camel-core. For the other cxf-x components we may do some clean up work at the same time. -- Willem Jiang Red H

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Alan Smithee
I upgraded to 2.10.4-SNAPSHOT and 2.11-SNAPSHOT (see if my repo maven config looks ok...I only changed the MVN version, and stopped using exclusive queues on the route). I was able to reproduce the exception right away on both 2.10.4-SNAPSHOT and 2.11-SNAPSHOT, but I think the exception messages a

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-11 Thread Chris Wolf
Hello Christian, I'm using 2.10.0. Ok, from your hint, I found: http://camel.apache.org/scheduledroutepolicy.html so that should be enough to get me going. Any ideas about the other issue? cast except when using jpa in consumer mode with consumeDelete=true? Thanks, -Chris On Fri, Jan 11,

MEP Query

2013-01-11 Thread gilboy
Hi Assume I have the following route: *from(endpoint1).to(endpoint2).to(endpoint3).to(endpoint4) * What dictates the MEP on the exchange. Is it the consumer for endpoint1 since it creates the exchange? Or can the MEP change throughout the route, e.g. could the producer for endpoint3 change the M

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Christian Müller
It would be great if you could test your setup with Camel 2.10.4-SNAPSHOT or 2.11-SNAPSHOT. With this version you should be able to use request/reply with temp. queues without a problem (see https://issues.apache.org/jira/browse/CAMEL-5865). Camel 2.11.0 will probably be available in the next 2 - 3

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Christian Müller
Use the option requestTimeoutCheckerInterval=70 (or another value which fits best for you). Best, Christian On Fri, Jan 11, 2013 at 7:57 PM, Alan Smithee wrote: > As a followup, I tried using a shared queue (with the receiveTimeout dialed > way down) and the performance was really poor (like 10

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-11 Thread Christian Müller
Which version of Camel do you use? Have a look at route policy and/or the quartz component for sheduling routes. Best, Christian Am 11.01.2013 20:23 schrieb "Chris Wolf" : > I have a JPA endpoint setup as a consumer, just performing a basic > query. If I have consumeDelete=false configured, > th

Re: Camel Exchange object query

2013-01-11 Thread Christian Müller
In general, it's the same instance. But for some EIP's like splitter, multicast, a wire tap, ... we have to create a new instance. Best, Christian Am 11.01.2013 22:30 schrieb "gilboy" : > Hi > > Assume the following route: > > *From Endpoint A -> Processor B -> Processor C -> Processor D -> To >

Camel Exchange object query

2013-01-11 Thread gilboy
Hi Assume the following route: *From Endpoint A -> Processor B -> Processor C -> Processor D -> To Endpoint E* >From my understanding, the consumer for Endpoint A is responsible for creating the exchange in this route. My question is - is it the same instance of the exchange object that moves

JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-11 Thread Chris Wolf
I have a JPA endpoint setup as a consumer, just performing a basic query. If I have consumeDelete=false configured, then it works and I see the entities. When consumeDelete=false is not configured (default is to remove), then the error occurs upon JpaTemplate calling EntityManagerImpl.remove(arg

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Alan Smithee
As a followup, I tried using a shared queue (with the receiveTimeout dialed way down) and the performance was really poor (like 1000ms per message for shared vs 70ms with temp or exclusive queues), but no fatal exceptions. Let me know if I can help diagnose this temp queue failure issue. Thanks.

Retrieve failed Route from deadLetterChannel ?

2013-01-11 Thread ncolomer
Hi Camel community, I am facing a problem using the Camel's deadLetterChannel. I have several Routes that process messages and delegate to a Route-scoped errorHandler when something bad happen (HTTP endpoint timeout for instance). What I try to achieve is to implement a generic Route as deadLett

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Alan Smithee
Ok. I'll look into that. Is there a problem using temporary queues? A bug I can help diagnose? My test is using 50 threads to push about 100,000 JSON messages into a jetty endpoint (over http). The message calls a simple routine that provides a response. I get about 70ms round trip and the whole

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 5:42 PM, Alan Smithee wrote: > You read my mind :-) > > > from("jetty:http://localhost:8085/incoming?sessionSupport=true";).routeId("Jetty > Endpoint to ActiveMQ") > .setExchangePattern(ExchangePattern.InOut) > .to("activemq:incoming?replyTo=outgoing&replyToType=Exclusive")

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Alan Smithee
You read my mind :-) from("jetty:http://localhost:8085/incoming?sessionSupport=true";).routeId("Jetty Endpoint to ActiveMQ") .setExchangePattern(ExchangePattern.InOut) .to("activemq:incoming?replyTo=outgoing&replyToType=Exclusive"); I have not been able to reproduce the full "stop the world" exc

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 4:21 PM, Alan Smithee wrote: > Thanks for the pointer. > > I changed the route to look like this: > > from("jetty:http://localhost:8085/incoming?sessionSupport=true";).routeId("Jetty > Endpoint to ActiveMQ") >

Re: What's the best way to resequence message

2013-01-11 Thread Claus Ibsen
On Thu, Jan 10, 2013 at 11:38 PM, jipchix wrote: > I'm consuming about 4-5 web service operation types via an endpoint. Only 1 > of those operation types needs to be pre-processed. What method would you > recommend I use to make sure that at the end of the day, all messages end up > in a single

Re: How can I tell if Apache Camel Splitter didn't split anything?

2013-01-11 Thread Claus Ibsen
On Wed, Jan 9, 2013 at 3:33 PM, wxkevin wrote: > So I ended up using a class variable which is initially set to 0. If there > are elements to parse then when the splitter is complete it will update the > class variable through the use of a processor. Then after the splitter logic > I call another

Re: dynamic uri in activemq

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 4:57 PM, wcpolicarpio wrote: > Hello everyone, > > Is there another way to send a dynamic uri to activemq in a camel route > aside from using recipient list? > See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html But some components allow to set a head

Re: onException does not kick in, redelivery does not work with TransactionErrorHandler

2013-01-11 Thread Claus Ibsen
Hi Yeah error handling is hard. You post a rather long setup and whatnot. And I guess most people dont have the luxury and time to look deeper into this. If you use transacted JMS then you usually let the broker do the redelivery and not Camel. On Fri, Jan 11, 2013 at 4:18 PM, Lampis Flavio wr

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
Done: https://issues.apache.org/jira/browse/CAMEL-5958 -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725402.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Alan Smithee
Thanks for the pointer. I changed the route to look like this: from("jetty:http://localhost:8085/incoming?sessionSupport=true";).routeId("Jetty Endpoint to ActiveMQ") .setExchangePattern(ExchangePattern.InOut)

AW: onException does not kick in, redelivery does not work with TransactionErrorHandler

2013-01-11 Thread Lampis Flavio
Hi It seems that the onExceptions only kick in when I use the JMS TransactionErrorHandler in the routes, e.g.: and JPA transactions in the route: But the redelivery does not work anyway. I don't see a difference between defining the onException in the routes or globally in the Camel Context.

Re: Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected elements are (none) )

2013-01-11 Thread Charles Moulliard
Saved my issue by using in SOAPUI the SOAP message created by CXF Client http://schemas.xmlsoap.org/soap/envelope/";> http://training.fusesource.com/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; x

Re: Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected elements are (none) )

2013-01-11 Thread Charles Moulliard
Client used is SOAPUI With this enveloppe http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tra="http://training.fusesource.com/";> Fuse I get this error now Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:" http://training.fusesource.com/";, local:"name"). Expected e

Re: Camel Spring XML

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 3:46 PM, Manoj Kolhe wrote: > Hi Claus, > > Thanks for quick revert. > > I resolved the issue of passing parameters in > > > Current Issue: > Now the main thing to me is how to receive parameters from uri="servlet:///helloWorld"> path > > When created from path as > it g

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 3:35 PM, lb wrote: > Shall I open a Jira? > Yeah bindy needs to be refactored so it - requires the class type (no more packages) - uses the class type as root model - ... and initializes the model from the root, and follow and references to other classes (if the root has c

Re: Camel Spring XML

2013-01-11 Thread Manoj Kolhe
Hi Claus, Thanks for quick revert. I resolved the issue of passing parameters in Current Issue: Now the main thing to me is how to receive parameters from path When created from path as it gives XML error. Can please suggest what should be the correct way to pass parameters from 'from' ta

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
Shall I open a Jira? -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725393.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected elements are (none) )

2013-01-11 Thread Willem jiang
Hi Charles, How did you generate the request message? Did you use CXF client to send the request? It looks like the name element doesn't has the right namespace, can you change the soap body like the below one ? Fuse -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: little issue with ActiveMQ Consumer having prefetch set to 0 (polling)

2013-01-11 Thread Marco Crivellaro
Any idea on how Client ID and Connection ID are created when connecting to ActiveMQ? -- View this message in context: http://camel.465427.n5.nabble.com/little-issue-with-ActiveMQ-Consumer-having-prefetch-set-to-0-polling-tp5725050p5725391.html Sent from the Camel - Users mailing list archive at

GenericFileProducer ISSUE - target deletion with eagerdeletefile set to false

2013-01-11 Thread Marco Crivellaro
Hi all, I just noticed an issue related to deleting the target file when writing using temporary file names and eagerDeleteTargetFile is set to false. the producer first checks if target file exists, it than writes the temporary file. Once temporary file is written the target file is deleted in ca

Re: Jetty to ActiveMQ Failure

2013-01-11 Thread Claus Ibsen
Hi I think we have recently fixed so when doing request/reply over JMS with temp queues, Camel will now refresh and re-create destinations if the connection has failed / been recreated. If you use fixed or exclusive queues then this happens already. See more details at the camel-jms doc page. O

Re: Camel Spring XML

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 11:48 AM, Manoj Kolhe wrote: > Hi, > > I am a newbie using Apache Camel. > > I am trying to configure 2 different routes based on the servlet example in > the package. > > My route configuration looks as below: > > > > > >

Re: camel + cxf + JAAS

2013-01-11 Thread Willem jiang
Hi Charles, I think you need to rename the realm name to let the org.apache.cxf.interceptor.security.JAASLoginInterceptor pick the right one for you. As the JAAS supports to load the modules with the same name according to the code. If the user can login through one of the realms,the JAAS Inter

Re: InOut pattern issue with FTP.

2013-01-11 Thread Claus Ibsen
Hi This is a bit hard. Have you considering doing this as a 2-way InOnly instead? eg split the file, and send each splitted piece as a file to the FTP server. And have another route that pickup the reply messages as they become ready? Also I would suggest to use a naming style so the reply messa

Re: CXFRS: Share port number across bundles

2013-01-11 Thread Sergey Beryozkin
Hi Raúl On 11/01/13 13:28, Raul Kripalani wrote: Hi Sergey, Thanks for the quick answer. We were already on our way to implement the second option! Just a thought off the top of my head... Does it make sense to enhance CXF or the Jetty CXF Transport so that it's able to figure out this situatio

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 2:27 PM, lb wrote: > That is the method I'm currently using but according to the class > BindyAbstractFactory, bindy scan the packages of the class used as parameter > instead of the class itself, isn't it? > Yes as said bindy was created with that package scanning from th

Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected elements are (none) )

2013-01-11 Thread Charles Moulliard
Hi, When using camel 2.10 + CXF 2.6 and ws-security + camel-spring-security + JAAS, I get the following message after CXF ws-security authentication (which succeed) https://gist.github.com/af9d89e345faf34121ff Config https://gist.github.com/7c832ab4328348325d01 Does anybody can point me to the

Re: CXFRS: Share port number across bundles

2013-01-11 Thread Raul Kripalani
Hi Sergey, Thanks for the quick answer. We were already on our way to implement the second option! Just a thought off the top of my head... Does it make sense to enhance CXF or the Jetty CXF Transport so that it's able to figure out this situation transparently and build the servlet mappings acco

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
That is the method I'm currently using but according to the class BindyAbstractFactory, bindy scan the packages of the class used as parameter instead of the class itself, isn't it? -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp572

Re: CXFRS: Share port number across bundles

2013-01-11 Thread Sergey Beryozkin
Hi On 11/01/13 12:53, Raul Kripalani wrote: Hi all, Quick question. Has anyone tried to run several CXFRS consumers on different bundles binding to the same port (e.g. 9007), where each consumer has a different root resource stemming from a different path? *Bundle A:* http://0.0.0.0:9007";

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 11:56 AM, lb wrote: > > What about to add an additional parameter to the bindy method in fluent > language? > Like an enum or a constant to instruct bindy to perform a package scan or to > use the class configured. > Isn't there such already? See this test https://svn.apac

Re: Bug with completionSize on AggregatorProcessor

2013-01-11 Thread Claus Ibsen
Hi Thanks for reporting. Do you mind creating a JIRA ticket with this bug report? There is a link here, and also some notes about the procedure http://camel.apache.org/support And if you want, you are welcome to work on a patch, and if its possible to have an unit test as well. That would be to

CXFRS: Share port number across bundles

2013-01-11 Thread Raul Kripalani
Hi all, Quick question. Has anyone tried to run several CXFRS consumers on different bundles binding to the same port (e.g. 9007), where each consumer has a different root resource stemming from a different path? *Bundle A:* http://0.0.0.0:9007"; serviceClass="com.mycompany.Re

Re: Camel choice processor

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 12:31 PM, dhruv.sachdeva wrote: > I read the camel testing link ,but i am using Camel 1.6 and hence > CamelTestSupport cannot be extended. > If you can suggest some example to test the route using camel 1.6 . > Your suggestion are welcome. > Look at the source code for Cam

Re: SSH Authentication Faiiled

2013-01-11 Thread Leandro Franchi
Hi Scott, thanks for reply! I`ve tried without success... the same error... Beste Regards Leandro Franchi On Fri, Jan 11, 2013 at 10:10 AM, Scott Cranton wrote: > Leandro, > > from memory, I'm thinking having the leading @ -- ssh://@host:port -- is > causing you problems… > > try > > ssh://

Re: SSH Authentication Faiiled

2013-01-11 Thread Scott Cranton
Leandro, from memory, I'm thinking having the leading @ -- ssh://@host:port -- is causing you problems… try ssh://user01:My_pwd@10.54.139.52:6059?userFixedDelay=true&delay=5000&pollcommand=ls and see if that works better… Hope that helps, Scott On Jan 11, 2013, at 6:41 AM, Leandro Franchi w

Re: tcp socket client consumer endpoint?

2013-01-11 Thread j
have anyone of you guys succeeded in preparing his own Component for this scenario? would you share some snippets? -- View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5725365.html Sent from the Camel - Users mailing list archive at N

Camel Spring XML

2013-01-11 Thread Manoj Kolhe
Hi, I am a newbie using Apache Camel. I am trying to configure 2 different routes based on the servlet example in the package. My route configuration looks as below: name

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
What about to add an additional parameter to the bindy method in fluent language? Like an enum or a constant to instruct bindy to perform a package scan or to use the class configured. -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-typ

Bug with completionSize on AggregatorProcessor

2013-01-11 Thread breilhes
Hi, related topic : http://camel.465427.n5.nabble.com/Bug-with-completionSize-on-AggregatorProcessor-td5721307.html I've tested the bug correction (CAMEL-5720) on version 2.10.3 and there is a regression. If completionSizeExpression is activated and not completed, you return null and the completi

Re: Issue using camel-cxf and wss4j

2013-01-11 Thread Claus Ibsen
On Thu, Jan 10, 2013 at 4:58 PM, Daniel Kulp wrote: > > On Jan 10, 2013, at 4:37 AM, Charles Moulliard wrote: >> I don't find info about this dataFormat (CXF_MESSAGE) in CXF. Does it exist >> ? > > Yes it exists, but I'm really not exactly happy about how it works. I'd > like to kind of "redo"

Re: Issue using camel-cxf and wss4j

2013-01-11 Thread Claus Ibsen
On Thu, Jan 10, 2013 at 4:58 PM, Daniel Kulp wrote: > > On Jan 10, 2013, at 4:37 AM, Charles Moulliard wrote: >> I don't find info about this dataFormat (CXF_MESSAGE) in CXF. Does it exist >> ? > > Yes it exists, but I'm really not exactly happy about how it works. I'd > like to kind of "redo"

Re: Proxy BeanInvocations turning into first-class payloads?

2013-01-11 Thread Claus Ibsen
On Fri, Jan 4, 2013 at 6:06 PM, Claus Ibsen wrote: > Hi > > Welcome to the community. > > On Mon, Dec 31, 2012 at 5:38 AM, Liam Clarke-Hutchinson > wrote: >> Hmm, >> >> I think I've figured this out. The CamelProxyFactoryBean uses >> ProxyHelper to create the proxied service - but the "convert a

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread Claus Ibsen
On Thu, Jan 10, 2013 at 4:35 PM, lb wrote: > > I think the problem is in BindyAbstractFactory.java : > > /** > * method uses to initialize the model representing the classes who will > * bind the data. This process will scan for classes according to the > * package name provided

Re: camel-mail regarding xml configuration

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 6:54 AM, tamil13 wrote: > I tried. but dont know how to do it. Could any one post respective xml code > for sending mail? > You can define a Camel route in XML that routes to a smtp endpoint which then sends the email. And you can have prior if needed

Re: fuse osgi deploy

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 10:08 AM, tamil13 wrote: > > Hey can any one guide me how to bundle camel project to osgi container using > fuse esb? > You can read the documentation at http://fusesource.com/products/fuse-esb-enterprise/#documentation For example the getting started, configuring and run

fuse osgi deploy

2013-01-11 Thread tamil13
Hey can any one guide me how to bundle camel project to osgi container using fuse esb? -- View this message in context: http://camel.465427.n5.nabble.com/fuse-osgi-deploy-tp5725356.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to send a templated mail with attachment?

2013-01-11 Thread Arjen Duursma
The same (missing attachments) seems to be happening to other components as well. I have a route retrieving reports on failed mail attempts (multipart/report) from a pop3 component. Using a xslt transform for generating the actual body before remailing it. After 'saving' the relevant informati