 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jason Purcell Guest
|
Posted: Wed Jul 30, 2003 9:53 am Post subject: Sockets |
|
|
Hi...
I have a Delphi application that sends an SMS via
Delphi's TClientSocket component.
Does Java have an "equivalent" component to send
an SMS?
If not, how else can I send an SMS in Java? I actually
want to use this functionality in a JSP.
I have access to 2 SMS gateways, their IP addresses, and the
port numbers.
Jason.
|
|
| Back to top |
|
 |
Owen Green Guest
|
Posted: Wed Jul 30, 2003 10:22 am Post subject: Re: Sockets |
|
|
Jason Purcell wrote:
| Quote: |
Hi...
I have a Delphi application that sends an SMS via
Delphi's TClientSocket component.
Does Java have an "equivalent" component to send
an SMS?
|
I don't know much (ok, anything) about the protocol used for SMS, but
assuming that it runs on top of TCP/IP, java.net.Socket is what you
want.
| Quote: | If not, how else can I send an SMS in Java? I actually
want to use this functionality in a JSP.
|
JSPs are used by Servlet containers to serve up dynamic (typically) web
content. As such they're not, as such, the ideal medium for
implementing protocols.
However, what you could do is either
a)
encapsulate the the functionality of the SMS protocol in a Java class
(or classes) that conform to JavaBean conventions (which is quite easy)
and then invoke that class from a JSP.
b)Have some kind of SMS daemon running in (say) a J2EE container, which
your JSP can forward SMS requests to.
|
|
| Back to top |
|
 |
Sultanbek Tezadov Guest
|
Posted: Thu Jul 31, 2003 7:13 am Post subject: Re: Sockets |
|
|
See Java API for sending/receiving SMS at SourceForge:
http://sourceforge.net/projects/jsmsengine/
--Sultan
On 30 Jul 2003 02:53:45 -0700, Jason Purcell <purcelj (AT) telkom (DOT) co.za> wrote:
| Quote: |
Hi...
I have a Delphi application that sends an SMS via Delphi's TClientSocket
component.
Does Java have an "equivalent" component to send an SMS?
If not, how else can I send an SMS in Java? I actually
want to use this functionality in a JSP.
I have access to 2 SMS gateways, their IP addresses, and the
port numbers.
Jason.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|