cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <>
Subject Re: Writing my own transport
Date Wed, 07 May 2008 01:24:20 GMT
Hi Marcel,
Assume the transport you want to implement is AAA, basically you need 
several class as below

AAAConduit extends AbstractConduit,  kinda like  your transport client
AAADestination extends AbstractDestination,  your transport destination
AAAConduitOutputStream extends CachedOutputStream, send out client 
request, you should use your transport api to send out request in this class
AAADestinationOutputStream extends CachedOutputStream, send out server 
response, you should use your transport api to send out response in this 
AAATransportFactory, factory to get Conduit and Destination, also you 
need a transport_id to distinguash your transport

You can take a look at org.apache.cxf.transport.jbi which should be like 
your scenario


Marcel Heemskerk wrote:
> I have a service 'service1'  listening to HTTP. I would like be able to make
> a new transport for this service, so i can use a propietary transport
> protocol to receive the InputStream and send the OutputStream to. The
> received message is SOAP, so i just want to send it into the CXF marshalling
> layer to have deserialized to a SOAP header with and
> SOAP response, etc...
> It should be simple, because i want to re-use the existing 'service1'
> binding, JAXB, etc. However, it does not seem obvious. I've been trying to
> reverse engineer the JMS transport or HTTP transport but no luck so far.
> Could someone point out to me the relevant files or a tutorial on this
> matter?
> Thanks,
> Marcel

View raw message