wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB and VisualAge Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB and VisualAge" Watch "EJB and VisualAge" New topic
Author

EJB and VisualAge

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi,
I want to know how do I connect to a DB2 database from an EJB in Visual Age.
I do have Visual Age Enterprise edition 3.5 and tried developing and testing an ejb using my DB2 database.,
Now I want to test this ejb with another DB2 databaase located in another machine.
How will I do it ?
Thans
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Maya,
All you have to do is change the URL of your DataSource that your Entity Bean uses to refer to the other machine. Usually the easiest way to do this is to use Db2Connect. Check through the DB2 documentation on how to do this.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Thanks Kyle.
I shall try it and let you know
Maya
 
jQuery in Action, 2nd edition
 
subject: EJB and VisualAge
 
Similar Threads
weblogic and visual age java configuration
DB2 JDBC connections
weblogic
saving xml file to a different server/dir in a servlet
JSP to EJB to DB2