You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2014/01/21 18:05:57 UTC

svn commit: r894985 - in /websites/staging/tomee/trunk: cgi-bin/ content/ content/tomee-and-netbeans.html

Author: buildbot
Date: Tue Jan 21 17:05:56 2014
New Revision: 894985

Log:
Staging update by buildbot for tomee

Modified:
    websites/staging/tomee/trunk/cgi-bin/   (props changed)
    websites/staging/tomee/trunk/content/   (props changed)
    websites/staging/tomee/trunk/content/tomee-and-netbeans.html

Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jan 21 17:05:56 2014
@@ -1 +1 @@
-1560007
+1560098

Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jan 21 17:05:56 2014
@@ -1 +1 @@
-1560007
+1560098

Modified: websites/staging/tomee/trunk/content/tomee-and-netbeans.html
==============================================================================
--- websites/staging/tomee/trunk/content/tomee-and-netbeans.html (original)
+++ websites/staging/tomee/trunk/content/tomee-and-netbeans.html Tue Jan 21 17:05:56 2014
@@ -126,77 +126,41 @@
     </h1>
 </div>
 
-<p>Netbeans and TomEE works great together. You can infact add TomEE as an Apache Tomcat server in Netbeans 
-by following the simple steps given below. </p>
+<p>You can trick NetBeans and use TomEE as a simple Tomcat server.</p>
 
-<p>Lets assume that you have already downloaded TomEE and you have NetBeans already setup.So to begin 
-lets just create a Java Web project in NetBeans (Assuming you have basic working knowledge 
-with NetBeans and you know how to create and run a web project in NetBeans). In the server screen 
-we can add TomEE like the given screenshot below.</p>
+<p>We will use one of the existing examples for this demo. Let's import it.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_01.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_02.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_03.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_04.png" alt="alt text" /></p>
 
-<p><img src="resources/images/netbeans-serverCreate1.png" alt="alt text" /></p>
+<p>Click 'Open Project'.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_05.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_06.png" alt="alt text" /></p>
 
-<p>Now hit next. In the next step you need to select the folder where the TomEE server is present.</p>
+<p>It's time to add our local TomEE server. Click 'Tools' and then 'Servers'.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_07.png" alt="alt text" /></p>
 
-<p><img src="resources/images/netbeans-serverCreate2.png" alt="alt text" /></p>
+<p>Select 'Apache Tomcat'.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_08.png" alt="alt text" /></p>
 
-<p>As soon as you hit finish your work is done. NetBeans would add the manager user in the tomcat 
-server and also you will get back to the project creation window. Continue to the step for choosing 
-your favorite web framework and complete the project creation process. Once the project is created 
-just run it once to see if everything is fine.</p>
+<p>Select your local TomEE directory.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_09.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_10.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_11.png" alt="alt text" /></p>
 
-<p><strong>Working with OpenJPA in Netbeans</strong></p>
+<p>It's time to run it. Click the play button.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_12.png" alt="alt text" /></p>
 
-<p>Let us move to the point where we will do the more interesting part. We will configure 
-OpenJPA in Netbeans so that the netbeans Entity generator can nicely work work OpenJPA and TomEE. 
-So to do that you need to first create a connection to a database. Lets assume that we create one 
-for MySQL server as shown in the screenshot below.</p>
+<p>Select 'Apache Tomcat'.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_13.png" alt="alt text" /></p>
 
-<p><img src="resources/images/netbeans-databaseConnection1.png" alt="alt text" /></p>
+<p>Give it some time. It's building your application.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_14.png" alt="alt text" /></p>
 
-<p>So once this connection is there we are ready to create Entity classes from the selected database.
-To do that follow the menu as shown in the screenshot below.
-<img src="resources/images/netbeans-entityCreationStep1.png" alt="alt text" /></p>
-
-<p>Once you select "Entity Classes from Database" You will be presented with the follow dialog</p>
-
-<p><img src="resources/images/netbeans-entityCreationStep2.png" alt="alt text" /></p>
-
-<p>In this dialog first of all we would select the connection that we created before from the top 
-dropdown. Once you select the connection Netbeans would bring all the tables in 
-"Available Tables" list. You can hit "Add All"  to select all tables for entity class generation.
- Now lets hit "Next" and go to the next screen. And then again hit next and in the next screen 
-hit finish. You can accept all the defaults that are given by the system and finish the Entity 
-creation wizard. With this you are done creating the entities. But as soon as you are done 
-creating the entities  You will get a failed message from TomEE server (In case your TomEE server 
-is running). This is because by default Netbeans generate Entity classes using Eclipselink which
- is not present in TomEE. So to make everybody happy. Next we will configure OpenJPA. To do that 
-you need to open the persistence.xml file from the project (Project explorer -> double click on 
-persistence.xml). This would open the persistence.xml editor window. As shown below</p>
-
-<p><img src="resources/images/netbeans-persistance1.png" alt="alt text" /></p>
-
-<p>Now in this window we will select "New Persistence Library" option from the Persistence Library 
-dropdown. This will open the following dialog box.</p>
-
-<p><img src="resources/images/netbeans-persistance2.png" alt="alt text" /></p>
-
-<p>Here you need to choose the following two jar files from the TomEE installation 
-folder - javaee-api-6.0-4-tomcat.jar and openjpa-asm-shaded-2.2.0.jar. Do make sure that you 
-are choosing the jar files from the same location where your TomEE server is. Once you choose 
-the proper libraries hit Ok to close the dialog and go back to the persistence.xml editor screen 
-of netbeans.</p>
-
-<p><img src="resources/images/netbeans-persistance3.png" alt="alt text" /></p>
-
-<p>Now here from the persistence library choose OpenJPA and save the file as shown in the above 
-screenshot. Now just restart the server once and you are all set to run TomEE with JPA.</p>
-
-<p>Do remember you may need to set your tomcat server in development mode so that your app gets 
-deployed live. to do that you can follow the instructions given in the JSP hot deployment 
-section following link</p>
-
-<p><a href="http://tomee.apache.org/tomee-and-eclipse.html">TomEE and Eclipse</a></p>
+<p>Done. Your server is up and running.
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_15.png" alt="alt text" />
+  <img src="http://people.apache.org/~tveronezi/tomee/tomee_site/netbeans_integration/windows8_16.png" alt="alt text" /></p>