Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shared library is getting partially invoked

 
h bajaj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a testing requirement to mock time for my java application running on tomcat 5.5, jdk 6 on CentOS 4.6 kernel 2.6.9, my hardware comprises of both x86 and x86-64.
I am trying to use linux preload library (libfaketime) from http://www.code-wizards.com/projects/libfaketime/index.html.
On x86, the library is invoked and i am able to set the date based on preload library input, but the offsets are not invoked further by the application, it requires a restart to get the date change to be effective. Kindly advise how to overcome this issue. whereas, on x86-64 the library fails to even get invoked for java 6, whereas for rest of the system commands such as date it is working, kindly let me know what compile parameters need to be added for x86-64.

TIA.

Regards.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving it to Linux forum ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic