Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Anyone done a SMB Servlet?  RSS feed

 
Paul Brabban
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've got an old app that can only look up files over the network that are shared on a Windows share. I'd like to serve dynamic content to this app and it seems like a viable idea at first thought to have a servlet that talks SMB not HTTP.

Has anyone tried that, or is it just a non-starter - if so why?

Thanks all,
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Brabban:
Has anyone tried that, or is it just a non-starter - if so why?



Have fun.
[ August 26, 2008: Message edited by: Akhilesh Trivedi ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In principle, the servlet API is set up in such a way that you might think that it is possible to write servlets that work with other protocols than HTTP - if you look at the API, you see that HttpServlet extends GenericServlet, which suggests that there can be other kinds of servlets that would also extend GenericServlet but work with something else than HTTP.

In practice, this isn't going to work, because the servlet container would need to support the alternative protocol, and servlet containers generally only support HTTP.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's also discussed in the FAQ: http://faq.javaranch.com/java/ServletsFaq#10
 
Paul Brabban
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!