Maximo Wire - The IBM Maximo Help & Discussion Forum
May 23, 2012, 12:14:08 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Connecting to different Database from MAXIMO .  (Read 748 times)
0 Members and 1 Guest are viewing this topic.
c.madhav
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: April 13, 2011, 02:40:12 pm »

Hi All

I am working on Integration, i have to collect data from different DBs other than MAXIMO DB.From DBManger.getConnection() will always connects to MAXIMO DB.

How can i connect to different DB, without writing any standalone java class like (DriverManager.getConnection(),Class.forName() stuff), I feel this is not most efficient way.

So is there any way in MAXIMO where we can getConnection by supplying DB URL ,username and Password..to connect which ever db we want to connet.

Thanks Inadvance
Logged
maurogrz
Global Moderator
Full Member
*****

Karma: 14
Posts: 111



View Profile Email
« Reply #1 on: April 13, 2011, 10:16:47 pm »

A few time ago I made some classes that write data in an "external" SQL server database (my installation was on Oracle).
I developed an "utility" class to connect and execute statements on the DB and then I use it in my classes.
The configuration (user/pwd/DB) are stored on the properties function.,

if you need some suggestion, let me know and I will share some code....
Mauro
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!