Changes for page GlassFish Installation

Last modified by Thomas Mortagne on 2023/10/10

<
From version < 6.1 >
edited by JeroenBaten
on 2010/09/21
To version < 7.1 >
edited by JeroenBaten
on 2010/09/21
>
Change comment: Bringing it up to date: glassfish 3.0.1, deploying from web or commandline

Summary

Details

Page properties
Content
... ... @@ -21,3 +21,13 @@
21 21  * Extract the contents of the file.
22 22  * Copy the jar file to ##{{{GLASSFISH_HOME/glassfish/lib}}}## if you want it to be available to all Glassfish applications, or to the ##{{{WEB-INF/lib}}}## dir of the xwiki deployment dir if you only want it to be locally available (example: ##{{{GLASSFISH_HOME/glassfish/domains/domain1/applications/xwiki-enterprise-web-2.5-milestone-1/WEB-INF/lib}}}##).
23 23  * Start or restart the Glassfish server: ##{{{bin/asadmin start-domain}}}## or ##{{{bin/asadmin restart-domain}}}##
24 +
25 +Now if you want to use the web interface to define a datasource, you can find usefull info [[here>>http://www.albeesonline.com/blog/2008/08/06/creating-and-configuring-a-mysql-datasource-in-glassfish-application-server/]].
26 +
27 +If you want to use the command line interface to define a datasource, you can find usefull info [[here>>http://weblogs.java.net/blog/felipegaucho/archive/2010/03/04/glassfish-v3-resources-administration-cli-tool-asadmin]].
28 +
29 +Quick and dirty is easy:
30 +* Assuming you did the MySQL stuff as explained [[here>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL]] you have a MySQL database called 'xwiki' accessable by a user 'xwiki' with password 'xwiki'.
31 +* ##{{{asadmin create-jdbc-connection-pool --datasourceclassname com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --property "User=xwiki:Password=xwiki:URL=$DB_URL" jdbc/xwikipool}}}##
32 +
33 +

Get Connected