issue with jsonFormatting and timestamps

2012-11-29 Thread Marco Mistroni
Hello all i have a serverside camelapp in which i am exposing an http channel which returns json data. the problem i have is that one of the object i serialize contains a timestamp, and this is how the object is beign serialized [{"title":"[video] Tablet Boom: A Derivative Play?","description":

Re: bizzarre situation with Jetty/routing

2012-09-22 Thread Marco Mistroni
ion ${in.header.jsonHeader} == 'foo'? > > The notation you are using is available as of Camel 2.9.2 as I mentioned in > the other thread. > > Thanks, > Raúl. > > Sent from a mobile device > On Sep 22, 2012 7:14 PM, "Marco Mistroni" wrote: > > > Hello Raul > &g

Re: bizzarre situation with Jetty/routing

2012-09-22 Thread Marco Mistroni
a look at [1] and you should be fine. > > I suggest you set the headers in the IN message, and Camel will take care > of reusing the modified IN message for the next processor along. > > [1] http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html > > Hope that he

Re: bug in setting Headers?

2012-09-22 Thread Marco Mistroni
are converted to lower case as Christian suggests, your > routing rule should work because comparison also converts to lower case > IIRC. > > The syntax in your expression is valid from Camel 2.9.2 onwards. What > version are you on? > > - Raúl. > On Sep 22, 2012 5:20 PM, "

Re: bug in setting Headers? / ignore

2012-09-22 Thread Marco Mistroni
Hi all ignore my prev message, i am doing something dodgy somewhere camel is working fine sorry for bothering w/kindest regards marco On Sat, Sep 22, 2012 at 5:20 PM, Marco Mistroni wrote: > Hi all > i have a camel processor which sets a header before passing the message > to a

Re: marshalling POJO to JSON

2012-09-01 Thread Marco Mistroni
est", item.getLatestPrice().getLatestPrice()); > > if(ptfData != null) { > exchange.getOut().setBody(node); > } > -- > > // Pontus > > > > On Sat, Sep 1, 2012 at 1:35 PM, Marco Mistroni > wrote: > > thanks a lot Pontus! > &g

Re: marshalling POJO to JSON

2012-09-01 Thread Marco Mistroni
rom my phone > Den 1 sep 2012 00:02 skrev "Marco Mistroni" : > > > HI all > > i have a Jetty-Json route in my camel-app > > > > i submit JSON via python client, and i should return JSON back. > > > > i am using

marshalling POJO to JSON

2012-08-31 Thread Marco Mistroni
HI all i have a Jetty-Json route in my camel-app i submit JSON via python client, and i should return JSON back. i am using this configuration: http://localhost:/myJettyService"; /> THe problem i have is the bean 'myJe

Re: Camel Exception Handling issue

2012-08-25 Thread Marco Mistroni
Hello Claus thanks a lot for the tip! w/kindest regards marco On Sat, Aug 25, 2012 at 9:02 AM, Claus Ibsen wrote: > On Fri, Aug 24, 2012 at 10:27 PM, Marco Mistroni > wrote: > > HI all > > i have implemented exception handling in my

Re: JsonEndpoint and Router

2012-08-24 Thread Marco Mistroni
THanks a lot Yogesh, that's exactly what i was looking for.. w/kindest regards marco On Fri, Aug 24, 2012 at 2:54 AM, ychawla wrote: > Hi Marco, > I have had a similar situation. I grab the JSON input, unmarshall to a > POJO, inspect the payload for a parameter, and then set a camel header fo

JsonEndpoint and Router

2012-08-23 Thread Marco Mistroni
hello all i have a camel-app in which i have configured a Jetty endpoint which will handle JSON requests/responses to my application. this is the simple config data associated with it http://localhost:/myJettyService"; /> I was

Re: problem with camel:multicast

2012-07-16 Thread Marco Mistroni
t of view, its just all 3 processors in its > output to process a copy of the same message. > So it shouldn't matter if its a bean, seda, direct, jms, or whatever > endpoint. > > > > On Sat, Jul 14, 2012 at 6:38 PM, Marco Mistroni > wrote: > > hello all > >

Re: problem with camel:multicast

2012-07-15 Thread Marco Mistroni
gt; > Best, > Christian > > On Sat, Jul 14, 2012 at 6:38 PM, Marco Mistroni > wrote: > > > hello all > >i might be missingn something big here with regards to > camel:multicast. > > > > I have following routes configure

problem with camel:multicast

2012-07-14 Thread Marco Mistroni
hello all i might be missingn something big here with regards to camel:multicast. I have following routes configures with camel:multicast Multicast works for the following route, where all the camel:to are seda

Re: Injecting a ProducerTemplate in a POjo

2012-06-08 Thread Marco Mistroni
is just the default uri, if you do not specify > any eg > > template.sendBody("Hello default channel"); > > > On Thu, Jun 7, 2012 at 11:36 PM, Marco Mistroni > wrote: > > > hi all > > i have a camel app in which i have exposed few JMX beans. > > &g

Injecting a ProducerTemplate in a POjo

2012-06-07 Thread Marco Mistroni
hi all i have a camel app in which i have exposed few JMX beans. I want to be able to send a message to a channel via my JMX bean. I have read the POJO Producing info here http://camel.apache.org/pojo-producing.html and at the moment i am doing this in my JMX bean @EndpointInject(uri="seda:t

Re: handling exception at endpoints / solved

2012-04-14 Thread Marco Mistroni
error while learning how to test routes offline :) I m starting to love camel :) thanks and sorry for my noise rgds marco On Sat, Apr 14, 2012 at 12:11 PM, Marco Mistroni wrote: > Hello Claus, > sorry to bother, but i am still losing the plot with Exception Handling :( > i read Camel

Re: handling exception at endpoints

2012-04-14 Thread Marco Mistroni
ception(Map in, String payload, Map out) { LOGGER.info("---Handling exceptions:"); //exceptions.add(exception); } But somehow that method is never called... am i using the right signature? what am i forgetting? w/kindest regards marco On Thu, Apr 12, 2012 at

Re: handling exception at endpoints

2012-04-12 Thread Marco Mistroni
thaks Claus for the useful advices rgds marco On Thu, Apr 12, 2012 at 8:40 AM, Claus Ibsen wrote: > On Wed, Apr 11, 2012 at 9:15 PM, Marco Mistroni > wrote: > > Hello Claus > > thanks for the reply! > > mm i may be confusing the terminology sorry :( > > &

Re: handling exception at endpoints

2012-04-11 Thread Marco Mistroni
approaches to handle exceptions in endpoints? w/kindest regards marco On Wed, Apr 11, 2012 at 6:47 AM, Claus Ibsen wrote: > On Tue, Apr 10, 2012 at 10:46 PM, Marco Mistroni > wrote: > > Hello all > > i'd like to be able to handle exceptions at Endpoints in my

handling exception at endpoints

2012-04-10 Thread Marco Mistroni
Hello all i'd like to be able to handle exceptions at Endpoints in my app (as most of the exceptions happen when endpoints are processing data). as i plan to deploy my camel app remotely, i'd like to handle the exception so that an email with the exception is sent to me. i found out this thread w

custom error handler

2012-04-09 Thread Marco Mistroni
HI all i plan to deploy my apache camel app remotely, and i would like to configure an error handler so that , when an exception happens, it sends me an email with the exception details. I have read camel error handling docs, and i guess the best approach for me would be to use a deadLetterErrorH

Re: camel http 'adapter'

2012-04-02 Thread Marco Mistroni
t is possible. > >> You can use the camel-jetty component to listen to http requests and the > >> json dataformat to serialize, deserialize. > >> > >> Christian > >> > >> Am 01.04.2012 17:17, schrieb Marco Mistroni: > >> > >> Hi all > >&

Re: camel http 'adapter'

2012-04-01 Thread Marco Mistroni
run the camel side as a standalone java > application. Yes that is possible. > You can use the camel-jetty component to listen to http requests and the > json dataformat to serialize, deserialize. > > Christian > > Am 01.04.2012 17:17, schrieb Marco Mistroni: > > H

camel http 'adapter'

2012-04-01 Thread Marco Mistroni
Hi all i have a standalone camel application. I want to be able to have a json client which calls camel app and gets back a camel response. Is that possible, without having a camel application runs as part of a .war application? w/kindest regards marco