Win a copy of Murach's Python Programming this week in the Jython/Python 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
Hi

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

#|2005-06-20T18:52:02.406+0300|WARNING|sun-appserver-pe8.1_02|javax.enterprise. system.stream.err|_ThreadID=11;|com.sun.enterprise.InvocationException
at com.sun.enterprise.resource.ResourceManagerImpl.getTransaction(ResourceManagerI mpl.java:41)
at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:14 1)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(Co nnectionManagerImpl.java:258)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(Connecti onManagerImpl.java:147)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(Connecti onManagerImpl.java:122)
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:70)


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!