On Jun 11, 2008, at 2:16 AM, Christian Schneider wrote:

Hi,

I am building webservice adapters for a legacy system. The system can be accessed with a java api but is not multi threaded. So my problem is that I want to offer several services in one process and still make sure only one service is called at a time. To make this scalable I will then run this processes several
times on the same and different machines.

So my question is:
Can I offer several services with cxf on the same jms queue in one process

I think so, yes. With configuration, you can use message selectors to put multiple endpoints on the same queue and have the messages dispatched correctly.


and make sure the whole process works only on one request at a time and routes the reuqest to the right service?


This one I'm not sure about. Good question. CXF is definitely designed for high scalability and mutlti-threaded cases.

Hmmmm.... One option, I guess, would be to write a custom invoker that syncronizes things and use a single instance of that invoker for all the endpoints. Might be harder for dynamic deployments though.

Another option might be to write a pair of interceptors, one for the IN chain and one for the out/out fault chains that just aquire/release a lock of some sort.

Dan



I also would like to make management of this system as easy as possible. Ideally I would like this process to be a kind of application server where I can install and deinstall services while it is running. Still they should listen on one queue and work single threaded. I imagined doing this with an osgi server. The problem is that probably then each bundle will have it´s own cxf and they are not single threaded anymore.

Any ideas for this?

Best regards

Christian

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to