Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing application and HttpSession

 
Jeff Wisard
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am writing a Swing application (not an applet) that needs to communicate remotely with a Servlet. I know how to connect to a servlet and send data back and forth using URL and URLConnection objects (and HttpURLConnection). What I don't understand, however, is how to manage the HttpSession from the application. How can I ensure that my application is provided access to a session within the web container? In other words, how does session tracking work in this scenario?
Thanks,
 
Byron Estes
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this
link
An EJB stateful session bean could also be used if you don't have firewall issues. Even if you do have a firewall, you can probably tunnel the RMI/IIOP through HTTP.
[ March 14, 2003: Message edited by: Byron Estes ]
[ March 14, 2003: Message edited by: Byron Estes ]
[ March 14, 2003: Message edited by: Byron Estes ]
 
Jeff Wisard
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Byron. That's what I needed.
 
Byron Estes
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent.
I'm playing around with the example provided in the post and felt what they showed was not as clear as it could be... Once I complete my experimentation, I'll post what I found here. It may not be until later in the week, however, I've got a couple of things to attend to at the beginning of the week that can't wait.
Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic