Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Rep Power

    Default How to send SMS and E-Mail on Jboss shutdown.


    I need to know how to send a sms and email when my application is stopped or terminated unexpectedly. My application runs on JBoss.

    If the JBoss stops then i have to receive the sms and email. mentioning that the application has been stopped unexpectedly.

    Please provide solution or an idea so that i can perform this functionality in my appliaction.

    Thufail Ahmed

  2. #2
    laQu is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default One simple solution...


    You can use a voip-provider to send a SMS message trough HTTP. There are some providers who provide this kind of service. I use but I'm sure it's not the only option.

    Then you can use cron to run a script to check the state of the java server every now and then, eg. once in every 5 minutes.

    If you are familiar with php, it has some great functions to check the state of java. Also, php has curl-functions integrated. You can use them to send the HTTP-request to the voip-provider to send the SMS, and of course the mail-function to send e-mail.

    Hope this helps!
    Lauri Laine

Similar Threads

  1. JSP send mail script not working.
    By profuse in forum Java Applets
    Replies: 1
    Last Post: 05-27-2008, 06:37 AM
  2. Replies: 2
    Last Post: 05-05-2008, 06:01 AM
  3. A Client to Send SMTP Mail
    By Java Tip in forum
    Replies: 0
    Last Post: 04-07-2008, 08:06 PM
  4. Send a pic through mail, in java
    By lenny in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 02:49 PM
  5. Sending a mail with the local mail program
    By thedude in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts