Exforsys

Online Training

Connect to Database

This is a discussion on Connect to Database within the Java forums, part of the Programming Talk category; Hi Friends, How to connect to database in Java without creating DSN and by using JNDI in J2EE Server. please ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-30-2006, 06:07 AM
Junior Member
 
Join Date: Feb 2006
Posts: 12
seenu01 is on a distinguished road
Connect to Database

Hi Friends,

How to connect to database in Java without creating DSN and by using JNDI in J2EE Server. please any one help me


Thanks in advnace
seenu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-01-2007, 09:42 PM
Junior Member
 
Join Date: Apr 2006
Posts: 25
Limca is on a distinguished road
Use JDBC.There are many drivers for different databases which can be used to connect directly a database without any DSN.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-01-2007, 12:36 PM
Junior Member
 
Join Date: May 2007
Posts: 3
ashfaque_khan6 is on a distinguished road
Quote:
Originally Posted by seenu01 View Post
Hi Friends,

How to connect to database in Java without creating DSN and by using JNDI in J2EE Server. please any one help me


Thanks in advnace
seenu
Using the Jar file ojdbc14.jar create a connection pool in the JNDI directory service and than in your code use the datasource object with lookup method to access the connection . For code reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
FAQ: How to find people's E-mail addresses David Alex Lamb Tech FAQ 1 06-24-2007 09:57 AM
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 2 05-23-2004 06:15 AM
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 3 04-18-2004 06:15 AM
Kerberos FAQ, v2.0 (last modified 8/18/2000) Ken Hornstein Tech FAQ 0 04-17-2004 08:28 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 11:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.