On 16/03/2015 13:35, Clebert Suconic wrote:
> just an idea I think it would make sense:
>
> What about having something like a DriverFactory (just to not call it
> ConnectionFactoryFactory)
>
>
...
>
> DriverFactory factory = new OracleDriverFactory();
> factory.newConnectionFactory(ConnectionFactory,
> "jms://user:password_at_localhost:3030?TTL=30000"); // just pretend TTL
> was an Oracle property.
Given that the "driver class" here would be a JMS-provider-specific class, what would be the benefit of this compared
with simply defining a standard constructor:
ConnectionFactory connectionFactory = OracleConnectionFactory(URL);
Or are you suggesting that the "driver factory" would work with any JMS provider? In which case it would need a standard
way to instantiate the connection factory of a particular JMS provider.
Nigel