Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

pushlet application

Thread view: 
raavi - 04 Jan 2006 06:01 GMT
Hi
    i am now involved in a telnet application.i am using struts frame
work for the application.using some jsp i have to display the contents
retrieved when a telnet connection is established.the program is
working fine for a single command.but if i have to supply multiple
commands then the connection with the action servlet should exist
forever.how is this possible? using some pushlet framework is this
possible? if anyone has any idea pls do tell me.Thanks in advance
Luke Webber - 04 Jan 2006 06:16 GMT
> Hi
>      i am now involved in a telnet application.i am using struts frame
[quoted text clipped - 4 lines]
> forever.how is this possible? using some pushlet framework is this
> possible? if anyone has any idea pls do tell me.Thanks in advance

The way I do this is by keeping a pool of telnet connections alive and
cycling through them in a servlet, rather than having a one-to-one
correspondence between HTTP sessions and telnet sessions.

Luke
raavi - 04 Jan 2006 06:31 GMT
> > Hi
> >      i am now involved in a telnet application.i am using struts frame
[quoted text clipped - 10 lines]
>
> Luke
Hi
  as u said , how is this cycling of telnet connections in a servlet
possible? pls tell me in detail.Thanks in advance
raavi - 04 Jan 2006 10:21 GMT
Hi
  if anyone knows how to set the session time for telnet connections
pls do tell me
Andrew Thompson - 04 Jan 2006 10:37 GMT
> Hi
>    if anyone knows how to set the session time for telnet connections
> pls do tell me

Please ..
a) Do get used to 'usenet time', which means waiting as much
  48 hours for a reply before 'prompting' (as opposed to 4 hours)
b) Make full use of the glorious bandwidth offered to usenet users
  by fully spelling such words as 'please'.

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

Luke Webber - 05 Jan 2006 05:29 GMT
>>>Hi
>>>     i am now involved in a telnet application.i am using struts frame
[quoted text clipped - 12 lines]
>    as u said , how is this cycling of telnet connections in a servlet
> possible? pls tell me in detail.Thanks in advance

It's far too complex to go into full detail in a Usenet post, but
basically you need a pool class that will take care of locking and
releasing the telnet connections in a thread-safe manner, and queueing
requests for a given time limit if they're all occupied. You also need
to ensure that any telnet connections which aren't responding get
disconnected and reconnected.

Luke


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.