Link to home
Start Free TrialLog in
Avatar of GurcanK
GurcanK

asked on

How to Create Audit Logs for a Java Program in Terminal Services Environment

Dear experts,

We have a Java program running in Windows 2008 x64 Terminal Server. The users connect to the program using Remote Desktop, run queries and generates reports. Recently, our customer required us to write audit logs depicting which user connects when and with which IP as well as  computer name. Caring that the program is run thru Terminal Services, how can we achieve this?

BR,
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of GurcanK
GurcanK

ASKER

Any code example welcomes ...

BR
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GurcanK

ASKER

Thanks,

One more question about the issue: Is it possible to write terminal services aware program in Java using Windows APIs? If so, how can I do this? For example whether I am able to use APIs to collect connected sessions information.

BR
I'm not aware of any API, though you could Google it. If all else fails, you could call the Windows API using JNA with Java
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)