aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes how to connect two database in BMP? 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 "how to connect two database in BMP?" Watch "how to connect two database in BMP?" New topic
Author

how to connect two database in BMP?

gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
Hi All,

can i connect two databases to BMP??

like i am using Oracle and DB2, when i add a record i want to store it to two database.

how to do??

thanks in advance

Gopal
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

hi
it semm to be depended on at least following cnditions ,
-if you siply want to store data in both database independently
then you can use ordinary sql stuff.
-but if you need to commit in both databse transactionally
then you should use some XA capable driver and XA interfaces to make an actvity containing both of your commits.

if you need more comment then tell me which section you need


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to connect two database in BMP?
 
Similar Threads
DAO and Bean Managed
BMP
How can i display image .bmp in a JSP !!! Thanks !!!
database connection
XML and Database