Oracle Weblogic Server (MOSC)

MOSC Banner

What is name of Weblogic's default data source?

edited Mar 11, 2011 9:04AM in Oracle Weblogic Server (MOSC) 6 commentsAnswered
I'm trying to get Weblogic's default data source using the Java code below, but I don't know what to set strDefaultDataSource to. In JBoss, the string is "java:DefaultDS", and in WebSphere the string is "DefaultDatasource".

String strDefaultDataSource = ?;
InitialContext initialContext = new InitialContext();
DataSource dataSource = (DataSource)initialContext.lookup(strDefaultDataSource);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center