> i have a java program which gets data from the > database and sends a mail to existing users. This program is > a part of the jar file that am placing in SAR-INF/lib folder. > Currently am invoking this program by a shell script whick > invokes the program through its main method. I cannot create > a mailet as it will take only a mail message as argument. > if i use pheonix.sh script, can you tell me where exactly do > i have to add the command to run the java program right now > am running it through the shell script which has the command > "java -jar octopus.jar" > now i have to include the command in phoenix.sh, can you tell > me where to include it.
I'm not sure I understood your needs. Does this program need to be resident while james is running or it should be ran once before james start and nothing else? If you need to start it once then you can add your command as the second line of the phoenix.sh or alternatively you can create your own start script that run your program first and then "phoenix.sh start" as second command. If you need it to be resident and integrated with james data (userrepository, spoolrepository or something simila) then you should create an Avalon Component and add it to the assembly.xml configuration in the apps/james/SAR-INF/conf folder. If you need it to be resident but don't want to have dependency on james then you should create an avalon component and create it's own sar file. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
