![glassfish twitter glassfish twitter](https://image.slidesharecdn.com/glassfishjavaeetodayfuture-1217511820062323-9/95/slide-7-1024.jpg)
Intended mainly for Java developers and administrators, GlassFish includes a modular runtime that minimizes resource consumption, an easy-to-use console and a feature-rich command line tool. Assert.GlassFish is a straightforward utility designed for developing and deploying Java EE applications (Java Platform Enterprise Edition) and Java Web Services. When complete, the project, in the Projects tab, should look like the screen-grab, below. NetBeansįirst, create a new project in NetBeans, by selecting the New Project -> Samples -> Java Web Services, REST: Hello World (Java EE 6), as shown below. If you don’t know how, consult this post or similar. Since I have both applications installed on the same machine, I have changed Jenkins’ default port to another unused port, 9090. Again, in a production environment, your source-code would be placed on SCM/VCS server.īoth GlassFish and Jenkins are configured by default to run on server port 8080.
![glassfish twitter glassfish twitter](https://pbs.twimg.com/media/A0XuP2lCAAIysHv.jpg)
Also, for this post, I am also not using a source-code management (SCM) system, also called a version control system (VCS), such as Subversion or Mercurial, to house the project’s source code. In a true production environment you would most likely have a distributed configuration with GlassFish installed on an application server, Jenkins on a build server, and NetBeans on your development machine. At the time of the original post, I was using NetBeans 7.1.2, GlassFish 3.1.2, Jenkins 1.4.6.3, Ant 1.8.3, and JDK 1.7.0_02.įor simplicity, I am using a single development machine for this demonstration, on which all applications are installed.
![glassfish twitter glassfish twitter](https://www.aquariumfishindia.com/wp-content/uploads/2021/05/9414878280_d1554c6cfa_b.jpg)
#Glassfish twitter full
A full installation of NetBeans comes with JUnit, Ant, and GlassFish. This post assumes that you have current versions of NetBeans, JUnit, Jenkins, GlassFish, Ant and Java installed and configured on your Microsoft Windows-based computer. I will not delve deeply into the inner workings of the web service itself since the focus of this post is automation. I will use NetBeans to create the project, write the unit tests, and produce an Ant target in the build file. This post demonstrates the use of Jenkins and Apache Ant to compile, assemble, unit test, and deploy a Java EE 6 REST ful web service to Oracle’s GlassFish open-source application server.įor the sake of brevity, I have chosen to use the HelloWorld REST ful web service example included with NetBeans. According to Apache, Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets. According to their website, Jenkins provides over 400 plug-ins to support building and testing almost any type of project. Jenkins, formally Hudson, is the industry-standard, java-based open-source continuous integration server. Note GitHub repo reflects updates to project on .
#Glassfish twitter code
All source code for this post is available on GitHub. Use Jenkins and Apace Ant to compile, assemble, test, and deploy a RESTful web service to GlassFish.