Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

DATABASE INITIALIZATION

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello Ranchers!!
I'm a MCA Student.. now this is our semester holidays. i've planned to study EJB myself. I know JSP , Servlets to run in Apache Tomcat!
Now i downloaded NetBeans for J2EE application and also the tutorial.
I'm doing the sample projects given in that tutorial..

i've completed my fist program in ConvertApp.. and then in Shopping cart..
ie., for stateless and stateful sessionbean

now.. my next program in to connect to database
i've oracle 8i database installed in my PC
in that example it is PointBase.
when i searched the netbeans IDE.. there it is given Derby database

I don't know how to use this databases and from where i can get the database!! In the source code i've seen
c.lookup("java.comp/env/jdbc/pointbase");
can i give like this
c.lookup("jdbc dbc:test") where test is the DSN for oracle

and also in makeConnection()
there is getPointBase().getConnection()

can i use like this
try
{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e)
{out.println(e);
}
String dbURL = "jdbc dbc:test";
Connection dbCon;
dbCon = DriverManager.getConnection(dbURL,"scott","tiger");

please help me ranchers..
and also.. help me.. how can i do a EJB application using oracle
___________________________________________________________________
when i log in to this URL
http://localhost:4848
i can see under the page
Application Server > Resources > JDBC > Connection Pools
do i want to configure anything here.. in connection pools and JDBC Resources
_____________________________________________________________________

Help me ranchers!!

Let me also come like you
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Sorry, this is a duplicate post for a thread in the JDBC forum. I will close this one and let answers be posted in that thread.

Please, try to refrain from duplicate posting. Thanks

Mark
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic