Glassfish
Glassfish , a J2EE 5 complient application server is one of the best application server in market. Developed by Sun Microsystems and Glassfish community, it is an open source product which can be freely downloaded from https://glassfish.java.net.
I am a big fan of Sun application servers and have used Sun java application server 8, 8.2 and now 9 (Renamed as glassfish).
Installation : Totally developed in java, it has a great installer with excellent GUI. Command line Installation :
If you are installing glassfish from command line (as usually done on network using telnet), for that just type ./installer -console,
It will ask for jdk , just provide it with complete path of your jdk on your machine. After this, few simple options , like Installation directory [which is usually /opt/SUNWappserver] followed by admin port, secure port and user name, password.
Installation takes merely 2 minutes.
Launching> :
To start glassfish, change your working directory to {glassfish installation directory/bin}. Type in ./asadmin start-domain domainname [domain1 is default] {domain1 is palced at “$appserver/domains/domain1”}
To stop your server, type in ./asadmin stop-domain domainname
Configuring connectionpool>
In most of J2EE application , you will need to configure connection pool. It is extremely easy to do using glasssfish.
Once you are logged in on appserver administrative console, select resource → jdbc → connection pool. Fill in required information, like username , password, connection url. After saving your data, click ping to check your configuration,
If connection parameters are right, it will give confirmation of “Ping Successfull”.
In case you see error, If error says class not found for Driver class, copy your connector jar file to {jdk/jre/lib/ext}.
Ping again.
Configuration of jdbc Resources
From administrative console, got to resource → jdbc → Resources . Enter a valid jndi name, select connection pool from drop down. Thats all.
Deployment :
Deployment of application is again very easy . Use GUI and follow simple steps to deploy and undeploy applications.
To deploy applications from remote machines, select tab [files accessible from server].
Deployement occourse in {appserver/domain/yourdomain}
Security: During deployment of web application, you might come up with Security Exception, or java.lang.reflection.....
This error comes because of security settings [which h.appens in $appserver/domains/yourdomain/conf/server.policy].
You can grant additional services to your codebase [remember your codebase is $appserver/domain/domainname/application/j2ee-modules/applicationname].
Glassfish , a J2EE 5 complient application server is one of the best application server in market. Developed by Sun Microsystems and Glassfish community, it is an open source product which can be freely downloaded from https://glassfish.java.net.
I am a big fan of Sun application servers and have used Sun java application server 8, 8.2 and now 9 (Renamed as glassfish).
Installation : Totally developed in java, it has a great installer with excellent GUI. Command line Installation :
If you are installing glassfish from command line (as usually done on network using telnet), for that just type ./installer -console,
It will ask for jdk , just provide it with complete path of your jdk on your machine. After this, few simple options , like Installation directory [which is usually /opt/SUNWappserver] followed by admin port, secure port and user name, password.
Installation takes merely 2 minutes.
Launching> :
To start glassfish, change your working directory to {glassfish installation directory/bin}. Type in ./asadmin start-domain domainname [domain1 is default] {domain1 is palced at “$appserver/domains/domain1”}
To stop your server, type in ./asadmin stop-domain domainname
Configuring connectionpool>
In most of J2EE application , you will need to configure connection pool. It is extremely easy to do using glasssfish.
Once you are logged in on appserver administrative console, select resource → jdbc → connection pool. Fill in required information, like username , password, connection url. After saving your data, click ping to check your configuration,
If connection parameters are right, it will give confirmation of “Ping Successfull”.
In case you see error, If error says class not found for Driver class, copy your connector jar file to {jdk/jre/lib/ext}.
Ping again.
Configuration of jdbc Resources
From administrative console, got to resource → jdbc → Resources . Enter a valid jndi name, select connection pool from drop down. Thats all.
Deployment :
Deployment of application is again very easy . Use GUI and follow simple steps to deploy and undeploy applications.
To deploy applications from remote machines, select tab [files accessible from server].
Deployement occourse in {appserver/domain/yourdomain}
Security: During deployment of web application, you might come up with Security Exception, or java.lang.reflection.....
This error comes because of security settings [which h.appens in $appserver/domains/yourdomain/conf/server.policy].
You can grant additional services to your codebase [remember your codebase is $appserver/domain/domainname/application/j2ee-modules/applicationname].