Which application server i should use , i need advice.

Hi

Thank you for reading my post.

I have made a web application which use hibernate /plain JDBC/ Rowsets

Base framework use hibernate , i used jsf + jdbc + rowsets.

Now I should think about deployment , i have choice to use any application server (I do not have any EJB... , just some mail are sents (in ratio of 1/second in peak time).

A description of this application is :

Base has about 20 Table, using derby

my web application which run on base has 20 tables using derby.

my application should be able to handle 30 hit/ second

in peak time , which each of those heat included *2 select , 1 insert and 2 update statement*.

Which Application server or servlet container i should use ?

Sun application server , Tomcat or some other containers ?

I will host this application on a linux machine running red hat enterprise

will a single processor Machine be able to run this application ?

Thank you.

[990 byte] By [Legolas.wa] at [2007-10-2 9:58:14]
# 1

> I will host this application on a linux machine

> running red hat enterprise

Use JBoss or Tomcat.Don't use SUN AS.We had serious reliability issues with it on RedHat Linux and we had no other choice but to migrate to JBoss.

http://forum.java.sun.com/thread.jspa?threadID=665921

> will a single processor Machine be able to run this

> application ?

yes

Maris_Orbidansa at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Or you can try Apache Geronimo. It has embedded derby db engine and admin GUI console. JBoss doesnt have that.On the other hand JBoss has a nice integration with Hibernate.
Maris_Orbidansa at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

I've worked on a similar architectured application in the past. I've used both Tomcat and JBoss. The application used Hibernate, CJDBC, Struts, Derby etc. running on a FC3 Linux machine.

From my experience -- if you don't have any EJBs and are simply going to be deploying a WAR, then you should go for Tomcat -- it is a much lighter server than JBoss. JBoss, being the full-blown application server that it is, has several more features (and so several more things to setup), than Tomcat. In my opinion, Tomcat would be a much better choice than JBoss for your situation.

Its much lighter, easier to setup and manage. To optimize connectivity you should see how to setup connection pooling etc in the server you finally decide to use.

To optimize your Linux machine -- remove services you don't use (in init.d). Add some RAM and you should be good to go. Best choice would be to use SCSI drives (much faster) instead of IDE.

HTHs.

kexora at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

I vote for Tomcat too.

But make sure to optimize your application , by using some profilers like Netbeans profiler and doing some optimization over your sql query as some times they bring deep changes to application response time.

other item should be poo size ,maximum heap , caching ,....

which you should take care and change according to your need.

make sure that jvm will run in server mode and tomcat start-up parameter is tuned for such load.

turn-off Logging as much as possible in the work environment.

Kalalia at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
To run Hibernate on SJS AS (GalssFish), take a look at: http://blogs.sun.com/roller/page/dochez#spring_and_hibernate_in_glassfishCurrent build (35) is quite stable and I doubt it is unstable on Linux, unless I'm completely confused....
jfarcanda at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6

what if I do need an ejb container?

I used to work with the sun application server and i am now testing JBoss, mainly under the assumption of better performance and ease of use.

Currently I can't get my derby DB to work with it.

so, I need a high-performance free Application Server (ejb container) that is easy to setup and use. preferably one that has a nice plugin for eclipse.

I'm willing to compromise on clustering if necessary.

well, what do you think?

kaminkaa at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7

I prefer Sun application server for ease of use .

I do not know who provide good free plugin for deploying applications on jboss.

but IIRC , Jboss itself has a jboss IDE which works ok on jboss deployment issue.

if you are decided to go with Eclipse then jboss could be better option ,

but , imho

for developing EJB stuff there is no IDE simpler than Netbeans 5 , specially

that it can deploy on jboss too.

for application server , just try Sun application server 8.2 , it is enough stable.

Kalalia at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8
do you know anything about the apache geronimo? i started checking it out and it seems friendly enough. I just can't find tutorials on ejb development and deployment using this server. all the examples i found are for web application development (servlets).
kaminkaa at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 9

Apache Geronimo version 1 is J2ee 1.4 certified as far as i know , so it can contain any j2ee application. deployment is not something very sophesticad , it has its own deployer tools.

here in this page you can find anything regard to development and deployment issue .

http://geronimo.apache.org/documentation.html

online book :

http://chariotsolutions.com/geronimo/

but I can not understand why you want to go with Geronimo , I would not go with other Application servers until there is an special requirement that is not present is Sun application server.

Sun application server 8.2 is stable enough to go with , unless that there is some cooperate or projet wide level decisions.

hth

Masoud

Kalalia at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 10
thanks for the info.the reason i'm considering geronimo is that after working with netbeans and eclipse, i prefer using eclipse (lightweight ide compared to netbeans).since the sun application server doesn't have a plugin for eclipse, i started looking for something else.
kaminkaa at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 11
I do not think that Netbeans is heavier than eclipse these days.maybe in years ago when netbeans was 3.6 and eclipse was 2.1 eclipse perform faster , but now if we count all pros and cons Netbeans is ahead in J2ee development.hth
Kalalia at 2007-7-17 0:03:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...