Announcement Announcement Module
Collapse
No announcement yet.
Handling non-http requests Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handling non-http requests

    Hi,

    I have developed a “web” application which can be deployed on JBoss but is not aimed to handle http based requests (but ftp requests). This simple application is made from a group of objects which extend the GenericServlet object (not the HttpServlet).

    Now I was wondering if I can re-write this application using spring framework mostly to take advantage of spring aop capabilities and also since other (real) web application deployed on the same application server already make use of spring framework throughout.

    From my initial research it seems that this is impossible since spring seems to have developed only to handle http requests when used together with an application server. I could be wrong; mostly because my experience with spring is fairly limited! However I am basing my assumptions on some of the tutorials available on the internet.

    Thanks and Regards,
    Sim085

  • #2
    Since you already have a servlet subclass that does what you want I'm guessing that your actual question is "Can I use AOP, DI etc. with it via Spring?" and the answer is yes. You don't need Spring MVC for any of Spring's core features.

    Comment


    • #3
      Originally posted by genedelisa View Post
      Since you already have a servlet subclass that does what you want I'm guessing that your actual question is "Can I use AOP, DI etc. with it via Spring?" and the answer is yes. You don't need Spring MVC for any of Spring's core features.
      Thanks for your reply You rephrased my question very well How is it possible? I am mostly interested in using AOP capabilities to what I already have. Is there a tutorial.

      I did search on the internet on how this can be made, but couldn't find much! All the examples I found of MVC AOP where linked with Spring MVC as well!

      Thanks again,
      Sim085

      Comment

      Working...
      X