Results 1 to 3 of 3

Thread: Handling non-http requests

  1. #1
    Join Date
    Jan 2006
    Posts
    101

    Default 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. #2
    Join Date
    May 2008
    Location
    Haddonfield, NJ 08033
    Posts
    46

    Default

    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    101

    Default

    Quote 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •