-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vijay,

On 5/28/15 8:21 AM, Vijay Kumar wrote:
> I am referring User_Id as Linux User_id where we installed Tomcat.
> 
> My Oracle Database don't know about this user_id.

Have you tried this?

<Context>
   <Resource name="jdbc/db"
        username="${user.name}"
        ...
    />
</Context>

I know that catalina.properties will do system-property expansion, I
think that server.xml will do it, but I'm not sure if context.xml will
do it, too.

Give it a try to see if it works.

- -chris

> On Thu, May 28, 2015 at 3:20 PM, André Warnier <a...@ice-sa.com>
> wrote:
> 
>> Vijay Kumar wrote:
>> 
>>> Hi Mark,
>>> 
>>> Please find below my exact requirement.
>>> 
>>> I have Oracle Database where my objects are installed and I
>>> have also a Linux instance where i installed Tomcat. I am
>>> currently creating connection to the Oracle database from
>>> Tomcat using 'apps' user as this schema is having all
>>> permissions.
>>> 
>>> One of my client want to monitor the connections that are
>>> created from my application. For this i want to pass my Linux
>>> user information (userid) while creating the connection from my
>>> application or in context.xml file.
>>> 
>>> Please suggest the approaches? If SPENGO can you redirect me
>>> any doc/post how to achieve this?
>>> 
>>> Vijay,
>> you are repeating yourself (and still top-posting), but you are
>> not providing the crucial information which would enable someone
>> to really help you. For example, what "Linux user information
>> (userid)" are you talking about ?
>> 
>> Is it the Linux user-id under which Tomcat is running ? That
>> would probably be "tomcat", so that is probably not going to help
>> you fulfill your customer's wishes.
>> 
>> Is it the user-id of the /user/ of your Tomcat application ? In
>> that case, how does Tomcat know this user-id ? Do the users login
>> into your application ? How ? What is the user authentication
>> mechanism being used, now, at the Tomcat level ?
>> 
>> Does the Oracle database also know this user-id ? How ?
>> 
>> What does "One of my client want to monitor the connections"
>> mean, exactly ? what does the customer want to know, and when ?
>> Is this customer the only user/manager of the Oracle database, or
>> are there multiple users/managers of the Oracle database ?
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVZzpqAAoJEBzwKT+lPKRY7NQP/0G6LCGWqKvNrjDFCeYzbYZE
gBiBe/VCgzCbEJAGr8ZS8qImAYobkiz+FcN5EXGXI7+XTZ0aXWG5QnQ6JtRBYScX
BZLKLhxnIaXqGXlXYenwgsQSrDtA2zPm5WqeQbrtkqJ/5jn3U44erZHncTOKGp5E
oBztT2lLCZr6Y2ORKZXISJgsvPSMFJlxMvKRf2mbsk1kui2ReNlhfjSdh4dyaTru
Tz7G5CkvGshaEL+qo3HQRvdhjr6ha3s6SW8VASXEP0Y46xAKjBwvXg0MkqN6fVOw
BP/tUvTiQPSq7chgyLyu+heUAT+FFm3Wro1XEwOLbaiAHqdilccmcSSNnaxKdeLb
JHrcpjVvOQX2pqHYyeOPaAT7uC2z1r/f3kzxwBXSGoIdy3jN23E1ef263PlwCTqr
EdhSritM6Sj3BzOJJqWRkxdkxvwhZFCxElDPO9HgfcPnTEgGX5J9Bj29tIZHyUzB
mZKh7/hI9Q3nezZQtEWreh5urCIYkWWBSf7v6wp4TFx2J6yzmdkgSB87oq8Mh5Aw
CNckVVbQcPiABUiAPnYPDmBna+pZtbZ+CfmLHEioTlxNbrg7lEpdaPK0tiALjQMz
Dy0e68AaiLpdJTLE5YNKDpN+OKdE2NbPTJYKUp/+9fDIdMV/UeGKfUJl6mLbKSaq
3VFn03Usu6pw1N1d1+qV
=Hwdf
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to