You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stanislav Komlenac <st...@os.t-com.hr> on 2006/07/03 07:47:48 UTC

Re: JDBC Realm for several webapp

Citiram Stanislav Komlenac <st...@os.t-com.hr>:

>>> I want to have 2 web applications on my web server. Idea si to
>>> makde JDBC Realm unique for each web application. How can i do
>>> this?
>>
>> <http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html>
>>
>> The Realm Component
>>
>>   ...
>>
>>   You may nest a Realm inside any Catalina container (Engine, Host, or
>>   Context). In addition, Realms associated with an Engine or a Host are
>>   automatically inherited by lower-level containers, unless explicitly
>>   overridden.
>>
>> Sounds pretty straightforward :-)
>
Yes :-) I read that, but....
>
>>
>> Perhaps you should post the relevant part of your server.xml and
>> {context}.xml files
>>
>
problem is that i dont understand what should i have in this
{context}.xml files and what should i have in server.xml :-( a
nd where should i put this {context}.xml file?

Tnx for your answer :-)

Stanislav



---------------------- T - C o m - - W e b m a i l ----------------------
    Ova poruka poslana je upotrebom T-Com Webmail usluge
    MAXadsl pristup i racunalo za vec od 199 kn mjesecno!
    http://maxadsl.tportal.hr/



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JDBC Realm for several webapp

Posted by Hassan Schroeder <ha...@gmail.com>.
On 7/4/06, Stanislav Komlenac <st...@os.t-com.hr> wrote:

> > Where are you defining your contexts now??
>
> nowhere! i dont have any contexts define in my applications, as
> far as i know :-(

An application *is* a Context. It sounds like reading the servlet spec
would make this a lot less painful:-)

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JDBC Realm for several webapp

Posted by Stanislav Komlenac <st...@os.t-com.hr>.
>> >>> I want to have 2 web applications on my web server. Idea si to
>> >>> makde JDBC Realm unique for each web application.
>
>> problem is that i dont understand what should i have in this
>> {context}.xml files and what should i have in server.xml :-( a
>> nd where should i put this {context}.xml file?
>
> Where are you defining your contexts now??
>

nowhere! i dont have any contexts define in my applications, as
far as i know :-(

---------------------- T - C o m - - W e b m a i l ----------------------
    Ova poruka poslana je upotrebom T-Com Webmail usluge
    MAXadsl pristup i racunalo za vec od 199 kn mjesecno!
    http://maxadsl.tportal.hr/



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JDBC Realm for several webapp

Posted by Stanislav Komlenac <st...@os.t-com.hr>.
Quoting Kim Brianne Go <ki...@gmail.com>:

> Hi... you might want to look at SecurityFilters.  This make it possible for
> each webapp to be given unique realm security, basically the concept is a
> webapp containing its own security configuration so that you can deploy your
> webapp without additional setup from the appservers.
>
> Hope this helps...
>
> Brian
>

OK. tnx. i will :-)

Stanislav

---------------------- T - C o m - - W e b m a i l ----------------------
    Ova poruka poslana je upotrebom T-Com Webmail usluge
    MAXadsl pristup i racunalo za vec od 199 kn mjesecno!
    http://maxadsl.tportal.hr/



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JDBC Realm for several webapp

Posted by Kim Brianne Go <ki...@gmail.com>.
Hi... you might want to look at SecurityFilters.  This make it possible for
each webapp to be given unique realm security, basically the concept is a
webapp containing its own security configuration so that you can deploy your
webapp without additional setup from the appservers.

Hope this helps...

Brian

On 7/4/06, Hassan Schroeder <ha...@gmail.com> wrote:
>
> On 7/2/06, Stanislav Komlenac <st...@os.t-com.hr> wrote:
> > Citiram Stanislav Komlenac <st...@os.t-com.hr>:
> >
> > >>> I want to have 2 web applications on my web server. Idea si to
> > >>> makde JDBC Realm unique for each web application.
>
> > problem is that i dont understand what should i have in this
> > {context}.xml files and what should i have in server.xml :-( a
> > nd where should i put this {context}.xml file?
>
> Where are you defining your contexts now??
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: JDBC Realm for several webapp

Posted by Hassan Schroeder <ha...@gmail.com>.
On 7/2/06, Stanislav Komlenac <st...@os.t-com.hr> wrote:
> Citiram Stanislav Komlenac <st...@os.t-com.hr>:
>
> >>> I want to have 2 web applications on my web server. Idea si to
> >>> makde JDBC Realm unique for each web application.

> problem is that i dont understand what should i have in this
> {context}.xml files and what should i have in server.xml :-( a
> nd where should i put this {context}.xml file?

Where are you defining your contexts now??

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org