Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

datasources in custom authentication realms of SUN AS  RSS feed

Maris Orbidans
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have written a database security realm for SUN AS 8.1. I want to get database connections from a datasource, but it doesn't work. DataSource.getConnection() throws InvocationException

at com.sun.enterprise.resource.ResourceManagerImpl.getTransaction(ResourceManagerI
at com.sun.enterprise.resource.PoolManagerImpl.getResource( 1)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(Co
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(Connecti
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(Connecti
at com.sun.gjc.spi.DataSource.getConnection(

Here is SUN application server code that throws the exception. It would be very interesting to know what is the reason to do so.

I don't want to use driver manager to get database connections ! Other app. servers allow to use datasources from security realms (WebLogic) and some of them even provide already written RDBMS realms.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!