How to install and setup Glassfish
Tech-Today

How to install and setup Glassfish


1.) Download glassfish installer from http://download.java.net/glassfish/3.1.1/release/glassfish-3.1.1.zip

2.) Unzip in {your_choice}/glassfish-3.1.1

3.) Create 'startup' script file as follows:

4.) Create mydomain domain in glashfish: {your_choice}/glassfish-3.1.1/bin/asadmin create-domain mydomain

5) To modify the port open {your_choice}/glassfish-3.1.1/glassfish/domains/mydomain/config/domain.xml and look for
admin-listener port=4848
http-listener-1 port=8080

6.) Start mydomain domain: {your_choice}/glassfish-3.1.1/bin/asadmin start-domain mydomain

8.) To test if the new domain works, navigate to the glassfish back url: http://localhost:4848/ and frontend url: http://localhost:8080




- How To Enable Remote Jvm Monitoring Using Jre's Built In Jconsole
This guide will help you setup a remote jvm monitoring tool using jconsole. The setup: 1.) Ubuntu 12.04 2.) Glassfish 3.1.2.2 3.) jdk1.6.0_32 Steps: 1.) In your glassfish's default domain1 domain.xml file, /glassfish_home/glassfish/domains/domain1/config/domain.xml,...

- Persist Jms Message In A Database In Glassfish
This tutorial will guide you on how to configure Java Messaging Service in Glassfish to store JMS message in a postgresql database. What you need (configured and running): 1.) Glassfish 3.1.2.2 2.) Postgresql 9.1 3.) JMS Broker (integrated with Glassfish)...

- How To Port Forward Apache's 80 To Glassfish's 8080 Using Proxy Configuration
Recently, I'm developing and testing an application deployed on Glassfish that runs on port 8080. Then I do need the app to run on port 80, since I don't want to change the default port of Glassifh from 8080 to 80, I've just installed apache...

- Deploy A J2ee Ear In Glassfish Using Maven
The ff code will explain how a j2ee ear project can be deploy by invoking a maven goal. The plugin: http://maven-glassfish-plugin.java.net/deploy-mojo.html To deploy to a glassfish server using maven, invoke (inside your ear project): mvn glassfish:deploy...

- How To Enable Slf4j Logging In Glassfish 3.1.1
This blog entry will try to setup slf4j as the main logger for glassfish 3.1.1 What you need: 1.) Glassfish 3.1.1 (zipped) 2.) Download the ff jars:   a.) slf4j-api.jar   b.) jul-to-slf4j.jar   c.) logback-classic.jar...



Tech-Today








.