I've been trying to create a JDBC connection pool using AMX, however, the
code we used for Glassfish v2 no longer works under Glassfish V3.1. I
understand that AMX has been changed for Glassfish V3 and I've read the
Glassfish V3 AMX SPI, but still that did not resolve my issue. Any
advise/hints/tips would be greatly appreciated.
The code that worked under gf v2 is:
AppserverConnectionSource appserver =
new
AppserverConnectionSource(AppserverConnectionSource.PROTOCOL_RMI,
GLASSFISH_HOSTNAME, GLASSFISH_JMX_PORT, GLASSFISH_USER, GLASSFISH_PASSWORD,
null);
DomainRoot domainRoot = appserver.getDomainRoot();
domainRoot.getDomainConfig().createJDBCConnectionPoolConfig(connPoolName,
"com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource", map);
Under gf v3.1 it throws this exception:
java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer
stub: javax.naming.NameNotFoundException: management/rmi-jmx-connector
--
[Message sent by forum member 'lostvicking']
View Post: http://forums.java.net/node/822399