On Fri, Aug 17, 2001 at 11:22:51AM -0400, marc fleury wrote:
> use BMP and access your datasource by name based on the user,
> 
> or write that code for CMP you are the first to require this.

This isn't the first request for this functionality that I've seen.

The JCA-based pools are theoretically capable of supporting this.
See org.jboss.resource.security.PrincipalMapping in jbosscx (or
connector or something, dang newfangled module system).  You'd
need to implement a mapping that returns a different resource
principal for each caller principal.

Toby.

> 
> marcf
> 
> 
> |-----Original Message-----
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of
> |Robert Xiong
> |Sent: Wednesday, August 15, 2001 1:24 AM
> |To: [EMAIL PROTECTED]
> |Subject: [JBoss-dev] (no subject)
> |
> |
> |Hello, 
> |I am new to Jboss and J2EE. Here is my question:
> |Since I have to specify the datasource when I deploy
> |my nean (using CMP), just wondering how can I use the
> |same bean to access diffrent datasource? In a ASP
> |model, different user will access different database
> |schema using the exactly same application. How can we
> |dynamicly allocate a datasource to the bean based on
> |the user login? Does Jaws.xml DTD let us to do that?
> |Thanks for you answer.
> | 
> |Robert 
> |
> |=====
> |Robert Xiong
> |Sr. Software Engineer

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to