File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and VisualAge

 
Shreya Menon
Ranch Hand
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shreya Menon
Ranch Hand
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle.
I shall try it and let you know
Maya
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic