Re: Newbie: Mapping JMS Camel / Spring to POJO, ActiveMQ Queues

2009-01-19 Thread Claus Ibsen
Hi Yeah the annotations is really nice once and quite amazing what you can do in that single annotation. You could also look at this tutorial that explains about using JMS with Camel and Spring: http://camel.apache.org/tutorial-jmsremoting.html It however is focused on showing 3 difference clien

Re: Responses to CXF messages in Camel route

2009-01-19 Thread Claus Ibsen
Hi At part 5 of this tutorial I can send a OK response. http://camel.apache.org/tutorial-example-reportincident-part5.html On Mon, Jan 19, 2009 at 8:21 PM, Lars Ivar Igesund wrote: > Hi! > > I have had a working CXF endpoint (server) connected to my route for a > short while now, but the service

Re: Newbie: Mapping JMS Camel / Spring to POJO, ActiveMQ Queues

2009-01-19 Thread James Strachan
2009/1/20 Matvey : > > I need to configure Camel DSL / routes in such a way that on of my old > classes gets objects from JMS queue and sends objects to another JMS queue. > > > I can use Camel API to do that, but it seems like in such a case I almost do > not use Camel: > > CamelContext context =

Newbie: Mapping JMS Camel / Spring to POJO, ActiveMQ Queues

2009-01-19 Thread Matvey
I need to configure Camel DSL / routes in such a way that on of my old classes gets objects from JMS queue and sends objects to another JMS queue. I can use Camel API to do that, but it seems like in such a case I almost do not use Camel: CamelContext context = new DefaultCamelContext();

Why getContext().addInterceptStrategy is throwing an exception?

2009-01-19 Thread Liav Ezer
Hi, I use servicemix-fuse 3.3.1.3 with Camel 1.4. In my Camel Builder i try to add interceptor & it's causing me an NoSuchMethodError. My configure method is: public void configure() throws Exception { getContext().addInterceptStrategy(new MyFromEndpointInterceptor()); fr

Responses to CXF messages in Camel route

2009-01-19 Thread Lars Ivar Igesund
Hi! I have had a working CXF endpoint (server) connected to my route for a short while now, but the service only had an in message and the route looked like this: from (cxfEndpoint).process(new FooProcessor()).to ( "bean:FooHandler"); However, the caller of the service wants a response which is

Camel infrastructure changes

2009-01-19 Thread Hadrian Zbarcea
Hi, Most of you probably know already that the Apache Board voted at the last meeting (Dec 17th, 2008) on a resolution that makes Camel a top level project. The new official Camel site is http://camel.apache.org/. The svn repository is also in the middle of a transition from http://svn.apa

Re: Definining interceptors in camel-cxf

2009-01-19 Thread Pawel Jasinski
Hi, here is a snipped from the camel-context where wss4j is defined as interceptor: http://localhost:9001/SoapContext/SoapPort/consumer"; wsdlURL="wsdl/consumer/consumer.wsdl" serviceClass="org.example.consumer.Consumer" endpointName="s:consumerSOAP" serviceName="s:consumer"

Re: Missing attachments

2009-01-19 Thread cmoulliard
Hi, Have you try to create your exchange without mentioning the ExchangePattern like this ? Exchange exchange = endpoint.createExchange(); icucode wrote: > > Hi, > > I'm trying to send attachments attached to the message that is sent to the > queue but they seem to vanish on the way for som

Definining interceptors in camel-cxf

2009-01-19 Thread S. Ali Tokmen
Hello In CXF, one can define a serioes of interceptors, inbound and outbound, for doing many actions. Our implementation defines some Processor interceptors for handling security-related tasks (namely, serializing and deserializing Security Contexts). In CXF-Spring, this is done using the ja

Re: ApplicationContext close

2009-01-19 Thread Claus Ibsen
Hi BTW you can check out the source code on the trunk from here: http://activemq.apache.org/camel/source.html Have you tried the ctrl + \ to see which threads is hanging its ctrl + break on Windows. On Mon, Jan 19, 2009 at 10:47 AM, Claus Ibsen wrote: > Hi > > There is no shutdown in this exam

Re: Using Camel Throttler with an in-out MEP

2009-01-19 Thread Claus Ibsen
Hi Can you not add a 2nd throttler? on the other side? I guess its not what you are asking for :) from(x).throttle(10/sec).to(some webservice).thorttle(5/sec).to(other service) But if you are talking about throttling the response that is returned in from(x) when using InOut. Why should they have

Re: Unexpected ActiveMQ FailoverTransport messages in my log

2009-01-19 Thread Claus Ibsen
Hi Thanks for letting us know. Do you have wiki rights to edit? If so then please go ahead and add some text about your findings and a link to that page. Its great when the community itself can update Camel documentation. On Mon, Jan 19, 2009 at 7:18 AM, huntc wrote: > > OK - now I remember..

Re: Missing attachments

2009-01-19 Thread Claus Ibsen
On Mon, Jan 19, 2009 at 12:54 PM, icucode wrote: > > Hi, > > I'm trying to send attachments attached to the message that is sent to the > queue but they seem to vanish on the way for some reason; because on the > consumer side they no longer exist. > > == producer == > public static void sendMessa

Missing attachments

2009-01-19 Thread icucode
Hi, I'm trying to send attachments attached to the message that is sent to the queue but they seem to vanish on the way for some reason; because on the consumer side they no longer exist. == producer == public static void sendMessageInOnly(File attachment) { Endpoint endpoint = camel.getEndpo

Re: File component - dynamic file path?

2009-01-19 Thread icucode
Ok, then you can't use Spring remoting on it's own because you can't set header properties through it. If I instead use an instance of the Exchange class and manipulates the message (getIn()) it works. Thanks Claus Ibsen-2 wrote: > > Hi > > You can send the Filename as a JMS property. From t

Re: ApplicationContext close

2009-01-19 Thread Claus Ibsen
Hi There is no shutdown in this example (yet). I am working on this by adding a stop client on the trunk codebase. ActiveMQ can run Camel embedded. Have you considered running your application as a AMQ Server. Camel is usually not run standalone but inside some other server such as AMQ, SMX or a

Re: Newbie- problem with HTTP component

2009-01-19 Thread cmoulliard
Hi, The apache-commons-codec jar is missing. Please check this dependency. Regards, Charles petedao wrote: > > Hello > > I am just starting to use Activemq, and I have some problems. > > With http://192.168.1.101:1/testServlet"/>, I am getting the > following error with Camel 1.5. >

Re: ApplicationContext close

2009-01-19 Thread selezovikj
I am looking at the camel-example-spring-jms example, but I can not see the code where the shutting down of Camel + Spring + AMQ is done. Can you please tell me how to perform shutdown from within the application code ? Claus Ibsen-2 wrote: > > It should be Spring that shutsdon the ActiveMQ