CMP & Multiply databases

From: mac (maciej.bajolek_at_interia.pl)
Date: 12/08/03


Date: Mon, 8 Dec 2003 22:52:44 +0100

Hi,

I have the following problem:

Is there any mechanism (pattern) for EJB applications, which allows
switching from one database to another, depending on user role. In other
words:

if (User1 calls bean method)
   use DataSource1
else
   use DataSource2

The problem is that must be aplied with CMP enity beans.

Is it possible?

--
best regards
maciek