Re: Is there a bug with file:// endpoint, or user error?

2013-08-21 Thread Claus Ibsen
You can try use RAW for this big and ugly regexp http://camel.apache.org/how-do-i-configure-endpoints.html On Wed, Aug 21, 2013 at 4:00 PM, Chris wrote: > When I try to use the "include" option when defining an SFTP endpoint, > sometimes it works, other times the endpoint URI gets totally scrambl

Re: Unmarshalled object is null from remote WS if run jar but not if run from inside IDE

2013-08-21 Thread Claus Ibsen
I suggest to make sure the classpath for running standable contains all the expected JARs. And if you do any tricks such as having an uber JAR or something then that can be a problem. http://camel.apache.org/how-do-i-use-a-big-uber-jar.html On Wed, Aug 21, 2013 at 11:21 PM, clarkcb wrote: > I tho

Re: Incomplete Messages

2013-08-21 Thread Claus Ibsen
Hi Maybe take a peak at camel-hl7 as it has a mina codec for the hl7 format. So it may be of inspiration. On Thu, Aug 22, 2013 at 12:26 AM, milltj wrote: > Actually; the header sent from the caller is sending the correct size for the > XML body of the message. I found that there are multiple ca

Re: Connecting remotely via JMX

2013-08-21 Thread Claus Ibsen
Hi Did you configure the JMX settings before you started CamelContext? This is needed for it to have effect. On Wed, Aug 21, 2013 at 7:07 PM, Tyler Durvik wrote: > I "ported" my java DSL to Spring DSL and can connect using the JMX URI: > > service:jmx:rmi:///jndi/rmi://:1099/jmxrmi/camel > > I

Re: aggregator and onCompletion

2013-08-21 Thread peacock.snowdrift
ceposta wrote > sorry, i mean your unit test I don't think I can do that. The test creates the routes, using a ProducerTemplate as the start URI and a MockEndpoint for the destination URI. I create a RouteBuilder and assign the routes to it using the context. I create my test data and use template

Re: aggregator and onCompletion

2013-08-21 Thread Christian Posta
sorry, i mean your unit test On Wed, Aug 21, 2013 at 6:22 PM, Christian Posta wrote: > post your route as a gist or pastebin and I will take a look for you > > > On Wed, Aug 21, 2013 at 4:37 PM, peacock.snowdrift < > mark.har...@arcinnovations.co.nz> wrote: > >> Hi, >> >> I'm trying to get an ag

Re: aggregator and onCompletion

2013-08-21 Thread Christian Posta
post your route as a gist or pastebin and I will take a look for you On Wed, Aug 21, 2013 at 4:37 PM, peacock.snowdrift < mark.har...@arcinnovations.co.nz> wrote: > Hi, > > I'm trying to get an aggregator to work in Camel 2.11.0 and am experiencing > difficulties in doing so. > > I have defined

aggregator and onCompletion

2013-08-21 Thread peacock.snowdrift
Hi, I'm trying to get an aggregator to work in Camel 2.11.0 and am experiencing difficulties in doing so. I have defined a main and error route. The main route looks like this: routeBuilder.from(input).routeId("Main") .onCompletion().beanRef("myStrategy", "setCompleted").end() .o

Re: Incomplete Messages

2013-08-21 Thread milltj
Actually; the header sent from the caller is sending the correct size for the XML body of the message. I found that there are multiple calls to the doDecode(...) method that have to be combined to put together the whole message before returning the message. Tim -- View this message in context

Re: reading integer values from properties file

2013-08-21 Thread bxkrish
Hi Christian, Thanks for the suggestion. I tried removing the spaces but it didn't work. I was hoping for some help if I am making any syntax mistakes. I am referring to this help from Camel. http://camel.apache.org/using-propertyplaceholder.html. They mentioned how to access an xs:int proper

Re: Unmarshalled object is null from remote WS if run jar but not if run from inside IDE

2013-08-21 Thread clarkcb
I thought this at first, and that it was the incoming interceptor to blame for exhausting the message body (as InputStream) before it got to the unmarshalling step, but after removing the interceptors from endpoint configuration I still have the same problem. I decided to debug both versions (runn

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-08-21 Thread Christian Müller
Thanks for sharing your solution Steve. I added the servicemix@ user list in cc because they provide the osgi bundle and are also interested to get this fixed. Best, Christian Am 21.08.2013 22:06 schrieb "steve.ardis" : > I've spent a couple days trying to get Fuse 6.0.0 running with Bouncy > Cas

Re: Incomplete Messages

2013-08-21 Thread Christian Müller
I suggest to reporg the problem to the sending application. They should sent the correct content size. IF you have to deal with this issue, I suggest to post this question to the mina user list, becausr this isn't really a Camel question. Best, Christian Am 21.08.2013 20:39 schrieb "milltj" : > I

Re: reading integer values from properties file

2013-08-21 Thread Christian Müller
What Willem say is, Camel 2.4.0, which was released more than 3 years ago [1], isn't supported at Apache any more. If you need a fix for this version, you have to do it by yourself or by choosing professional support. You could try whether it works by removing the leading and trailing spaces. [1]

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-08-21 Thread steve.ardis
I've spent a couple days trying to get Fuse 6.0.0 running with Bouncy Castle via a Camel Crypto route. Here are my notes on how I finally got this working (and some detail as to what I think the problem is): To setup Bouncy Castle on "jboss-fuse-6.0.0.redhat-024": 1. Download the follow

Incomplete Messages

2013-08-21 Thread milltj
I have been playing with the Mina2 component and have a need to implement my own decoder. The messages that I receive have a 28 byte header followed by a variable length XML message. The header contains the length of the XML message as well as some other information. I am running into a problem

Re: reading integer values from properties file

2013-08-21 Thread bxkrish
Hi William. My product is packaged with Camel 2.4 version and I am not allowed to change it. Are you implying the Camel version 2.4 cannot support Integer values for a property? Thanks Bala -- View this message in context: http://camel.465427.n5.nabble.com/reading-integer-values-from-properti

Re: camel-spring-batch 2.11.1 breaks previous working routes

2013-08-21 Thread Gardella juan
I've attached "CAMEL-6656-testcase.zip" with a test to reproduce the bug in the ticket. If we use camel 2.11.0 the test works fine. -- View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426p5737694.html Sent from the Ca

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I "ported" my java DSL to Spring DSL and can connect using the JMX URI: service:jmx:rmi:///jndi/rmi://:1099/jmxrmi/camel I did add the following line in the Spring DSL: In the Java DSL I have the following: ManagementAgent agent = getContext().getManagementStrategy().getManagementAgent(); if(

Mina BufferDataException when using disconnectOnNoReply option

2013-08-21 Thread milltj
Ok, So I decided to go back to the drawing board and decided to run some tests. First, I implemented a very simple decoder that contains the following code: @Override protected boolean doDecode(IoSession is, IoBuffer ib, ProtocolDecoderOutput pdo) throws Exception { System.out.printl

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
Also, I am running JDK 1.7.0_25-b16 64-bit on Windows 7 Pro. On Wed, Aug 21, 2013 at 9:47 AM, Tyler Durvik wrote: > I am running standalone. Created the project using "mvn > archetype:generate" and went through the steps to create a Java DSL project. > > > > On Wed, Aug 21, 2013 at 9:43 AM, C

Is there a bug with file:// endpoint, or user error?

2013-08-21 Thread Chris
When I try to use the "include" option when defining an SFTP endpoint, sometimes it works, other times the endpoint URI gets totally scrambled, depending on the regular express for "include". The point at which the URI gets scrambled is after URISupport.normalizeUri(uri) is called. I tried pr

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I am running standalone. Created the project using "mvn archetype:generate" and went through the steps to create a Java DSL project. On Wed, Aug 21, 2013 at 9:43 AM, Claus Ibsen wrote: > Are you running standalone or in some server/container? And if so which > one? > > On Wed, Aug 21, 2013 at

Re: Connecting remotely via JMX

2013-08-21 Thread Claus Ibsen
Are you running standalone or in some server/container? And if so which one? On Wed, Aug 21, 2013 at 3:35 PM, Tyler Durvik wrote: > I have routes defined using Java DSL and want to connect to the JVM > remotely to monitor the Camel Processors using jconsole. Is there > something special that I m

Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I have routes defined using Java DSL and want to connect to the JVM remotely to monitor the Camel Processors using jconsole. Is there something special that I must do in the Java DSL to enable remote JMX? Even when I'm on the same machine, jconsole can only connect when I choose the PID. The URL

Re: Time to deliver a message?

2013-08-21 Thread John D. Ament
I guess one other important thing to point out is that this is camel 2.10.6 on service mix 4.5.3. On Wed, Aug 21, 2013 at 9:17 AM, John D. Ament wrote: > Not sure what more details I could provide. > > Basically, I have a polling consumer on a queue. I see that polling > consumer polling all the

Re: Time to deliver a message?

2013-08-21 Thread John D. Ament
Not sure what more details I could provide. Basically, I have a polling consumer on a queue. I see that polling consumer polling all the time. DOesn't see a message, even though the message was sent (based on log messages) several minutes back. Then finally after a little bit more the message g

Re: AMQ DeadLetterStrategy Not Being Respected

2013-08-21 Thread nezor
Sorry I thought that was where this was posted. -- View this message in context: http://camel.465427.n5.nabble.com/AMQ-DeadLetterStrategy-Not-Being-Respected-tp5737613p5737661.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Exception when trying to create a route including jdbc:sqlserver

2013-08-21 Thread Dale King
You are providing a connection object, but it needs a DataSource object. See here for an example of using DataSource with SQLServer and bind to the data source instead of the connection: http://technet.microsoft.com/en-us/library/aa342342.aspx

http4 component and preemptive authentication

2013-08-21 Thread Martin Stiborský
Hello guys, I just switched http component for all my routes to http4 component, we did some performance testing and it really looks better. (Btw, anyone interested in the results? Measured with JMeter, simple route, just fetching xml file...). The switch is kind of a hack, I did it via EventNotif

Exception when trying to create a route including jdbc:sqlserver

2013-08-21 Thread lassesvestergaard
Hi all. I'm having a problem when trying to create a route where I get data from a microsoft sql server. My problem seems to be that the route want an other bean than I provide ( Found bean com.microsoft.sqlserver.jdbc.SQLServerConnection expected type was: interface javax.sql.DataSource). The sta

Streaming with the Camel SQL Component

2013-08-21 Thread gardnercr
I attempted to post this earlier, but didn't see it post. Anyway, I'm using the SQL component and would like to split either on some number of rows or even bytes. I'd need to convert the split messages to CSV and send them over a message queue. The complicating factor is that each message to sen

Re: Time to deliver a message?

2013-08-21 Thread Christian Müller
No, this is not expected. Can you provide more details? Best, Christian Am 21.08.2013 05:55 schrieb "John D. Ament" : > Hi, > > Assuming that I'm using activemq queues as my components, how quickly > should a message be delivered? > > In a number of routes, I'm moving data from one queue to anoth

Re: Unmarshalled object is null from remote WS if run jar but not if run from inside IDE

2013-08-21 Thread Claus Ibsen
Maybe its related to streams? http://camel.apache.org/why-is-my-message-body-empty.html On Wed, Aug 21, 2013 at 9:30 AM, clarkcb wrote: > Hello, > > I am trying to use a remote soap service via camel, and I'm at the point now > where I can successfully access the service running from inside my ID

Unmarshalled object is null from remote WS if run jar but not if run from inside IDE

2013-08-21 Thread clarkcb
Hello, I am trying to use a remote soap service via camel, and I'm at the point now where I can successfully access the service running from inside my IDE (IntelliJ IDEA), but when I try to run the the jar generated via "maven clean install" I get a NullPointerException when trying to access the u

Re: camel-spring-batch 2.11.1 breaks previous working routes

2013-08-21 Thread Claus Ibsen
I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6656 On Sat, Aug 17, 2013 at 9:04 AM, Claus Ibsen wrote: > Hi > > Yeah sounds like a bug, feel free to log a JIRA, and as usual we love > contributions with patches. > > > On Fri, Aug 16, 2013 at 6:45 PM, Gardella juan > wrote: >> Hi

Re: Spring Bean represented as endpoint

2013-08-21 Thread Claus Ibsen
It could be an issue in the websocket component as its a bit more special than a regular component. And also configuring using endpoint uri would usually assume host and port is being configured there, and NOT from the component. On Wed, Aug 21, 2013 at 4:13 AM, Willem jiang wrote: > I think y

Re: Field support for OGNL/simple

2013-08-21 Thread Claus Ibsen
No fields is not being added. People can use any of the other languages that may support that such as mvel, ognl, groovy et all The log is using the simple language, so check its docs if you want to call a method on a bean, how to do that. On Tue, Aug 20, 2013 at 5:29 PM, jamie3 wrote: > The c