Article View: borland.public.jbuilder.java.api
Article #520Re: Sockets
From: Owen Green
Date: Wed, 30 Jul 2003 10:22
Date: Wed, 30 Jul 2003 10:22
31 lines
1834 bytes
1834 bytes
Jason Purcell wrote: > > 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. > 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.
Technical Details
Message-ID:
<3f279c6b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!wn14feed!wn13feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f2795a9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8b5babdb5a88f9fa X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-07-30 03:28:02 PST From: "Owen Green" <o.t.green@ntlworld.com> Subject: Re: Sockets Newsgroups: borland.public.jbuilder.java.api References: <3f2795a9$1@newsgroups.borland.com> User-Agent: XanaNews/1.15.3.2 NNTP-Posting-Host: 62.253.133.169 Message-ID: <3f279c6b@newsgroups.borland.com> Date: 30 Jul 2003 03:22:35 -0700 X-Trace: newsgroups.borland.com 1059560555 62.253.133.169 (30 Jul 2003 03:22:35 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!wn14feed!wn13feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail