• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Re-tasking a java client application as middleware?

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry; this may be a stupid question, but:

I have been given a java application spread across a number of jars to look at. It is essentially a client front-end that talks to a database on a back end server. Is it possible without entirely re-writing the application to write a JSP front end that runs the business logic part of the application as middleware on Tomcat? It's all written as java classes with no servlets or beans etc. that I am aware of at present. I'm not so worried about actually producing the jsp front end at the minute as trying to figure out whether the application can be re-tasked as middleware. Does it need to be re-written as servlets or something?

I appreciate I'll have to do some proper research, but I wondered if anyone could tell me whether it is basically feasible or not. If it is, what subject areas do I need to tackle?

Thanks for any guidance you may be able to offer.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing the application, it's not possible for anyone here to say how much reworking your classes would need in order to run them in a webapp.

In theory it shouldn't be too difficult. If you were to write it as an MVC webapp, your POJOs could serve as the model if they fit the Javabean conventions. If not you could write beans that wrap them.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!