We could add support for chaging entity bean's datasource at runtime only in case when the datasources have the same type mappings (datasource-mapping) and database schemas are the same. Would it help you?

[EMAIL PROTECTED] wrote:

this is my scenario:
        we need to migrate an old application that have 5 different
implementations, so when a user log into the application, it is redirected
to his respective server. In each server is running the same data model but
with different data.

Now, we are migrating this old app (client/server) to web but we cannot
change the data model (damn customer issue), so I´m trying to not construct
different EJBs to each datasource.

The meanwhile workaround is to create a new jar for each implementation (the
same code, but with different jndi names and datasources), but it represents
a heavy maintenance code...

Any ideas?

-----Original Message-----
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED]
Sent: Jueves, 30 de Octubre de 2003 05:20 tarde
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-dev] cmp with multiple datasource


No way, at the moment. But could you tell why you would like to do it? Thanks.

[EMAIL PROTECTED] wrote:


Hi all,
does anybody know how can I change the CMP entity bean datasource on
runtime? Are there any workaround to get this?


Regards,
Hernán.


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development






------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to