Is Eclipse Faster than Netbeans for Arquillian Testing on a Remote GlassFish
Server? Part 2
While putting my test code up on GitHub and writing the readme.md, I ran my
NetBeans test code on my 2011 early MacBook Pro.
To my surprise the times for both embedded and remote testing were between 25
and 35 seconds.
My original blog was based on working on a much much faster Windows 8.1
system that took 16 seconds for embedded but 100 seconds for remote. So I
guess we blame:
Microsoft Windows 8.1 Java on Windows
You can download the Eclipse version of the code at:
https://github.com/omniprof/JPAJSFGlassFish03Eclipse
and the NetBeans version at:
https://github.com/omniprof/JPAJSFGlassFish03NetBeans
Some very bright people will be looking at the code and hopefully they will
have an explanation for why remote server testing on Windows 8.1 performs so
badly.
... (more)
Performing this task will resolve a problem that occurs when using NetBeans
to configure a JDBC Connection Pool and JDBC Resource for GlassFish. The
default installation of NetBeans and GlassFish results in the naming of the
JDBC configuration file as sun-resources.xml when it should be named
glassfish-resources.xml. This is a Windows only problem.
The first step is to install NetBeans if you have not already done so. I
recommend the Java EE version. Download and install. All the defaults during
install are acceptable. Install GlassFish but it is not necessary to install
Tomcat.... (more)
The NetBeans New File wizards greatly simplify writing boilerplate code. One
specific instance is the creation of JPA Controller Classes from an Entity
Classes. The class file, or files, written for you will contain all the basic
methods of JPA for CRUD operations on the entity or entities that you have.
The only small issue is that this class is written for a standalone
environment such as what you would find in an environment that does not
support Context Dependency Injection. To use this class in a GlassFish
environment or other container we have to make some minor changes.
W... (more)
Setting up a Maven project in NetBeans for the purpose of JEE 6 is simpler
than Eclipse. I also had a goal of creating a project that will work in
NetBeans and Eclipse when loaded from a Subversion repository. Here then are
the steps necessary to create a Maven project in NetBeans. See the end of the
post to learn how to move projects back and forth between NetBeans and
Eclipse.
Step 1
Before you install NetBeans you must have Java installed. You must choose
between a 32 and 64 bit version of this download. Here is a recent article on
this
subject: http://www.javacodegeeks.com... (more)
Step 1: Download and install WampServer
Download the latest version of WAMP from here.
As of this writing the current version is 2.0h dated 04/16/09 and file you
will download is called WampServer2.0h.exe
Run the file WampServer2.0h.exe
You will be asked to agree to the software license, approve the choice of
directory, select the default browser, and decide if you want a desktop
and/or quick launch icon. For the directory the default is c:\wamp but you
may change to whatever you like. In later steps in this document it will be
assumed you selected c:\wamp so change this to your ... (more)