Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
    Bookmark Topic Watch Topic
  • New Topic


Megha Rajeevan
Posts: 24
  • Mark post as helpful
  • send pies
  • 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
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
catch(ClassNotFoundException 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
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
Mark Spritzler
Posts: 17278
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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

    Bookmark Topic Watch Topic
  • New Topic