aspose file tools*
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
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
 
 
subject: EJB and VisualAge