PDA

View Full Version : Obtaining config directory within a Java Service


NickS
03-17-2006, 12:23
Description:
I am in need to obtain the config directory of my package. I know of the ServerAPI.getPackageConfigDir method but this requires me to know my package name making my Java Service dependent on my package name.

Question:
Is there an API call to obtain the package name in which my Java Service resides, so I can use ServerAPI.getPackageConfigDir without hard coding the package name in code.

taurean
03-17-2006, 13:10
You may use the Service.getPackageName() to get the name of the package.

Rohit

NickS
03-17-2006, 13:14
That's what I needed. Thanks for the help...