jar files.  The following would be my revisions.įor instance, discusses the differences between the driver you mention in your article ending in 14.jar and the newer drivers for folks using the newer updates of JDK (Java Developers Kit) and also for Oracle, whether they are using 10g or 11 g.Īlso one of the Glassfish links is broken on the blog you created now. Hi I found your article extremely helpful, and I am so grateful for it, however, as a newby I needed more information on the. Also select the Connection Pool name you just created and successfully pinged from the select box. Enter the name for the JDBC Resource and bear in mind that JNDI JDBC datasource names usually start with “jdbc/” so enter a name like “jdbc/hr” or so. Now click on the JDBC Resources menu item in the menu to the left and then on the New button to create a new JDBC Resource. If you see Ping Succeeded you’ve set up the connection pool correctly. Click on the Connection Pool name you just created and then the Ping button to see if the connection can be established. This will bring you back to the connection Pool overview. The last one is of the form where usually is 1521.Īfter specifying these properties, click Finish. So, specify the username, password and url. See chater 2 of the Glassfish Administration Guide. This property is only needed if both non-XA and XA connections are retrieved from the same connection pool. The fourth, optional, property is xa-driver-does-not-support-non-tx-operations. The three needed ones are User, Password and URL. In this section, three or four properties are needed. Set all the other parameters as you like and scroll down to the Additional Properties section. In the General Settings section, make sure the Datasource Classname is set to either (which is the default) or .client.OracleXADataSource. Please note that many database vendors are specified in the list, but for most of them the database drivers are missing! In case of Oracle, select Oracle (duh) and click the Next button. Select the database vendor from the select box. The first thing to do is specify the Connection Pool Name, Resource Type and Database Vendor. Next, click the New button to enter the Connection Pool wizard. To define an Oracle Connection Pool, click on connection Pools in th menu to the left. In order to create a JDBC Resource, you’ll need a Connection Pool first. The JDBC Resource is exposed to (web) applications through JNDI. The JDBC menu contains two submenus, being JDBC Resources and Connection Pools. Expand the Resources menu item and then the JDBC menu item in the menu to the left. Reload the admin console and login again. Once copied to the lib dir, start Glassfish again. In case of Oracle, the Glassfish Administration Guide asks for the ojdbc14.jar file. Next, copy the database driver jar to /lib. In order to get the Oracle (or your favourite database) loaded in Glassfish, Glassfish needs to be shut down again. This will open the login screen to the Glassfish admin console. or to the correct host if you decided to install Glassfish elsewhere. See the Glassfish Quick Start Guide for more instructions if this next command failsĪfter having started you can check and verify that the installation and startup were done correctly by opening a browser and browsing to Next, start up the default domain on the Glassfish server. See the instructions at the bottom of the downloads page for how to install Glassfish. Go to the Glassfish project page and download it. I am dealing with configuring an Oracle datasource here, but the instructions should work similarly on other databases.įirst, you’ll need Glassfish. One of the issues I had with Glassfish was configuring a datasource so my web application could use it. The newest features in the Java EE 5 platform. But in most cases a fully Jave EE 5 compliant application server is needed. In some cases, loading the Java EE 5 jars may be sufficient. With Java EE 5 being final, application servers need to be upgraded to support features like EJB 3.0.
0 Comments
Leave a Reply. |