Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB+Database  RSS feed

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am very new to EJB and I have this question,
Say I want to use SQL server as the Data Base for an application we are developing, I just want to know how to connect the database. The DB and the EJB server are both in the same mechine. Could you please give me step by step answer,Thank you very much.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which app server are using ?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use J2EERI from http://java.sun.com/j2ee, you can see information in
J2EE Tutorial
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the application server which is there in the J2EE bundle. I have the tutorial but the problem is it explains how to connect to a DB called cloudspace. What I want to know is how to connect to Databases like Oracle or SQL server,
Thank you in advance....
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can config in admin web console or deployment tool.
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks a lot, I cant check what you have mentioned now, I will surely check it later,. Thanks a lot once again,.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I want to know is how to connect to Databases like Oracle or SQL server


Do you want to know how to login or you want to know how to map your entity bean to tables in oracle/MS SQL.
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you should read this book.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!