Re: Camel smpp special characters for sending sms

2013-02-26 Thread Willem jiang
Camel is using the UTF-8 by default. Can you try to set the encoding to UTF-8 ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)

Re: OSGI axis 1.4 jar ?

2013-02-26 Thread sarfaraj
Yes I am doing the same. Used a Java Bean to integrate with Axis from regular Java code But I got java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient Even if I deployed axis.osgi-1.4.jar on servicemix. Also I don't see any reference issue on Apache Karaf

Re: OSGI axis 1.4 jar ?

2013-02-26 Thread Claus Ibsen
On Tue, Feb 26, 2013 at 8:47 AM, sarfaraj sarfarajsay...@gmail.com wrote: Yes I am doing the same. Used a Java Bean to integrate with Axis from regular Java code But I got java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient Even if I deployed

Re: OSGI axis 1.4 jar ?

2013-02-26 Thread sarfaraj
Is there any axis_all osgi jar ? which i can use as is. /Sarfaraj -- View this message in context: http://camel.465427.n5.nabble.com/OSGI-axis-1-4-jar-tp5728065p5728156.html Sent from the Camel - Users mailing list archive at Nabble.com.

Polling database mid route

2013-02-26 Thread AndyBell
Hi I have a route that triggers a Unix job which updates a database table with its progress. The trigger process returns instantly, but the resulting Unix job may take a long time to process. My route now needs to poll the database table every n seconds to see when the job has finished. I need

Re: OSGI axis 1.4 jar ?

2013-02-26 Thread sarfaraj
Bouncer, need some time to understand :) -- View this message in context: http://camel.465427.n5.nabble.com/OSGI-axis-1-4-jar-tp5728065p5728162.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel smpp special characters for sending sms

2013-02-26 Thread fclose
Something strange if I try with alphabet = 8 and *dataCoding = 3* I have an IllegalArgumentException java.lang.IllegalArgumentException: *No enum const Alphabet with value 3* bug ? 2013-02-26 11:19:49,386 ERROR [Camel (camel-1) thread #15 - JmsConsumer[immediatesms]]

Re: Polling database mid route

2013-02-26 Thread Willem jiang
You can set the delay option on the ScheduledPollConsumer[1]. I don't think you need to add a delay in you code. [1]http://camel.apache.org/polling-consumer.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Copy Files with doneFile in different Folder

2013-02-26 Thread yxzhao
Hi all, We need to design a route as below. route id=copyFiles from uri=file://project/triggers?fileName=COPYFILES/ to uri=bean:dbBean?method=getFileNames/ ...copy files from sourceDirectory to destDirectory... What about sourceDirectory and destDirectory are on different

Re: Copy Files with doneFile in different Folder

2013-02-26 Thread Willem jiang
If the source and target directory is not on the same box, you need to check the camel-ftp or camel-sftp component[1] [1]http://camel.apache.org/ftp2.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Spring-ws producer: Response schema validation

2013-02-26 Thread anaCortes
Hi all, i´m using the spring-ws component to send a request: to uri=spring-ws:/ I would like to do a schema validation of the response that this spring-ws producer (to) returns. For that, i´ve defined a CamelEndpointMapping with the interceptors I need for the validation. I have another

RE: Camel smpp special characters for sending sms

2013-02-26 Thread Zhemzhitsky Sergey
Leave all the parameters as default except the encoding which should be set to UTF-16BE. Best Regards, Sergey Zhemzhitsky Phone. +7 495 2580500 ext. 1246 -Original Message- From: fclose [mailto:f...@closebase.com] Sent: Tuesday, February 26, 2013 2:25 PM To: users@camel.apache.org

Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
Is there anything that I have to set so that I could use the camel-blueprint-test support? When I tried running my camelContext configured in the blueprint.xml, I get the following error: I'm using 2.10.0 versions of the camel-xxx libraries. java.lang.NoClassDefFoundError:

Re: Camel Blueprint Test Support - Error

2013-02-26 Thread Claus Ibsen
I suggest to upgrade to a newer 2.10.x release, as we have fixed osgi stuff since. On Tue, Feb 26, 2013 at 3:45 PM, Joe San codeintheo...@gmail.com wrote: Is there anything that I have to set so that I could use the camel-blueprint-test support? When I tried running my camelContext configured

Re: Copy Files with doneFile in different Folder

2013-02-26 Thread Pontus Ullgren
(Shamless promo for own project) Or if you are running windows you can look at camel-smb (https://github.com/Redpill-Linpro/camel-smb) // Pontus On Tue, Feb 26, 2013 at 1:13 PM, Willem jiang willem.ji...@gmail.com wrote: If the source and target directory is not on the same box, you need to

Re: Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
Good. the upgrade landed me in an another error as below: java.io.FileNotFoundException: Cannot find resource in classpath for URI: blueprint.xml @Override protected String getBlueprintDescriptor() { return blueprint.xml; } the blueprint.xml is in the same location where my

Re: Question on OSGI Bundle ?

2013-02-26 Thread Christian Müller
ServiceMix supports the wrap hander which will wrap the jar on the fly. But this is not the recommended way... osgi:install wrap:mvn:org.apache... And have in mind, adding the OSGI meta data to your jar file is not always everything you need (class loading issues, SPI issues, ...) Sent from a

Re: Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
Seems like I have to put that blueprint.xml in the resources folder. It worked! Regards, Jothi On Tue, Feb 26, 2013 at 4:47 PM, Joe San codeintheo...@gmail.com wrote: Good. the upgrade landed me in an another error as below: java.io.FileNotFoundException: Cannot find resource in classpath

Re: OSGI axis 1.4 jar ?

2013-02-26 Thread Christian Müller
First, write your bean and make sure it works outside of SMX. Than deploy it into SMX. Make sure you have all the needed package imports... Sent from a mobile device Am 26.02.2013 02:12 schrieb sarfaraj sarfarajsay...@gmail.com: Bouncer, need some time to understand :) -- View this message

camel processor in InOut to send 2 replies

2013-02-26 Thread Marco Crivellaro
Hi All, I have a requirement to send 2 messages in as reply of a request using InOut pattern. How can I achieve this? My route looks as following: camelContext id=hulkcontext xmlns=http://camel.apache.org/schema/spring; autoStartup=true route from uri=jms:queue:data/

Re: camel processor in InOut to send 2 replies

2013-02-26 Thread Hadrian Zbarcea
Your question is not very clear, I could interpret it in a few ways. Your example seems to indicate an in-only, no reply pattern. Firstly, you cannot do what you need with a request/reply pattern, so you certainly have something else. Since you use jms, you probably use a reply queue [1].

RE: Camel smpp special characters for sending sms

2013-02-26 Thread Christian Müller
Can you provide a test case for it? Sent from a mobile device Am 26.02.2013 06:06 schrieb fclose f...@closebase.com: already tried UTF-16BE without success. -- View this message in context:

Issue Replacing a component with Mock in Camel Context

2013-02-26 Thread shyenuganti
Hi , Here is a sample test for my Camel route. I am overriding the camel context to replace a JMS Endpoint with a Mock. And setting the expectations on the route and trying to assert it. But this test is failing. Can anyone see a problem in my test ? Instead of adding a mock to my production

Re: A little problem with annotation @CsvRecord

2013-02-26 Thread lb
You may use the following syntax: .unmarshall().bindy(BindyType.Csv,Your Class.class) Bear in mind that the current implementation does scan the package of the viventi class thus you should not have any other bindy-annotated class in the same root package. On Monday, February 25, 2013, jeff

Re: Camel file component preMove creates directory before read lock acquired?

2013-02-26 Thread icemanltd
After looking at this a little closer it looks as though the FileNotFoundException occurs when attempting to perform the preMove. This means that the rename based readLock has succeeded and yet the preMove which is essentially a rename with a different name failes? -- View this message in

Re: Issue Replacing a component with Mock in Camel Context

2013-02-26 Thread Christian Müller
This is a good source: http://camel.apache.org/mock.html Sent from a mobile device Am 26.02.2013 12:02 schrieb shyenuganti shyenuga...@gmail.com: Hi , Here is a sample test for my Camel route. I am overriding the camel context to replace a JMS Endpoint with a Mock. And setting the

Re: Issue Replacing a component with Mock in Camel Context

2013-02-26 Thread shyenuganti
context.resolveEndpoint is not availble on both the regular CamelContext or the ModelCamelContext in 2.10.3. Is the method deprecated? I am using @EndpointInject to get the resolve the endpoint. But still the assertion fails in my case although everything seems to work. Is there any thing that

Re: camel-quickfix RequestReplyExample java.io.IOException

2013-02-26 Thread stevebate
On Feb 25, 2013, at 2:21 PM, Babak Vahdat [via Camel] ml-node+s465427n5728116...@n5.nabble.com wrote: As I did *not* backport the fix for CAMEL-5861 to this branch (because it was/is not a supported version anymore). However the example works properly on the 2.10.x branch as well as trunk