1
votes

after to fail to create a jdbc connection pool through glassfish admin console i tried to create a JDBC Connection Pool for Oracle on GlassFish through the Windows command line by typing in this command

 create-jdbc-connection-pool 
 –datasourceclassname oracle.jdbc.pool.OracleDataSource 
 –restype javax.sql.DataSource 
 –property user=user1:password=topSecret:URL="jdbc:oracle:thin:@localhost:1521:XE" MyExampleDB

I get the following error message:

Watch this picture

Please help? Is it even possible to create a JDBC Connection Pool with GlassFish? Or better to migrate to WildFly?

1
Please don't provide information that can be text as image.Karl Richter

1 Answers

2
votes

yes, it's possible to create JDBC Pool in glassfish

I'm not sure about command line syntax, but via admin console it pretty easy

see admin console: http://localhost:4848/common/index.jsf Resources -> JDBC - > JDBC Connection Pools

upd:

command line example

asadmin create-jdbc-connection-pool 
--restype=java.sql.Driver
--driverclassname=oracle.jdbc.pool.OracleDataSource
--property user=myuser:password=mypassword:url='jdbc:oracle:thin:@localhost:1521:xe'
test_ora_pool