Consider checking the classloader class name - just like driver name in db case that should allow to figure out the app. server vendor.
----- Original Message -----
From: curtisr7@xxxxxxxxx
To: eclipselink-dev@xxxxxxxxxxx
Sent: Wednesday, December 17, 2014 1:52:52 PM GMT -05:00 US/Canada Eastern
Subject: Re: [eclipselink-dev] Adding extension points to EclipseLink
Doug -
Thanks for the followup.
> That way it was automatically populated for us when we were bootstrapping a container managed EMF.
In WebSphere we're planning the same thing. As I mentioned earlier in this thread, this detection support targets the case of application managed (Persistence.createEntityManagerFactory) when running in a container.
> Avoid incorrectly assuming you are in a container when you are not.
It will be up to each Platform to figure out what makes the most sense to make this determination. It is likely that the detection won't be perfect in all cases, but it will be better than what is in place today.
> Do not override a user provided server platform at any time.
100%. We only want to do something in the case where a property has not been specified.
> Allow for an EMF to be created within a container where a server platform integration is not wanted - fringe case but does come up occasionally.
Indeed this is an edge case and with detection in place it would require the user to explicitly set the target-server=None
Thanks,
Rick