Posts

Showing posts with the label Java Runtime

Runtime.exec() pretty exciting stuff

The Challenge - why i can't ignore the small stuff I have been creating batch job processes that will call EJBs. The issue with this is that the Application server process runs under a certain user id. The user id might only be accessible to a certain group that maintains the Application servers like a middle ware group. With this, any file that is written out by the EJB process in the application server will be created using the user id running the process. Security access to the output files by the process will default to the user id of the application server process. So, i want to write a file that has a different user id than the user id of an invoked java process. for example, if a java program was invoked by a user id A1234 i want the file to be written under a different user id B5678. Simple enough ? (Please take note that i am running the java process under a unix environment) My approach to the challenge I don't think there will be any utilities in Java that i can use