Re: SMPP data encoding.

2010-09-02 Thread Pavel Suhotyuk
Thank you very mach! You very help me. -- View this message in context: http://camel.465427.n5.nabble.com/SMPP-data-encoding-tp2798167p2801770.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
On Fri, Sep 3, 2010 at 6:45 AM, Claus Ibsen wrote: > On Thu, Sep 2, 2010 at 7:43 PM, Bengt Rodehav wrote: >> Even better - looking forward to it. I must say that Camel is impressively >> flexible. >> >> BTW we recently put the first version of our Camel/Karaf based integration >> platform into pr

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 7:43 PM, Bengt Rodehav wrote: > Even better - looking forward to it. I must say that Camel is impressively > flexible. > > BTW we recently put the first version of our Camel/Karaf based integration > platform into production and it works very well indeed. I'm very pleased! >

Re: Classpath resource endpoint?

2010-09-02 Thread Claus Ibsen
If you projects are running in the same JVM then you can use intra-vm communications such as: direct, seda components. If you run your projects in separate JVMs then you need "remoting" to share data between them. For example files, a shared database, messaging, http, rmi etc. And you can use pla

Re: Classpath resource endpoint?

2010-09-02 Thread Willem Jiang
I'm afraid we don't have a classpath component as you want. If you just want to run unit test with an inputstream, you could define the route like this from("direct:test").to ... And then using producerTemplate to send the inputstream which you get from the classpath into the "direct:test" e

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
It seems the in the JmsProducer when processing InOnly it ignores the replyTo property MessageCreator messageCreator = new MessageCreator() { public Message createMessage(Session session) throws JMSException { return endpoint.getBinding().makeJmsMessage(exchange, in,

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Even better - looking forward to it. I must say that Camel is impressively flexible. BTW we recently put the first version of our Camel/Karaf based integration platform into production and it works very well indeed. I'm very pleased! /Bengt 2010/9/2 Claus Ibsen > On Thu, Sep 2, 2010 at 4:57 PM

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
I'm not going to be doing the request/replay i just want to set the value. -- View this message in context: http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2800855.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 5:13 PM, kumaap wrote: > > Hi Claus > > I don't think disableReplyTo property is working  either > >  public void configure() { >                from("direct:start").setHeader("test", > constant("test")).to("jms:F.PUB); >            } > > And i get > [ 2010-09-02 15:56:34,33

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Hi Claus I don't think disableReplyTo property is working either public void configure() { from("direct:start").setHeader("test", constant("test")).to("jms:F.PUB); } And i get [ 2010-09-02 15:56:34,335 ][ DEBUG ][ org.apache.camel.component.jms.JmsProducer.proce

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 4:57 PM, Bengt Rodehav wrote: > Just to sum up. Recipient list worked perfectly. I now use the following > interceptor: > >        interceptFrom().when( >            PredicateBuilder.toPredicate(SimpleLanguage >                .simple("${file:length} == null"))).setHeader("r

Re: Camel-QuickFIX jar issues

2010-09-02 Thread Charles Moulliard
I will have a look on this tomorrow as I have used the component and made some development around it. Regards, Charles Moulliard On Thu, Sep 2, 2010 at 11:23 AM, Bengt Rodehav wrote: > Vid and Hadrian, > > I'm also very interested in the Quickfix/J support for Camel. Does anyone > know the st

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Just to sum up. Recipient list worked perfectly. I now use the following interceptor: interceptFrom().when( PredicateBuilder.toPredicate(SimpleLanguage .simple("${file:length} == null"))).setHeader("recipient") .simple("file://${file:parent}/skipped/

Classpath resource endpoint?

2010-09-02 Thread Meise, Christoph
Hi all, We have several projects (B, C and D) which rely on testdata coming from project A. Up to now for example project B resolved project A and put the provided testdata into some defined spot (inputFileOrDirectoryName) which was on the eclipse classpath. Than in a testcase a route could be

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Ok ive go my unit test to work by changing sendBody to template.request("direct:start",new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setBody("Moon"); } }); But bellow is my realife problem , which i

Re: CAMEL DSL use case

2010-09-02 Thread Claus Ibsen
Hi Nice. I have added an entry to our user stories page https://cwiki.apache.org/confluence/display/CAMEL/User+Stories On Thu, Sep 2, 2010 at 2:20 PM, alexandre Clement wrote: > Hi all, > The CAML DSL is very powerful. I've developed a framework that is able to > reuse it very simply! > http://c

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
Just play with the working unit test and adapt it to your style, then you most likely is getting it to work. On Thu, Sep 2, 2010 at 1:52 PM, kumaap wrote: > > Hi Claus, > > Im looking through the unit test > JmsRequestReplyFixedReplyToInEndpointTest > > I can run and it works fine. > > But i ca

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Thanks again Claus - will have a look at recipient list. BTW seems like camel.apache.org is not accessible for the moment - problems? /Bengt 2010/9/2 Claus Ibsen > Use dynamic recipient list to construct the endpoint uri on-the-fly > http://camel.apache.org/recipient-list.html > > > On Thu, Se

CAMEL DSL use case

2010-09-02 Thread alexandre Clement
Hi all, The CAML DSL is very powerful. I've developed a framework that is able to reuse it very simply! http://code.google.com/p/simple-dm/ Interesting application of the Caml DSL. Please share with me your feedback :) http://www.aclement.eu/2010/08/extender-pattern-in-sdm.html

Re: Setting JMS ReplyTo

2010-09-02 Thread kumaap
Hi Claus, Im looking through the unit test JmsRequestReplyFixedReplyToInEndpointTest I can run and it works fine. But i cant see my mistake. @Override protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { fro

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
Use dynamic recipient list to construct the endpoint uri on-the-fly http://camel.apache.org/recipient-list.html On Thu, Sep 2, 2010 at 1:07 PM, Bengt Rodehav wrote: > Thanks Claus, > > stop() worked perfectly - I had confused it with end() but stand corrected. > > However, the Properties compone

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Thanks Claus, stop() worked perfectly - I had confused it with end() but stand corrected. However, the Properties component does not seem to address my specific problem. I need to get hold of properties from the exchange itself - not from an external properties file. If the file is polled from t

Re: Setting JMS ReplyTo

2010-09-02 Thread Claus Ibsen
Check some of the unit tests in camel-jms On Thu, Sep 2, 2010 at 12:16 PM, kumaap wrote: > > Camel version 2.4 > > I'm trying to set the JMS reply To. But it seems to be ignoring the > property. > Ive been reading some posts but still cant get it to work. > > In my use case my route subscribes fr

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
Ad 1) See the properties component http://camel.apache.org/properties Ad 2) Use stop() On Thu, Sep 2, 2010 at 11:17 AM, Bengt Rodehav wrote: > Thanks Willem it worked perfectly. > > However, I now have two other problems (if you bear with me...): > > I want to use this interceptor: > > *intercep

Re: Camel-QuickFIX jar issues

2010-09-02 Thread Bengt Rodehav
Vid and Hadrian, I'm also very interested in the Quickfix/J support for Camel. Does anyone know the status of this? /Bengt 2010/9/1 vcheruvu > > Hi Hadrian, > > Have you got any response for my second question? > > Cheers, > -Vid- > -- > View this message in context: > http://camel.465427.n5.n

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Thanks Willem it worked perfectly. However, I now have two other problems (if you bear with me...): I want to use this interceptor: *interceptFrom().when(PredicateBuilder.toPredicate(SimpleLanguage.simple("${file:length} == null"))).to("file://${file:path}/${date:now:MMdd}/skipped").end();*

Re: [Aggregator] Persistence ?

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 11:09 AM, Olivier.Roger wrote: > > Hello, > > I would like to have an Aggregator aggregationStrategy that persists > messages. I saw that Camel 2.3 bring some new features to the Aggregator > pattern, including persistence on File with HawtDB. > > Unfortunately, I am current

[Aggregator] Persistence ?

2010-09-02 Thread Olivier.Roger
Hello, I would like to have an Aggregator aggregationStrategy that persists messages. I saw that Camel 2.3 bring some new features to the Aggregator pattern, including persistence on File with HawtDB. Unfortunately, I am currently using Camel 2.2. If possible I would like not to upgrade for exte

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
On Thu, Sep 2, 2010 at 9:20 AM, Bengt Rodehav wrote: > Hi Willem, > > Thanks for the info. I assume then that as long as I'm on Camel 2.4 I'll > check for null but when I upgrade to Camel 2.5 I'll start checking for zero > instead. > > However, that issue aside, I still get the same problems that

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
Hi Willem, Thanks for the info. I assume then that as long as I'm on Camel 2.4 I'll check for null but when I upgrade to Camel 2.5 I'll start checking for zero instead. However, that issue aside, I still get the same problems that I wrote about. Can you confirm that the following syntax is correc