jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Services Of Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Services Of Java Program " Watch "Services Of Java Program " New topic
Author

Services Of Java Program

anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
Hi All,

i have one java program which sends email when i run it but i am looking for something which send email when i shutdown and start my PC.
is it mandatory to create windows services for this ? do we have any easy process to create it ? like eclipse plugin.
i tried Java Service Wrapper but it is not working for me..


Thanks
Anchit
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

but it is not working for me


Where its breaking? or showing any error? OR read this.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
Muhammad Saifuddin wrote:
but it is not working for me


Where its breaking? or showing any error? OR read this.


previously class not found exception was there now it get resolved, but one email is getting sent 5 times.
do you know what could be the reason ?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

You might calling send email function under the loop? OR share the code snippets.
anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
Muhammad Saifuddin wrote:You might calling send email function under the loop? OR share the code snippets.

No it's not that and it's not like that .... if that is the case then could have resolved it before i post here...
anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
My JVM is started 5 times by services, that is why it was running same program 5 time, see the log below :-



Any idea why JVM is running 5 times ?

 
Don't get me started about those stupid light bulbs.
 
subject: Services Of Java Program