Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
how do you create 2 persistent sessions and pointing at 2 different rdbms's  
Forum Index -> Object Relational Mapping (ORM)
Author Message
alanww35


Joined: 2008/04/18
Messages: 1

Offline

This relates to the PersistenceManager and the Sessions.
So have the orm code all going on one db. But would like to run same api generated against 2 db's (say one mysql and the other oracle, or say a HSQLDB and Mysql) at the same time (can generate code for rdbms 1 and then mapping files for rdbms 2 fine). This is for one program that connects to 2 db's (say oracle and ms sql), where both "connections" are against the same model/api. The orm can generate the hibernate config files, so I would assume it would be a matter of telling PersistenceManager which file to use when request a PersistentSession. BUT, as there is no API doc (Is there any org.orm api doc ? that would really help), how do you create 2 persistent sessions and pointing at 2 different rdbms's (for the same API).
 
Rain


Joined: 2005/04/29
Messages: 711

Offline

Hello alanww35,

Thank you for your message. We are sorry that currently we do not support running 2 persistence session pointing to different database at the same time (since our Persistent Manager is in singleton). May I know why you would like to do this?

Currently we do not have the Javadoc available for the orm.jar, but you can find the source at
http://files3.visual-paradigm.com/Resources/ORM/orm_src.zip

Best regards,
Rain Wong
 
 
   Forum Index -> Object Relational Mapping (ORM)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil