jsr343-experts@jms-spec.java.net

[jsr343-experts] Re: JMS_SPEC-89: Standard API to create and configure a ConnectionFactory

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Mon, 16 Mar 2015 18:46:50 +0000

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