-
1. Re: ConnectionFactory & Connection without using JNDI.
clebert.suconic Apr 5, 2007 10:48 AM (in response to jkrishnakumar)How would you do that?
It is possible, but it would require a whole lot of hack, and I don't think we support that.
But If you have a nice idea on how this would make sense, and what would be a pretty API for finding ConnectionFactories without JNDI, I would like to hear you. -
2. Re: ConnectionFactory & Connection without using JNDI.
jkrishnakumar Apr 6, 2007 9:08 AM (in response to jkrishnakumar)In JBossMQ we got the Connection factory(without using jndi lookup) by using SpyConnectionFactory class.
The Code snippet uses SpyConnectionFactory for JBossMQ:
ConnectionFactory connFactory = (ConnectionFactory)new SpyConnectionFactory(loadProperties());
public Properties loadProperties() {
Properties props = new Properties();
props.setProperty(UILServerILFactory.SERVER_IL_FACTORY_KEY, UILServerILFactory.SERVER_IL_FACTORY);
props.setProperty(UILServerILFactory.CLIENT_IL_SERVICE_KEY, UILServerILFactory.CLIENT_IL_SERVICE);
props.setProperty(UILServerILFactory.UIL_ADDRESS_KEY, uilAddress);
props.setProperty(UILServerILFactory.UIL_PORT_KEY, uilPort);
return props;
}
We are in need of the same functionality API in JBoss Messaging same as SpyConnectionFactory in JBossMQ.
Thanks in advance.