Tags » Java EE

GlassFish Ve Tomcat

Genel: GlassFish ve Tomcat

GlassFish ; Java EE platformu için Sun Microsystems tarafından geliştirilen açık kaynak kodlu uygulama sunucusudur.SUN tarafından 2005 yılında başlatılmıştır.2006’da ise Java EE 5’i destekleyen ilk sürümü ortaya çıkmıştır.Hızlı çalışması,güvenlikli olması,ürün kalitesiyle ön plana çıkmaktadır. 395 more words

Glassfish

Creating a service registry with WildflyAS 8.2.0 and Zookeeper for microservices discovery.

Introduction

The last couple of months in my new job we are working in the definition of a rather complex system.Again all the hype words are there , like cloud , service registry/discovery, microservices, containers(docker/vagrant) etc. 2,015 more words

Programming

Websocket using Java EE

Introduction : WebSocket is an application protocol that  provides full-duplex communications between two peers over the TCP protocol.

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>com.test.websocket</groupId>
	<artifactId>websocket</artifactId>
	<version>1.0-SNAPSHOT</version>
	<packaging>war</packaging>

	<name>websocket</name>

	<properties>
		<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<groupId>javax</groupId>
			<artifactId>javaee-web-api</artifactId>
			<version>7.0</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>websocket</finalName>

		<pluginManagement>

			<plugins>

				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<!-- copy-dependency plugin -->
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-dependency-plugin</artifactId>
										<versionRange>[1.0.0,)</versionRange>
										<goals>
											<goal>copy-dependencies</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>







				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<source>1.7</source>
						<target>1.7</target>
						<compilerArguments>
							<endorseddirs>${endorsed.dir}</endorseddirs>
						</compilerArguments>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
					<version>2.3</version>
					<configuration>
						<failOnMissingWebXml>false</failOnMissingWebXml>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.6</version>
					<executions>
						<execution>
							<phase>validate</phase>
							<goals>
								<goal>copy</goal>
							</goals>
							<configuration>
								<outputDirectory>${endorsed.dir}</outputDirectory>
								<silent>true</silent>
								<artifactItems>
									<artifactItem>
										<groupId>javax</groupId>
										<artifactId>javaee-endorsed-api</artifactId>
										<version>7.0</version>
										<type>jar</type>
									</artifactItem>
								</artifactItems>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>


		</pluginManagement>

	</build>

</project>

… 355 more words
Websocket

Simplest Wicket 7 Maven project on Java EE 7 with Netbeans 8.0.2

This is a step by step guide on how to start using Wicket 7 (currently 7.0.0.M5) with Java EE 7 on Netbeans 8.0.2
You can either follow the steps below or just… 1,776 more words

Glassfish 4.1

Timeout policies for EJBs : how do they help...?

EJB 3.1 introduced timeout related annotations as a part of its API.

  • @AccessTimeout
  • @StatefulTimeout

Let’s quickly look at what they are and why are they important… 452 more words

Java

Java EE Batch Framework - Step 10 Processing Multiple URLs

Processing Multiple URLs

Up to now, we have just been processing a single URL and not really taking advantage of the batch partition.  In the last step, we update the code to take advantage of the partition. 163 more words

MongoDB

Java EE Batch Framework - Step 9 Writing to MongoDB

Writing to MongoDB

1)      Add the MongoDBJava driver as a library to your project.

2)      Create a property file to place connection information.

3)      Create properties within the property file that define the server host name, ports, and authentication information to connect to the database. 91 more words

MongoDB