Hi Jesper
On Wednesday 23 January 2013 01:33 AM, Jesper Pedersen wrote:
> Hi,
>
> I had a chance to look at subject.
>
> There are multiple things to consider, since
>
> * A BootstrapContext instance is tied to a ResourceAdapter instance
> * A BootstrapContext instance is tied to a WorkManager instance
> * A WorkManager instance maybe a DistributedWorkManager instance
> * A Work instance may implement ResourceAdapterAssociation
> * Other components implementing ResourceAdapterAssociation
>
> So we are dealing with a complex network of object, which may be
> distributed across a cluster.
>
> With that in mind I'm ok with the following JavaDoc
Thanks for sharing this proposal. I will get back to you on this.
> /**
> * Returns an unique identifier for the BootstrapContext instance.
> *
> * The value returned is a non-<code>null</code> string.
> * The empty string is a valid value.
> *
> * It is recommended that the value, if defined, is human-readable
> * including the Java letters, digits, underscore (_),
> * dot (.) and minus (-) as defined by the Java Language Specification.
> *
> * @return The value
> */
> public String getUniqueId();
>
>
> In the specification text we can describe the recommended behavior in a
> clustered / cloud environment.
So, you are suggesting that the spec state the following recommendations:
- If the application has been deployed into a clustered application server
then this name is recommended to be different for every instance within
the cluster. Otherwise this name may have any value, including the empty
string.
In [1], I had suggested that we also allow for null values to allow the RA
to determine if it is operating in a cluster or not. Any thoughts on that?
Thanks
--Siva.
[1]
http://java.net/jira/browse/CONNECTOR_SPEC-1?focusedCommentId=351272&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_351272