Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский Português 中文
Showing entries 1 to 30 of 32 Next 2 Older Entries

Displaying posts with tag: v3 (reset)

TOTD #122: Creating a JPA Persistence Unit using NetBeans 6.8
Employee +0 Vote Up -0Vote Down

Taking TOTD #121 forward, this blog explains how to create a JPA Persistence Unit for a MySQL sample database and package it as a library. This JAR file can then be easily included in other web applications.

Lets get started!

  • Configure GlassFish for using the MySQL sample database (sakila) as described in TOTD #121.
  • Add the GlassFish instance in NetBeans IDE using "Services" panel.
  • Create JPA entities using NetBeans IDE.
  • Create a Java class library:



  •   [Read more...]
    TOTD #122: Creating a JPA Persistence Unit using NetBeans 6.8
    Employee +0 Vote Up -0Vote Down

    Taking TOTD #121 forward, this blog explains how to create a JPA Persistence Unit for a MySQL sample database and package it as a library. This JAR file can then be easily included in other web applications.

    Lets get started!

  • Configure GlassFish for using the MySQL sample database (sakila) as described in TOTD #121.
  • Add the GlassFish instance in NetBeans IDE using "Services" panel.
  • Create JPA entities using NetBeans IDE.
  • Create a Java class library:



  •   [Read more...]
    TOTD #122: Creating a JPA Persistence Unit using NetBeans 6.8
    Employee +0 Vote Up -0Vote Down

    Taking TOTD #121 forward, this blog explains how to create a JPA Persistence Unit for a MySQL sample database and package it as a library. This JAR file can then be easily included in other web applications.

    Lets get started!

  • Configure GlassFish for using the MySQL sample database (sakila) as described in TOTD #121.
  • Add the GlassFish instance in NetBeans IDE using "Services" panel.
  • Create JPA entities using NetBeans IDE.
  • Create a Java class library:



  •   [Read more...]
    TOTD #121: JDBC resource for MySQL and Oracle sample database in GlassFish v3
    Employee +0 Vote Up -0Vote Down

    This blog clearly explains how to configure the MySQL sample database (sakila) with GlassFish. Even though the instructions use a specific database but should work for other databases (such as Oracle, JavaDB, PostgreSQL, and others) as well. The second half of the blog provide specific syntax for the Oracle sample database.

  • Download sakila sample database and unzip the archive.
  • Install the database as described here - basically load and run "sakila-schema.sql" and "sakila-data.sql" extracted from the archive.
  • Create a new MySQL user account using MySQL CLI Admin and assign the privileges
  •   [Read more...]
    TOTD #121: JDBC resource for MySQL and Oracle sample database in GlassFish v3
    Employee +0 Vote Up -0Vote Down

    This blog clearly explains how to configure the MySQL sample database (sakila) with GlassFish. Even though the instructions use a specific database but should work for other databases (such as Oracle, JavaDB, PostgreSQL, and others) as well. The second half of the blog provide specific syntax for the Oracle sample database.

  • Download sakila sample database and unzip the archive.
  • Install the database as described here - basically load and run "sakila-schema.sql" and "sakila-data.sql" extracted from the archive.
  • Create a new MySQL user account using MySQL CLI Admin and assign the privileges
  •   [Read more...]
    TOTD #121: JDBC resource for MySQL and Oracle sample database in GlassFish v3
    Employee +0 Vote Up -0Vote Down

    This blog clearly explains how to configure the MySQL sample database (sakila) with GlassFish. Even though the instructions use a specific database but should work for other databases (such as Oracle, JavaDB, PostgreSQL, and others) as well. The second half of the blog provide specific syntax for the Oracle sample database.

  • Download sakila sample database and unzip the archive.
  • Install the database as described here - basically load and run "sakila-schema.sql" and "sakila-data.sql" extracted from the archive.
  • Create a new MySQL user account using MySQL CLI Admin and assign the privileges
  •   [Read more...]
    Waiting for Godot, Migrating to JavaEE 6, and Other Highlights from Nov 21th, 2009
    Employee_Team +1 Vote Up -0Vote Down

    Today is Nov 21th, 2009.

    News shorts of interest to our communities, including:
    New date for EU review of Oracle/Sun acquisition, getting closer to v3 fcs, new OpenESB and OpenDS releases, Devoxx whiteboards, new customers and japanese event, and more.

    Waiting for Godot
    I read Waiting for Godot for HS, but I didn't expect to live it...



      [Read more...]
    TOTD #109: How to convert a JSF managed bean to JSR 299 bean (Web Beans) ?
    Employee +0 Vote Up -0Vote Down

    This entry is a follow up to TOTD #95 and shows how to use the recent integrations of JSR 299 in GlassFish v3 to convert a JSF managed bean to a JSR 299 bean (aka Web Beans). The TOTD #95 describes a simple Java EE 6 web application that uses Java Server Faces 2.0 components for displaying the results of a database query conducted by EJB 3.1 and JPA 2.0 classes.

    The EJB class, which also acts as the

      [Read more...]
    TOTD #109: How to convert a JSF managed bean to JSR 299 bean (Web Beans) ?
    Employee +0 Vote Up -0Vote Down

    This entry is a follow up to TOTD #95 and shows how to use the recent integrations of JSR 299 in GlassFish v3 to convert a JSF managed bean to a JSR 299 bean (aka Web Beans). The TOTD #95 describes a simple Java EE 6 web application that uses Java Server Faces 2.0 components for displaying the results of a database query conducted by EJB 3.1 and JPA 2.0 classes.

    The EJB class, which also acts as

      [Read more...]
    TOTD #109: How to convert a JSF managed bean to JSR 299 bean (Web Beans) ?
    Employee +0 Vote Up -0Vote Down

    This entry is a follow up to TOTD #95 and shows how to use the recent integrations of JSR 299 in GlassFish v3 to convert a JSF managed bean to a JSR 299 bean (aka Web Beans). The TOTD #95 describes a simple Java EE 6 web application that uses Java Server Faces 2.0 components for displaying the results of a database query conducted by EJB 3.1 and JPA 2.0 classes.

    The EJB class, which also acts as

      [Read more...]
    TOTD #95: EJB 3.1 + Java Server Faces 2.0 + JPA 2.0 web application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. TOTD #94 built upon it by using Java Server Faces 2 instead of Servlet 3.0 for displaying the results. However we are still using a POJO for all the database interactions. This works fine if we are only reading values from the database but that's not how a typical web application behaves. The web application would typically perform all CRUD operations. More typically they like to perform one or more CRUD operations within the context of a
      [Read more...]
    TOTD #95: EJB 3.1 + Java Server Faces 2.0 + JPA 2.0 web application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. TOTD #94 built upon it by using Java Server Faces 2 instead of Servlet 3.0 for displaying the results. However we are still using a POJO for all the database interactions. This works fine if we are only reading values from the database but that's not how a typical web application behaves. The web application would typically perform all CRUD operations. More typically they like to perform one or more CRUD operations within the context of
      [Read more...]
    TOTD #95: EJB 3.1 + Java Server Faces 2.0 + JPA 2.0 web application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. TOTD #94 built upon it by using Java Server Faces 2 instead of Servlet 3.0 for displaying the results. However we are still using a POJO for all the database interactions. This works fine if we are only reading values from the database but that's not how a typical web application behaves. The web application would typically perform all CRUD operations. More typically they like to perform one or more CRUD operations within the context of
      [Read more...]
    TOTD #94: A simple Java Server Faces 2.0 + JPA 2.0 application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. JPA 2.0 + Eclipselink was used for the database connectivity and Servlet 3.0 was used for displaying the results to the user. The sample demonstrated how the two technologies can be mixed to create a simple web application. But Servlets are meant for server-side processing rather than displaying the results to end user. JavaServer Faces 2 (another new specification in Java EE 6) is designed to fulfill that purpose.

    This Tip Of The Day (TOTD)


      [Read more...]
    TOTD #94: A simple Java Server Faces 2.0 + JPA 2.0 application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. JPA 2.0 + Eclipselink was used for the database connectivity and Servlet 3.0 was used for displaying the results to the user. The sample demonstrated how the two technologies can be mixed to create a simple web application. But Servlets are meant for server-side processing rather than displaying the results to end user. JavaServer Faces 2 (another new specification in Java EE 6) is designed to fulfill that purpose.

    This Tip Of The Day


      [Read more...]
    TOTD #94: A simple Java Server Faces 2.0 + JPA 2.0 application - Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. JPA 2.0 + Eclipselink was used for the database connectivity and Servlet 3.0 was used for displaying the results to the user. The sample demonstrated how the two technologies can be mixed to create a simple web application. But Servlets are meant for server-side processing rather than displaying the results to end user. JavaServer Faces 2 (another new specification in Java EE 6) is designed to fulfill that purpose.

    This Tip Of The Day


      [Read more...]
    TOTD #93: Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3 - A simple Servlet 3.0 + JPA 2.0 app
    Employee +0 Vote Up -2Vote Down

    NetBeans 6.8 M1 introduces support for creating Java EE 6 applications ... cool!

    This Tip Of The Day (TOTD) shows how to create a simple web application using JPA 2.0 and Servlet 3.0 and deploy on GlassFish v3 latest promoted build (58 as of this writing). If you can work with the one week older build then NetBeans 6.8 M1 comes pre-bundled with 57. The example below should work fine on that as well.
  • Create the database, table, and populate some data into it as shown below:

    ~/tools/glassfish/v3/58/glassfishv3/bin >sudo mysql --user root
    Password:
    Welcome to the MySQL







  •   [Read more...]
    TOTD #93: Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3 - A simple Servlet 3.0 + JPA 2.0 app
    Employee +0 Vote Up -0Vote Down

    NetBeans 6.8 M1 introduces support for creating Java EE 6 applications ... cool!

    This Tip Of The Day (TOTD) shows how to create a simple web application using JPA 2.0 and Servlet 3.0 and deploy on GlassFish v3 latest promoted build (58 as of this writing). If you can work with the one week older build then NetBeans 6.8 M1 comes pre-bundled with 57. The example below should work fine on that as well.
  • Create the database, table, and populate some data into it as shown below:

    ~/tools/glassfish/v3/58/glassfishv3/bin >sudo mysql --user root
    Password:
    Welcome to the MySQL







  •   [Read more...]
    TOTD #93: Getting Started with Java EE 6 using NetBeans 6.8 M1 & GlassFish v3 - A simple Servlet 3.0 + JPA 2.0 app
    Employee +0 Vote Up -0Vote Down

    NetBeans 6.8 M1 introduces support for creating Java EE 6 applications ... cool!

    This Tip Of The Day (TOTD) shows how to create a simple web application using JPA 2.0 and Servlet 3.0 and deploy on GlassFish v3 latest promoted build (58 as of this writing). If you can work with the one week older build then NetBeans 6.8 M1 comes pre-bundled with 57. The example below should work fine on that as well.
  • Create the database, table, and populate some data into it as shown below:

    ~/tools/glassfish/v3/58/glassfishv3/bin >sudo mysql --user root
    Password:
    Welcome to the MySQL







  •   [Read more...]
    Dtrace Support in GlassFish v3
    Employee_Team +0 Vote Up -0Vote Down

    Tucked at the end of TS-4923, Mahesh had a few slides on DTrace support on GlassFish v3. Not yet in the Preview release we released this week but "soon". The support is via Btrace; Mahesh has promised a writeup on the details and I'll try to get a screencast, maybe a Webinar.

    With this we will have DTrace support on all the key containers: MySQL (http://mysql.com), WebStack and GlassFish Server. Way to go!

    More GlassFish Books - MySQL, GlassFish and Java EE 6
    Employee_Team +0 Vote Up -0Vote Down

    I recently noticed several new books based on GlassFish Server, like Yuli's book on Java EE and DBs, Using MySQL and GlassFish and Antonio's book on Java EE 6 with GF v3. Looking a bit more I also found that David also has a new book on NetBeans 6 and Java EE 5 (w/ GF) and Adam has one on the

      [Read more...]
    EclipseLink Pagination with MySQL and GlassFish... and See You at MySQL UC!
    Employee_Team +0 Vote Up -0Vote Down

    The MySQL Users Conference is April 20-23rd in Santa Clara, CA and we are all getting ready for it. Dups has one of the longest preps - he is traveling (by train and bus) from Montreal in his North American Tour visiting Universities around the way.

    Arun only needs to drive across town to present about GlassFish and MySQL, and he has been building up the demo material for his session - see his note on how to use EclipseLink on

      [Read more...]
    TOTD #78: GlassFish, EclipseLink, and MySQL efficient pagination using LIMIT
    Employee +0 Vote Up -0Vote Down
    EclipseLink JPA replaces TopLink Essentials as the JPA implementation in GlassFish v3. One of the benefits of using EclipseLink is that it provides efficient pagination support for the MySQL database by generating native SQL statements such as "SELECT ... FROM <table> LIMIT <offset>, <rowcount>".

    The MySQL LIMIT clause definition says:

    The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must both be non-negative integer constants



      [Read more...]
    TOTD #78: GlassFish, EclipseLink, and MySQL efficient pagination using LIMIT
    Employee +0 Vote Up -0Vote Down
    EclipseLink JPA replaces TopLink Essentials as the JPA implementation in GlassFish v3. One of the benefits of using EclipseLink is that it provides efficient pagination support for the MySQL database by generating native SQL statements such as "SELECT ... FROM <table> LIMIT <offset>, <rowcount>".

    The MySQL LIMIT clause definition says:

    The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must both be non-negative integer constants



      [Read more...]
    TOTD #78: GlassFish, EclipseLink, and MySQL efficient pagination using LIMIT
    Employee +0 Vote Up -0Vote Down
    EclipseLink JPA replaces TopLink Essentials as the JPA implementation in GlassFish v3. One of the benefits of using EclipseLink is that it provides efficient pagination support for the MySQL database by generating native SQL statements such as "SELECT ... FROM <table> LIMIT <offset>, <rowcount>".

    The MySQL LIMIT clause definition says:

    The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must both be non-negative integer constants



      [Read more...]
    WebSynergy Milestone 3 Release
    Employee_Team +0 Vote Up -0Vote Down

    Project WebSynergy continues its march to its first commercial release early next year. Last Friday, the team released its Milestone 3 [download].

    Major changes or additions since the last milestone include: GlassFish V2 & V3 bundles, much improved documentation, better samples, WSRP-Database integration, jBPM Workflow support, an OpenOffice plugin, Eclipse support, and

      [Read more...]
    WebSynergy Community Build 5 Available!
    Employee_Team +0 Vote Up -0Vote Down

    Hot on the heels of SB2, WebSynergy continues its cadence of builds with the latest, Project WebSynergy Community Build 5 [download].

    This build incorporates additional samples, a bridge between JSR 286 events and the built-in services (e.g. the activities service), WSRP improvements, jBPM workflow integration into SAW, and a first cut of SWA. On the development

      [Read more...]
    TOTD #44: JDBC Connection Pooling for Rails on GlassFish v3
    Employee +0 Vote Up -0Vote Down

    TOTD #9 explained how to configure JDBC connection pooling for Rails application deployed on GlassFish v2. There are several benefits of using using the JDBC connection pools:
    • No need to create a new database connection for each Rails instance.
    • No need to specify your password in database.yml or create a hack to hide it.
    • No garbage collection of connection after each use.
    And because of the above mentioned (and other reasons) an improved application performance, scalability and efficiency.
    The only way to deploy a Rails application on GlassFish v2 is to create a WAR file using Warbler. That's a


      [Read more...]
    Project WebSynergy SB2 is out! SB3 Cooking..
    Employee_Team +0 Vote Up -0Vote Down

    Project WebSynergy Stable Build 2 [download] is now available! This build represents a significant milestone for the team and establishes a lot of the groundwork for the future features. In addition, summer vacations and name searches have delayed us somewhat, but we are very close to getting the external community site established (see my detailed blog post for details).

    Future features include exposing more Presence features, authorization and identity-based content delivery via

      [Read more...]
    NetBeans 6.5 M1: GlassFish v3 + Rails
    Employee +0 Vote Up -0Vote Down

    NetBeans IDE 6.5 Milestone 1 is now available. The New and Noteworthy feature list certainly makes it worthy for the install - comprehensive PHP support (Editor Screencast and PHP Learning Trail), JavaScript Debugger, Groovy Editor, Grails support and Numerous
      [Read more...]
    Showing entries 1 to 30 of 32 Next 2 Older Entries

    Planet MySQL © 1995, 2014, Oracle Corporation and/or its affiliates   Legal Policies | Your Privacy Rights | Terms of Use

    Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.