Results 1 to 2 of 2
- 06-11-2008, 01:07 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
How to send SMS and E-Mail on Jboss shutdown.
Hi,
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.
Regards,
Thufail Ahmed
- 12-29-2008, 08:51 AM #2
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
One simple solution...
Hi!
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 poivy.com 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
-
JSP send mail script not working.
By profuse in forum Java AppletsReplies: 1Last Post: 05-27-2008, 06:37 AM -
Javax.mail.MethodNotSupported Exception in java mail api
By namarc in forum Advanced JavaReplies: 2Last Post: 05-05-2008, 06:01 AM -
A Client to Send SMTP Mail
By Java Tip in forum java.netReplies: 0Last Post: 04-07-2008, 08:06 PM -
Send a pic through mail, in java
By lenny in forum Advanced JavaReplies: 1Last Post: 07-25-2007, 02:49 PM -
Sending a mail with the local mail program
By thedude in forum Advanced JavaReplies: 2Last Post: 07-23-2007, 12:19 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks