graceful shutdown Camel do not executed if Karaf windows service is stopped

2010-02-24 Thread Aleksey Masny
My Camel-application deploed on Felix Karaf. Felix Karaf run in Windows 2003 as a Windows service (out of the box wrapper feature). If I manualy stopped Karaf (net stop karaf) Camel-application terminated immediately. Graceful shutdown not applicable and my inflight messages truncated. How to co

Re: Camel JPA parameters - userFixedDelay issue

2010-02-24 Thread Ashwin Karpe
Hi, The parameter is not fixedDelay but consumer.useFixedDelay and may only be applied to a JPA consumer Check out the following link for valid options http://camel.apache.org/jpa.html http://camel.apache.org/jpa.html Cheers, Ashwin... vcheruvu wrote: > > Hi, > > I am using Camel JPA 2.2

Re: Design and ability questions (multiple questions)

2010-02-24 Thread Ashwin Karpe
Hi, First and foremost, I would ask you to read up on JMS and understand messaging concepts. I am sure that will clarify several questions. http://java.sun.com/products/jms/ http://java.sun.com/products/jms/ Then you can check out ActiveMQ and there are several books and guides available both

Re: Best transport for in-vm synchronous message exchanges

2010-02-24 Thread Ashwin Karpe
Hi, Check out the SEDA, Direct and VM components for in-VM communication http://camel.apache.org/seda.html http://camel.apache.org/seda.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html For diff

Re: Best transport for in-vm synchronous message exchanges

2010-02-24 Thread Ashwin Karpe
Hi, Check out the SEDA, Direct and VM components for in-VM communication http://camel.apache.org/seda.html http://camel.apache.org/seda.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html http://camel.apache.org/direct.html For diff

Re: Working with CXF web service beans

2010-02-24 Thread Ashwin Karpe
Hi, There is no such capability available at this time to do automatic invocation of methods based on the XML Root Element. If this is important to you, please create a Jira entry at https://issues.apache.org/activemq/secure/Dashboard.jspa https://issues.apache.org/activemq/secure/Dashboard.jspa

Re: Design and ability questions (multiple questions)

2010-02-24 Thread James Strachan
On 23 February 2010 22:03, Eibwen wrote: > > I'm completely new to message queues, i've been looking at the ActiveMQ and > Camel website all day but the concepts are not fully clicking for my > specific situation. > I've read most of the FAQs but i think i'm still not seeing how everything > will

Re: Graceful shutdown and individual routes

2010-02-24 Thread Seth Call
On 2/24/10 1:02 AM, Claus Ibsen wrote: Hi You can use the in flight registry to see if there is any message ongoing in your route. And then wait until there are no more before stopping. But we could probably also add support for graceful shutdown on individual routes, leveraging the existing lo

design of camel workflows

2010-02-24 Thread sandibh
Hi, I am working on an application that has multiple, independent workflows and each workflow has atmost two routes (so all the routes in the application are inherently independent). At deployment time, the client wants to be provided with a facility of deploying few workflows in one JVM, few oth

Environment Variables using Simple language

2010-02-24 Thread ychawla
Hello All, I was unable to get the simple language to read from my environment variables in Windows. I did find a workaround for this that might be helpful. I use the Spring property place holder configurer which I believe has more functionality in Camel 2.3. Here is my workaround. I wanted to

javax.jms.JMSException: Transport disposed

2010-02-24 Thread moacsjr
Hello everybody, I've a route that process messages by using a processor. I've noticed that when the system throws the exception "javax.jms.JMSException: Transport disposed", my route stops the processing of the messages in the queue, and new messages are not being consumed. this is my route: f

Adding Mail Attachments Using Spring

2010-02-24 Thread ychawla
Hello All, I see on the mail page that it is possible to add mail attachments by attaching to the exchange prior to sending: http://camel.apache.org/mail.html in.addAttachment("logo.jpeg", new DataHandler(new FileDataSource("src/test/data/logo.jpeg"))); Is is possible to do this in Spring? If

Re: design of camel workflows

2010-02-24 Thread Stan Lewis
> 1. Is the above a good design? Yes, definitely! > 2. Can there be mutiple camel contexts within > a JVM (thread safe?) Yes, there sure can be... > 3. What could be a better design for the above case You might want to consider using Felix Karaf or FUSE ESB to run your camel routes in, then yo

Re: Design and ability questions (multiple questions)

2010-02-24 Thread Eibwen
Thanks for the reply. Are you saying read the 140 page spec right? Or am i missing a link to something more focused there? I'll work on that right after i send this message. Scanning some of the document, and some of the FUSE videos, it seems like a Topic with selectors is most what i'm lookin

Re: Adding Mail Attachments Using Spring

2010-02-24 Thread Claus Ibsen
On Wed, Feb 24, 2010 at 6:47 PM, ychawla wrote: > > Hello All, > I see on the mail page that it is possible to add mail attachments by > attaching to the exchange prior to sending: > > http://camel.apache.org/mail.html > > in.addAttachment("logo.jpeg", new DataHandler(new > FileDataSource("src/tes

Re: Design and ability questions (multiple questions)

2010-02-24 Thread Claus Ibsen
On Wed, Feb 24, 2010 at 7:27 PM, Eibwen wrote: > > Thanks for the reply. > > Are you saying read the 140 page spec right?  Or am i missing a link to > something more focused there?  I'll work on that right after i send this > message. > I suggested you to take a look at the ActiveMQ in Action boo

Re: javax.jms.JMSException: Transport disposed

2010-02-24 Thread Stan Lewis
Are you using a connection factory for this route? You should consider using a pooled connection factory, as mentioned in the camel-activemq page. Use the ActiveMQ pooled connection factory though, that way the connection to the broker will be maintained, I think right now it's probably getting d

camel-http: basic authentication and query parameter "username"

2010-02-24 Thread Matteo Redaelli
Hello With camel-http I'd like to retreive an xml document from an url like http://remoteserver.location/get_user_info.xml?username=matteo BUT that url requires a basic authentication where do I have to set basic auth params (username and password) and where my query parameter "username"?? I

Re: camel-http: basic authentication and query parameter "username"

2010-02-24 Thread ychawla
Hi Matteo, Did you check out this link: http://camel.apache.org/http.html It has info on connecting using basic auth. This example show a poll from google that you can adapt to meet your needs. Below is polls your URL and then write the result to a file: from("timer://foo?fixedRate=true&delay

Resequencer Issues with ActiveMQ

2010-02-24 Thread Andrew Harvey
Hi there, I've been battling for a few days to get a resequencer working with ActiveMQ based on message priority. I'm hoping I might be able to get some help. First off the issue was that the route wasn't being registered at all. That was fixed when I found that all the documentation I had foun

Re: design of camel workflows

2010-02-24 Thread Willem Jiang
I think it should be OK. Multiple camel contexts can work greatly within a single JVM, as they don't share anything except the socket port for certain camel transport component. If you want to share certain component configuration, such as camel-jms component, etc, you may consider to put the r

Re: Class.forName("net.sourceforge.jtds.jdbc.Driver") called inside spring cannot be found

2010-02-24 Thread Willem Jiang
Did you use the spring-datasource to load the datasource? If so please refresh spring datasource bundle to let it pick up the Driver. Willem lekkie wrote: Yes, its an OSGI bundle and I have that package imported already. willem.jiang wrote: Did you deploy the route context into OSGi platform

Re: How to set an exchange's message header

2010-02-24 Thread Willem Jiang
Hi, I don't know why did you put // before the routeId in the @Header annotation ? Willem lekkie wrote: //myId here is my recipient list: public String[] route(@Header("//routeId") String routeId) { LOG.info("Route id: " + routeId); } the code

Re: Resequencer Issues with ActiveMQ

2010-02-24 Thread Claus Ibsen
Hi It surprises me how many people don't use XML validation which after almost 10 years with XML the editors should be able to do that now :) When I use IDEA it works out of the box with its editor and I get all the code completion and popups in XML that I do get when I code in Java. I can press c

Re: Resequencer Issues with ActiveMQ

2010-02-24 Thread Martin Krasser
Hi Andrew, can you please provide a JUnit test that reproduces the problems you described (no reordering, missing messages etc.)? Just attach a running example to a JIRA issue. Andrew Harvey schrieb: Hi there, I've been battling for a few days to get a resequencer working with ActiveMQ bas