I am using:
BlazeDS Turnkey:
Tomcat 6.0.14
I am building only AMF type services

I currently have custom authentication working using JDBCRealm. Hence, I
have some database parameters in server.xml as well as my application. Is it
possible to use a portion of the URL as a parameter to connect to a
different database.

For example, currently I use the following URL:
http://localhost:8400/samples/messagebroker/amf

If the URL was something like:
http://localhost:8400/samples/messagebroker/<customer>/amf
I would like to connect to the database for <customer>.

Would it be best to pull the portion of the url for the customer and
dynamically create the database connection programatically? OR just have
different applications for different customers.

Alternative:
http://localhost:8400/<customer>/messagebroker/amf
So each customer would physically have different folders and different
applications with different database configurations.

Thanks In Advance.
-- 
Shinan S. Kassam

Reply via email to