This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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 ?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Services Of Java Program
 
Similar Threads
redirect the generated XML file to the browser using Java servelet
Web Services client using WSDL file
Web services status
javax/mail/Message error
Skelton not generated using idl2java !