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
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
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
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
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
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[]
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
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
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
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.
10 matches
Mail list logo