You can use SMSlib API to Implement SMS Server. There are two options to sen SMS via Java: GSM Modem and IP SMS Gateway.