I used to be able to get a currently running embedded glassfish with the old
org.glassfish.api.embedded package
String serverName = Server.getServerNames().get(0);
Server server = Server.getServer();
In the new org.glassfish.embeddable package I can see the GlassFishRuntime
that is used for starting a new instance, but I can't see how to get an
instance that is already running on either a specific port or by name.
Can anyone help me?
Thanks
--
View this message in context: http://old.nabble.com/Embedded-Glassfish-3.1---How-to-Get-the-Currently-Running-Server-Instance-tp31196548p31196548.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.