Results 1 to 8 of 8
Thread: Question about architecture
- 07-24-2010, 12:22 AM #1Member
- Join Date
- Jul 2010
- Rep Power
Question about architecture
I have a question.
I have been working in a Content Management with Java at my job.
The Java architect proposed the following architecture as solution.
The web server is Tomcat V6 and MySQL is the database
I have a dude about this architecture. In order to don't use persistence objects in the WEB layer(because it cause Permgen memory problems), the Manager Classes will have methods to transform persistence objects to DTO objects(these objects will be used in the web layer), with the use of getters and setters. I think that these changes wouldn't solve the memory problems.
What is your opinion about this architecture? Do you have any idea to improve it?
Thanks for all.
- 07-25-2010, 03:21 AM #2
you can control the amount of perm gen memory tomcat Java virtual machine uses, in the CATALINA_OPTS environment variable, specify the "-XX:MaxPermSize" variable, for example,
Cross-posted in many fora.
To the original poster, welcome to the forum, and I hope your question gets answered, but I do request that if you cross-post a question you provide links to the other cross-posts. Nobody likes duplicating work that's already been done.
The problem is that you're asking unpaid volunteers to help you here, not paid consultants, and most of us mind if we take time away from work/lives/play to try to help someone only to find that we've provided a solution that was already provided in a cross-post hours ago. The proper thing to do is that if you feel you must cross-post, at least provide links in each cross-post to the other, so that folks don't waste time answering something already answered and so that folks can review all discussions that have already occurred.
Thanks for your cooperation.
- 07-25-2010, 05:48 AM #4
@OP, cross-posting always discourage people to answer in your thread, specially me.
Anyway my suggestion is different than what you thought.
For the business logic layer I propose Spring, EJB. And if you want to use Hibernate them handle it via JPA. Spring is head of that in my experience.
For the application server, use JBOSS which is more advanced in memory management and concurrency handling.
- 07-26-2010, 10:11 AM #5Moderator
- Join Date
- Apr 2009
- Rep Power
I suspect there's more going on in your architecture than this brief summary suggests, if this is truly a fix.
- 07-28-2010, 05:09 AM #6
- 07-28-2010, 01:07 PM #8
- By javaforumsuser in forum Web FrameworksReplies: 1Last Post: 03-02-2009, 10:36 AM
- By ronakppatel in forum Web FrameworksReplies: 1Last Post: 10-01-2008, 12:13 PM
- By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-11-2008, 02:39 PM
- By JavaBean in forum Java SoftwareReplies: 0Last Post: 11-14-2007, 07:27 PM
- By vikki_pu in forum Other IDEsReplies: 5Last Post: 10-30-2007, 02:08 PM