users@javaee-spec.java.net

[javaee-spec users] Updating DataSourceDefinition in Common Annotations

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Wed, 10 Aug 2016 23:58:41 +0200

Hi,

The @DataSourceDefinition (and corresponding DD equivalent) has an
attribute called properties.

In practice these properties are intended for either the data source itself
(as JavaBean properties on the class identified by "className"), OR for the
pool that manages connection for that data source.

This fact however is not entirely clear. The javadoc only refers to them
being "vendor-specific properties".

What about one or more of the following:

A) Clarifying existing properties are properties for either the datasource
or the pool managing it
B) Introducing new "dataSourceProperties" and "poolProperties" attributes
C) Some handle for programmatically providing pool properties, e.g. an
attribute taking a class name which implement Supplier<Map<String, String>>

Thoughts?

Kind regards,
Arjan Tijms