Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Services Of Java Program

 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but it is not working for me


Where its breaking? or showing any error? OR read this.
 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might calling send email function under the loop? OR share the code snippets.
 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic