Home » Java » Enterprise Java (page 341)

Enterprise Java

JBoss 4.2.x Spring 3 JPA Hibernate Tutorial Part #2

spring-interview-questions-answers

We continue our tutorial about Spring 3, Hibernate, JPA and JBoss 4.2.x – 4.3 integration. The last step is to create a Spring service to expose functionality to the end user. We have to create an interface class and the relevant implementation class. First the interface class :           package com.mycomp.myproject.services; import com.mycomp.myproject.dto.EmployeeDTO; public interface ExampleService ...

Read More »

JBoss 4.2.x Spring 3 JPA Hibernate Tutorial

spring-interview-questions-answers

After spending many hours searching the web, trying to find the most efficient way to use Spring, JPA and Hibenate for several projects we concluded to the configuration that will be presented below. Integrating Spring with JPA and Hibernate consists of several steps : Configuration of the Spring container Configuration of the JPA ORM layer Configuration of Hibernate Second lvl ...

Read More »

Scheduling principals in Java applications

java-interview-questions-answers

Many projects require scheduling functionality, such us scheduled jobs, repeated jobs, asynchronous execution etc. Our preferred method is to use an enterprise job scheduler such us Quartz from OpenSymphony. One of the most tricky parts when coding using scheduled tasks is the execution part. The main rule of thumb here is to pay attention to the actual code that will ...

Read More »

Messaging principals in Java applications

java-interview-questions-answers

Messaging is a crucial aspect of every Java application, especially for applications involving Enterprise Application integration (EAI) or separation of concerns, such us multi-tier WEB applications. Messaging can be separated in two main categories, synchronous and asynchronous. With synchronous messaging the initiator of a conversation waits for a replay to each submitted request, on the other hand, in asynchronous messaging ...

Read More »