File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

EJB and VisualAge

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
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 ?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Thanks Kyle.
I shall try it and let you know
I agree. Here's the link:
subject: EJB and VisualAge
It's not a secret anymore!