Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Architecture question

 
Raj Murthy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are looking to deploy apache-torque based business/persistence layer as a separate component
that can be accessed by multiple clients. Currently we have it inside a war file.

We need to do this since we will have multiple web & non-web clients accessing the business/persistence layer.

One approach is to wrap the torque based business/persistence component as a REST service
and deploy it in a separate tomcat instance or as separate web-app.

We are using Tomcat for app server.

Any other ideas?

Thanks,
Raj
[ February 13, 2008: Message edited by: Rajiv Rangarajan ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Raj",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
Z Sugiarto
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raj,

We need to do this since we will have multiple web & non-web clients accessing the business/persistence layer.

One approach is to wrap the torque based business/persistence component as a REST service and deploy it in a separate tomcat instance or as separate web-app.


How maintainable it has to be? How many web applications/clients will be accessing the persistence component (the torque thing deployed on a separate tomcat)? is it necessary that the separate persistence component be deployed on a separate machine? are they geographically separated? What are the security concerns? How much transaction throughput must the persistence component be able to handle? is all client written in Java? Any technology constraint? ... e t c

without more info, the best I can say is that your current setup will work. Not sure if it will work well for your need or not

Regards,
Zen.
 
Raj Murthy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zen,

Thanks for the reply. Here are the responses for your questions.


How maintainable it has to be?
>>>wanted to answer with a question.. .. depends on what maintainable means. If we do end up deploying the persistence component inside a container (such as web container) it can monitored & configured fairly easily.


How many web applications/clients will be accessing the persistence component (the torque thing deployed on a separate tomcat)?
>>>around 4-5

is it necessary that the separate persistence component be deployed on a separate machine?
>>>not 'necessary', but we will have 5 web apps & the persistence on same machine. we are looking to distribute the components

are they geographically separated?
>>>No

What are the security concerns?
>>>the persistence will be visible only to intended clients. So do not have big security clients.

How much transaction throughput must the persistence component be able to handle?
>>>the current web app has average response time of around 2-4 secs per page on average.
we are looking to keep this response time as close as possible.


is all client written in Java? Any technology constraint?
>>>4-5 clients will be servlet/jsp web applications; one will be C# based windows application.


TIA,
Raj

[ February 13, 2008: Message edited by: Raj Murthy ]
[ February 13, 2008: Message edited by: Raj Murthy ]
 
Raj Murthy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more note... we can ignore the c# client for now and assume that there will be 5 different servlet/jsp applications connecting to the business/persistence component.

Also, I have not used spring-framework, is there an answer to my question in spring-framework?

Does it allow you to bundle POJOs as services and deploy inside a container?

Thanks,
Raj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic