Posts Tagged ‘java ee’
Friday, June 22nd, 2012
Creating cronjobs or scheduled service executions is made really easy in Java EE 6. Scheduled tasks may be created in a programmatical style or simply by adding some annotations to an EJB.
In the following tutorial we’re creating some simple scheduled tasks and let them run on an embedded GlassFish instance using the Maven Embedded GlassFish plugin..
(more…)
Tags: cron, embedded, Enterprise, glassfish, java ee, jee, maven, quartz, scheduleexpression, scheduler, service, task, timer, timer service
Posted in Enterprise, Java | 2 Comments »
Thursday, April 26th, 2012
Now that the long awaited stable version of the Arquillian framework is released I wanted to demonstrate some interesting features of this framework that really eases writing and running of integration tests for Java EE 6 applications in many different ways.
In the following tutorial we are going to create some real-world examples using Enterprise JavaBeans, Contexts and Dependency Injection, the Java Persistence API and we’re finally running Drone/Selenium tests against a JEE Web Application that is using Java Server Faces.
(more…)
Tags: arquillian, cdi, drone, ejb, glassfish, integration test, java ee, jboss, jee, jpa, jsf, selenium, tdd
Posted in Enterprise, Java, testing | 4 Comments »
Wednesday, August 17th, 2011
Aspect oriented programming and the definition of cross-cutting-concerns is made easy in Java EE 6 using interceptors.
In the following tutorial we’re going to take a look at the different possibilities to apply interceptors to your EJBs at class or method level and how to setup a GlassFish instance to run the examples.
(more…)
Tags: aop, aspect, ejb, glassfish, interceptor, java ee, jee, servlet
Posted in Enterprise, Java | No Comments »
Sunday, June 5th, 2011
Message Driven Beans are no new concept due to the fact that they exist since EJB 2.0 but in Java EE 6 and the EJB 3.0 specification it is even more fun to use them.
In this tutorial we’re going to take a look at the specification and create an example application that transfers some objects via the Java Message Service to a Message-Driven Bean deployed on a GlassFish application server.
If you’re not interested in theory please skip to chapter 6 and directly start creating an application – otherwise we’ll begin with a short introduction into the JMS terminology and the concept of a Message-Driven-Bean..
(more…)
Tags: asynchronous, consumer, ejb, Enterprise, glassfish, java ee, jee, jms, mdb, message driven, messaging, publisher, tutorial
Posted in Enterprise, Java | 3 Comments »
Tuesday, February 8th, 2011
Java EE 6 is out and it indeed offers an interesting stack of technologies. So in today’s tutorial we are going to build a small sample web application that builds on this stack using Enterprise JavaBeans, Java Persistence API, Bean Validation, CDI and finally Java Server Faces and PrimeFaces.
The application we’re going to develop is a simple blog app that allows us to create new articles, list them and – finally delete them. We’re also covering some additional topics like JSF navigation, i18n, Ajax-enabled components and the deployment on the GlassFish application server.
(more…)
Tags: bean, bean validation, cdi, eclipselink, ejb, example, glassfish, hibernate, IoC, java ee, jee, jndi, jsf, jsr-303, jsr-316, jsr-317, jsr-318, maven, mojarra, primefaces, toplink, tutorial, validator, weld
Posted in Java | 55 Comments »