Mina2 disconnectOnNoReply Help???

2013-10-05 Thread milltj
I am hoping that someone can help me with my problem. I have a client application that sends XML messages to Camel. I am using Mina2 v2.11.1 component in Camel as a endpoint to consume incoming XML. I have no control over the client application and in most cases it requires a response to the reques

disconnectOnNoReply not working...

2013-08-22 Thread milltj
Pontus: You are correct. I realized it was incorrect it should be... http://camel.apache.org/schema/spring";> &*codec=#gilbarcoDecoder" /> That corrects the datalength error, but unfortunately it is still disconnecting when a response

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

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

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: Mina Synchronous Communication

2013-08-20 Thread milltj
I am currently using Mina2 V2.11.1. My decoder looks like @Override protected boolean doDecode(IoSession is, IoBuffer ib, ProtocolDecoderOutput pdo) throws Exception { int headerSize=28; byte[] header = new byte[headerSize]; byte[] xmlBuffer = null; byte[]

Mina Synchronous Communication

2013-08-13 Thread milltj
I have a client application that sends messages via a socket. For each message it sends it requires a response. I have setup the Mina2 component with a custom decoder to receive the messages. This works when I have the following in my camel-context.xml

JDBC Connection Setup

2013-08-11 Thread milltj
I have been searching the web and have been unable to find out how to configure the datasource when I am trying to use JDBC to connect to a MySQL database. I added the following dependencies to my project: org.apache.camel camel-jdbc 2.11.1 mysql mysql

Codec and Headers

2013-08-08 Thread milltj
I have a question regarding Custom Codecs and Headers. I have a message format that is is a 28 byte header followed by XML. I am using the MINA2 component to receive the data and implemented a custom codec to read the data and add the header and XML to the body as a byte[]. I would like my codec t

MojoExecutionException -Unmarshalling from XML

2013-08-06 Thread milltj
Hey everyone, I am in the process of learning how to route with Camel and am having an issue with unmarshalling a Jaxb message. The scenerio is such that I have a processor bean that is intended to process the data after the XML has been unmarshalled. I put a jaxb.index file in the com.mycompany.