简体   繁体   中英

Create JDBC Connection pool only accepts one operand for Oracle on GlassFish

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:

观看这张图片

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM