Getting Started

What is OSGi and How Apache Felix, Apache Karaf, Equinox, Knopflerfish, Virgo, Blueprint and Pax Exam are related to OSGi?

OSGi stands for Open Service Gateway initiative. The OSGi specification describes means to achieve better modularity when using Java. Applications or components come in the form of bundles, and these bundles can be remotely installed, started, stopped, updated, and uninstalled without requiring a reboot. 

Getting Started with Gradle in Windows OS - Hello World Build

We will download, install and configure gradle, and then execute a simple program.

 

Prerequisites

  1. Gradle 1.x requires a Java JDK 5 or higher to be installed and the location needs to be added to an environment variable JAVA_HOME. 

  2. Gradle 2.x requires a Java JDK 6 or higher to be installed and the location needs to be added to an environment variable JAVA_HOME. 

Gradle Basics (Theory)

Gradle is a project automation tool designed for large multi-project builds that builds upon the concepts of Ant and Maven, and introduces a Groovy-based domain-specific language (DSL) instead of traditional XML form of declaring the project configuration.

Introduction to HTML5 WebSockets

WebSocket is a TCP-based protocol like HTTP which is part of HTML 5 specification. Unlike HTTP which is a request response synchronous protocol, WebSocket provides a two way (full-duplex) communications channel over a single TCP connection and messages (textual and binary) can be sent between client and server asynchronously without the overhead of HTTP request/response life cycle.

JavaFX HelloWorld Command line Program without Eclipse Plugin & Scene builder

We will write a simple JavaFX application that displays a “Hello World” button. We will handle any button click events to print “Hello World” in the console. The program can be run from command line or from an IDE like eclipse, but without the Eclipse Plugin for JavaFX and Scene builder.

 

Introduction to JavaFX

JavaFX is a software platform for creating and delivering rich internet applications (RIAs). Swing and Adobe Flex are similar technologies. Though JavaFX is primarily suitable for desktop applications, it is also suitable for enterprise applications. We will first see where JavaFX fits and its future by comparing it with similar technologies, and then we will see its version and history in brief, an overview of some JavaFX tools and later we will see some sample JavaFX programs.

 

Packaging and Deploying a Web Application into Standalone Apache Tomcat

You need to package your web application as a .war file to deploy it directly to Apache Tomcat. WAR stands for web archive. A different server might require a different format, for instance a glassfish server will need a .jar file whereas a websphere application server will require an .ear.

 

Installing and verifying a standalone Apache Tomcat

We will use a stand-alone tomcat for this example. Just download latest tomcat (.zip) version, unzip into a folder.

Hello World JSP Web Application in Eclipse with Tomcat

We will create a simple JSP that prints "Hello World" in eclipse, deploy it and run it on the integrated tomcat. 

 

Prerequesites

Configure apache tomcat with eclipse as mentioned in configuring-apache-tomcat-with-eclipse and start and stop tomcat server from the servers view of eclipse.

 

Hello World Servlet Application in Eclipse With Tomcat

We will create a simple servlet that prints "Hello World" in eclipse, deploy it and run it on the integrated tomcat. 

 

Prerequesites

Configure apache tomcat with eclipse as mentioned in configuring-apache-tomcat-with-eclipse and start and stop tomcat server from the servers view of eclipse.

 

JSP Web Application With Form Submission Lab

We will create a simple JSP form and then submit the form with action as another jsp and retrieve the form parameters which are received as request parameters in the second jsp file.

 

Create a 'Dynamic Web Project'.

  • Select 'File > New > Dynamic Web Project' or  'File > New > Project > Web > Dynamic Web Project'.  

Pages

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!