issue while using useOriginalMessage="true" in file component

2013-04-08 Thread sarfaraj
Hi, I used useOriginalMessage="true" in OnException clause. But what I see, if exception occurred it copied that file without data ( *empty file*). Any one experience this issue before ? or i missed something ? Here is my onException clause org.apache.axis.AxisFault

Re: File Zip compression route

2013-04-08 Thread jeff
Hi, I dig this old thread, is there a solution since 2011 to zip directly from a route ? Thanks ! -- View this message in context: http://camel.465427.n5.nabble.com/File-Zip-compression-route-tp3412721p5730481.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel and osgi - component not found

2013-04-08 Thread vseibt
I have a Problem using camel with osgi (eclipse virgo server). I've defined a camel-route with camel-java-dsl like "from("quartz:...") in my OSGi-Module. On trying to start the route I get the error "Failed to create route [...] No component found with scheme: quartz". All camel and spring modul

Re: Camel and osgi - component not found

2013-04-08 Thread Willem jiang
Hi, Camel supports OSGi out of box. How did you deploy you camel route? camel-core will try to locate the component from the OSGi bundle, if you deploy the camel-core bundle and camel-quartz bundle, the camel-qurtz component can be found without doing any additional work. -- Willem Jiang Re

Re: Deleting MQ Temporary Queue

2013-04-08 Thread Magnus Palmér
For WMQ the temporary queues gets deleted when the connection to the queuemanager ends since no explicit call to TemporaryQueue.delete() is made, from the WMQ infocenter: *Although a session is used to create a temporary queue, the scope of a temporary queue is the connection that was used to crea

How is the fastest way to route a Web Service in Camel?

2013-04-08 Thread horyna
Hi, my camel server should work only like a proxy (or stupid ESB if you want). Client dont call original WS server, but make WS calls (HTTP) to my camel server. Camel just logs something and send WS to original WS server ...dont need to marshall the req, res ...just quick forward. How is the fast

Re: Camel and osgi - component not found

2013-04-08 Thread vseibt
Thanks for your reply, maybe it's a problem of the eclipse virgo server. I found several discussions about the META-INF/services FactoryFinder pattern: http://blog.osgi.org/, http://www.osgi.org/download/osgi-early-draft-2011-09.pdf and it's not in http://www.osgi.org/Download/File?url=/download/

ModelCamelContext: properties map property

2013-04-08 Thread Darwish
Hi , can i used camel context property map to cache some lockup data fetched from database inside my route builder? for example, i have dynamic route builder that list registered customer ( maximum 50 records ) and build dedicated route for each ... i need to cache those customer list at context

Camel routing for xmpp MUC

2013-04-08 Thread namita
Hi I have a publisher and subscriber for a MUC But room does not exist.But my sender and receiver is in while loop.If i go and create a room which sender and receiver need bcz those sender and receiver already made a coonection they don't pick newly created room>if i restart my sender recever route

Re: How is the fastest way to route a Web Service in Camel?

2013-04-08 Thread Claus Ibsen
Hi Something like this is fast http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html On Mon, Apr 8, 2013 at 12:39 PM, horyna wrote: > Hi, > > my camel server should work only like a proxy (or stupid ESB if you want). > Client dont call original WS server, but

Re: How to get Id of an Endpoint

2013-04-08 Thread Claus Ibsen
Hi Sounds like a little bug in the . I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6250 If you define the endpoint as http://localhost:/ussdService?sessionSupport=true"/> And then refer to it from the rotues Then it ought to work. On Sun, Apr 7, 2013 at 1:25 PM, lmanchand

Re: need help with error handling

2013-04-08 Thread Claus Ibsen
Hi Sounds like you use camel-cxf / CXF in streaming mode. See the top of this page, the green tip bar, and its link(s) http://camel.apache.org/cxf On Fri, Apr 5, 2013 at 2:33 PM, Nico Mommaerts wrote: > Hey, > > I've been reading the chapter on Error handling over and over but I'm still > fail

Re: need help with error handling

2013-04-08 Thread Nico Mommaerts
No I don't think I'm running in streaming mode: http://camel.apache.org/schema/spring"; streamCache="false" trace="false"> On Mon, Apr 8, 2013 at 2:29 PM, Claus Ibsen wrote: > Hi > > Sounds like you use camel-cxf / CXF in streaming mode. > See the top of this page, the

Re: need help with error handling

2013-04-08 Thread Claus Ibsen
See the bottom of the camel-cxf wiki page, about Streaming Support in PAYLOAD mode On Mon, Apr 8, 2013 at 3:08 PM, Nico Mommaerts wrote: > No I don't think I'm running in streaming mode: > http://camel.apache.org/schema/spring"; > streamCache="false" trace="false"> > > > > >

Re: need help with error handling

2013-04-08 Thread Nico Mommaerts
Yeah I added allowStreaming=false explicitly to my endpoints now, but I don't think they were running in streaming mode cause I was able to modify the SOAP header Anyways, the problem with the logging level mysteriously seems to be solved, even when I remove the allowStreaming option again. The we

Simple case of multithreading with camel and wildcard.

2013-04-08 Thread lleclerc
Hi, I have a dynamic list of process to do and want to end it with an aggregation strategy. What is the approach I should be taking ? I tried to use direct and the wildcard endpoint, but I am getting this exception : Caused by: org.apache.camel.CamelExchangeException: No consumers available on

Re: File Zip compression route

2013-04-08 Thread Magnus Palmér
Yes, provided you use Java 7 and Camel 2.11... http://camel.apache.org/zip-file-dataformat.html 2013/4/8 jeff > Hi, > > I dig this old thread, is there a solution since 2011 to zip directly from > a > route ? > > Thanks ! > > > > > > -- > View this message in context: > http://camel.465427.n5.n

Re: File Zip compression route

2013-04-08 Thread Magnus Palmér
Sorry, you only need Java 7 if you want support for ZIP64... 2013/4/8 Magnus Palmér > Yes, provided you use Java 7 and Camel 2.11... > http://camel.apache.org/zip-file-dataformat.html > > > 2013/4/8 jeff > >> Hi, >> >> I dig this old thread, is there a solution since 2011 to zip directly >> fr

Re: servlet event based file consuming using file component

2013-04-08 Thread praveenbillampati
Hi All, Any idea on this? Thanks Praveen -- View this message in context: http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-file-component-tp5730356p5730503.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: servlet event based file consuming using file component

2013-04-08 Thread Chris Geer
On Mon, Apr 8, 2013 at 7:08 AM, praveenbillampati < praveenbillamp...@gmail.com> wrote: > Hi All, > > Any idea on this? > Take a look here - http://camel.apache.org/content-enricher.html. The part you'll be interested in is the pollEnrich section. It has an example of what you are trying to do.

Re: Camel Splunk component

2013-04-08 Thread Hadrian Zbarcea
Hi Preben, Interesting proposal. I couldn't find the licensing terms for splunk. Aside from the fact that it's not in the central maven repo, the version from the springsource repo doesn't point to a license and it's not clear who built it and from what sources. Do you know know anything about

Camel xmpp dynamic router is not connecting to openfire.

2013-04-08 Thread pshetty.kateel
Hi, I am using camel xmpp and dynamic router configuration as below. Here in xmpp we are using group chat. In eventRouterBean's processEvent method, we are building xmpp group

Re: Camel Splunk component

2013-04-08 Thread Preben.Asmussen
Hi Hadrian Yeah I know some of Apaches licence guidelines and fortunately the Splunk SDK seems to be Apache licenced see https://github.com/splunk/splunk-sdk-java#license Damien Dallimore from Splunk has taken a look at the component and to quote him _ I'm becoming a Camel fan. Haven'

Re: Camel Splunk component

2013-04-08 Thread Hadrian Zbarcea
Awesome. I do see the value of a splunk component. Ideally, to make splunk a good camel citizen it'd be great to have it released in maven central and make it OSGi friendly (not sure if the latter is already done). As this would serve well the splunk community, I assume you (we) could work wit

JMS transaction behavior inside of route

2013-04-08 Thread leroykendall
Hi, The standard JMS transaction looks like: session = connection.createSession( true, -1 ); queue = session.createQueue( "queue.name" ); consumer = session.createConsumer( queue ); // Messages processing loop try { message = consumer.receive(); // Receive messa

Re: JMS transaction behavior inside of route

2013-04-08 Thread Claus Ibsen
Hi Take a look at the transactional client eip http://camel.apache.org/transactional-client.html On Mon, Apr 8, 2013 at 5:03 PM, leroykendall wrote: > Hi, > > The standard JMS transaction looks like: > > session = connection.createSession( true, -1 ); > queue = session.createQueue( "que

Re: Camel Splunk component

2013-04-08 Thread Preben.Asmussen
yeah I think so too. It would be a good addition to Camel and the Splunk community. I'll check with Demian about the osgi stuff, and a Apache camel component in general. Help for the osgi stuff might be most welcome :-) Also for the rest if anyone wanna join. /Preben -- View this message

Re: Callback after startup from org.apache.camel.main.Main afterStart()

2013-04-08 Thread Andrew Bailey
Claus, thanks for the reply. Ok I tried that, however, if in the bootstrap code in main just before calling run() I place List contexts=getCamelContexts(); System.out.println(contexts); // [] CamelContext context=contexts.get(0); //IndexOutOfBoundsException: Index

Re: spring-ws timeout question

2013-04-08 Thread Smith-John
Nobody knows something about how spring-ws camel component is implemented? Also have another question: Since spring-ws component automatically adds the SOAP-Envelope, is it possible to add custom namespace if needed? -- View this message in context: http://camel.465427.n5.nabble.com/spring-ws-

Re: Error when using Camel write to Websphere MQ

2013-04-08 Thread Magnus Palmér
A bit late answer but your question seems unanswered: Yes, it is possible and almost had it. You will need to use the "wmq-qm1" and "wmq-qm2" in the URI or change the beanID in the JmsComponents declarations, for instance: from("wmq-qm1:GURU.DG").to("wmq-qm2:JBOSS.DG"); Or: And as Claus state

Re: servlet event based file consuming using file component

2013-04-08 Thread Christian Müller
Can you use the consumer template? Sent from a mobile device Am 08.04.2013 16:08 schrieb "praveenbillampati" : > Hi All, > > Any idea on this? > > Thanks > Praveen > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-file-componen

Re: Simple case of multithreading with camel and wildcard.

2013-04-08 Thread Christian Müller
I don't' understand your requirements. Sent from a mobile device Am 08.04.2013 15:32 schrieb "lleclerc" : > Hi, > > I have a dynamic list of process to do and want to end it with an > aggregation strategy. > > What is the approach I should be taking ? > > I tried to use direct and the wildcard en

Re: spring-ws timeout question

2013-04-08 Thread Christian Müller
You can access the underlying connection with TransportContext transportContext = TransportContextHolder.getTransportContext(); HttpComponentsConnection connection = (HttpComponentsConnection) transportContext.getConnection(); but there is no way to access the used org.springframework.ws.transpor

Re: Camel xmpp dynamic router is not connecting to openfire.

2013-04-08 Thread pshetty.kateel
I forgot mention the kind exception for 2nd and later messages. Exception is thrown at chat = new MultiUserChat(connection, room); statement of XmppGroupChatProducer's doStart() method. Exception says 'Not connected to the server'. So It means that we need to reconnect and authenticate it if disc

Re: Camel xmpp dynamic router is not connecting to openfire.

2013-04-08 Thread pshetty.kateel
I just debugged using source code. It looks like bug in XmppEndpoint.createConnection method. If no groupchat room is avalilable, then XmppGroupChatProducer's method doStart; chat.join() statement will throw exception. Upon this exception, ServiceSupport.stop() is trggered. This triggers XmppGrou

CXF Example OSGi

2013-04-08 Thread Krzysztof Sobkowiak
Hi I'm trying to deploy camel-example-cxf-osgi/2.10.4 on Karaf 2.3.1 or SMX 4.5.1 using following commands (as described in http://camel.apache.org/cxf-example- osgi.html) in Karaf i have to add Camel features first features:chooseurl camel 2.10.4 and next (Karaf or SMX) features:install war

ProducerTemplate and direct:start in camel

2013-04-08 Thread Tarun Kumar
My camel route is : from("direct:start") .to("http://myhost/mypath";); I used : ProducerTemplate template; template.sendBody("direct:start", "This is a test message"); to send the exchange. I am getting following exception: No consumers available on endpoint: Endpoint[direct://start]. How can

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Chris Geer
On Mon, Apr 8, 2013 at 7:45 PM, Tarun Kumar wrote: > My camel route is : > > from("direct:start") > .to("http://myhost/mypath";); > > I used : > > ProducerTemplate template; > template.sendBody("direct:start", "This is a test message"); > > to send the exchange. I am getting following exception: >

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Tarun Kumar
Here's what i am doing: I have written one JAX-RS service which when invoked creates CamelContext, adds this route to CamelContext, Create ProducerTemplate, calls pt.sendBody() method and then starts CamelContext. Tarun On Tue, Apr 9, 2013 at 8:19 AM, Chris Geer wrote: > On Mon, Apr 8, 2013 a

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Chris Geer
On Mon, Apr 8, 2013 at 7:56 PM, Tarun Kumar wrote: > Here's what i am doing: > > I have written one JAX-RS service which when invoked creates CamelContext, > adds this route to CamelContext, Create ProducerTemplate, calls > pt.sendBody() method and then starts CamelContext. > Ok, first thing is y

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Tarun Kumar
"Ok, first thing is you need to start your context (which starts the routes) before you can use a producer template to send a message to it. Starting the context is what creates and publishes the endpoints so that they can receive messages. If the context isn't started there is no "direct:start" en

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Maruan Sahyoun
Hi Tarun, from you description > I have written one JAX-RS service which when invoked creates CamelContext, > adds this route to CamelContext, Create ProducerTemplate, calls > pt.sendBody() method and then starts CamelContext. you start the CamelContext AFTER you use the ProducerTemplate but yo

Re: ProducerTemplate and direct:start in camel

2013-04-08 Thread Chris Geer
On Mon, Apr 8, 2013 at 9:30 PM, Tarun Kumar wrote: > "Ok, first thing is you need to start your context (which starts the > routes) > before you can use a producer template to send a message to it. Starting > the context is what creates and publishes the endpoints so that they can > receive messag

Re: Camel Splunk component

2013-04-08 Thread Damien Dallimore
Splunk is not open source , but it has a free license that you can use in perpetuity to index up to 500MB of data per day. This free version has all the features required to support Preben's components that are in development on github, http://www.splunk.com/view/SP-CAAAE8W The Splunk SDK for Java

Re: Camel Splunk component

2013-04-08 Thread Damien Dallimore
We have plans to release the Splunk SDK for Java as an OSGI bundle. http://splunk-base.splunk.com/answers/49450/splunk-java-sdk-as-osgi-bundle As far as also hosting at maven central , I will enquire with the core release team and get back to you. Cheers. -- View this message in context: htt

Storing camel routes information in a DB.

2013-04-08 Thread pbs
My use case is quite simple As soon as xml file arrives in one hot folder, I use came routes to move it to another file directory. *Question:* I want to store this information about different files transfer in database. e.g. File name 'abc' moved successfully at this particular time instance. Coul