on 03-23-2010 5:44 PM
Hello all!
I have a datasource like this image above in my netweaver enviroment.
[http://img31.imageshack.us/img31/2765/datasource.png]
I have tried to lookup this DataSource like this:
InitialContext dbInitContext = new InitialContext();
DataSource dataSource = (DataSource) dbInitContext.lookup(DATASOURCE_NAME);
Connection con = dataSource.getConnection();
I have already tried these names to lookup: mysql_laboral, mysql_con.. Also java:comp/mysql..... And anothers.....
All tries I got the same error... "Object Not Found in Lookup of (plus name)"
How is the correct way to do this?
Hello Vinicius,
Refer to the following blog for a good description and example code implementation:
/people/divyakumar.jain/blog/2006/05/27/data-migration
Regards,
Ventsi Tsachev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.