activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <>
Subject Looking for feed back on AMQNET-75: Enhance NMSFactory so that it's config is not hard coded.
Date Sun, 04 Nov 2007 20:55:34 GMT
Hi Guys,

If you get a chance coudl you review that patches I've attached to AMQNET-75:

I 've modified the NMSFactory class so that it dynamically looks up
the right implementation of IConnectionFactory of a given Uri scheme.
NMS implementations just need to create a specially crafted resource
file that the NMSFactory  will look for.  This is very similar to the
META-INF service discovery stuff we do with the Java stuff.  Please
let me know what you think.

An additional enhancement, I made NMSFactory implement
IConnectionFactory and it just delegates to the actual implementation
discovered.  So most folks just need to do stuff like:

factory = new NMSFactory("tcp://localhost:616161");

But they want to modify the factory properties they can still access
that delegate via the ConnectionFactory property:

factory = new NMSFactory("tcp://localhost:616161");
= "foo";

Also, it seems to me that a better name for NMSFactory is
NMSConnectionFactory.  Anybody mind a rename?



View raw message