- Download glassfish from http://java.net/download/javaee5/v2ur2/promoted/WINNT/glassfish-installer-v2ur2-b04-windows.jar
- Put jar on C drive
- Run java -Xmx256m -jar glassfish-installer-v2ur2-b04-windows.jar from command line
- Run C:\glassfish>lib\ant\bin\ant -f setup.xml from command line
- Set JDK in asenv.bat if needed by your project. Default is Java 5
- Add jar file for database driver you are using to lib folder of server
- add your project jar in the outodeploy directory of your default domain
- Go to sever console on http://localhost:4848/login.jsf
- Create connection pool
- add com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource as DataSource class name.
- Create JDBC resource
- Start server using command C:\glassfish\bin>asadmin.bat start-domain domain1
- Use stop-domain command for stopping server
- Run http://localhost:8080/Your_Application in the browser
- See the server log file for any errors in the application deployment
Tuesday, June 9, 2009
Glassfish Configration
Subscribe to:
Post Comments (Atom)
That is really a helpul information to the ppl who's new to server installation.
ReplyDeleteThanks Dude.