Charnjeet Singh
Charnjeet Singh

Reputation: 3107

How to Setup Jndi with weblogic server

I am new to weblogic server.I have setup JNDI with tomcat server and it runing fine for me .But i have to setup JNDI with weblogic so please anyone help me where i have put

<ResourceLink global="jdbc/myPath" name="jdbc/myPath"
        type="oracle.jdbc.pool.OracleDataSource" />

This code i.e in tomcat i have put this code in Context.xml file but not know where to add this in weblogic and this code also:

<Resource name="jdbc/myPath" auth="Container"
            type="oracle.jdbc.pool.OracleDataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
            factory="oracle.jdbc.pool.OracleDataSourceFactory" url="url"
            user="username" password="password" maxActive="20" maxIdle="10"
            maxWait="10000" />

This code is in server.xml file of tomcat but not know where to put in weblogic.Please help me

Thanks

Upvotes: 3

Views: 9804

Answers (1)

DSF
DSF

Reputation: 804

You go to http://localhost:7001/console/. The default credentials are weblogic/welcome1. Then you access the data sources section and create your data source.

Upvotes: 2

Related Questions