Home » Java » Enterprise Java (page 334)

Enterprise Java

The evolution of Spring dependency injection techniques

spring-interview-questions-answers

Looking back at the history of Spring framework you will find out that the number of ways you can implement dependency injection is growing in every release. If you’ve been working with this framework for more than a month you’ll probably find nothing interesting in this retrospective article. Nothing hopefully except the last example in Scala, language that accidentally works ...

Read More »

Problems with ORMs

Object Relational Mapping tools like Hibernate have helped developers make huge productivity gains in dealing with relational databases in the past several years. ORMs free developers to focus on application logic and avoid writing a lot of boilerplate SQL for simple tasks like inserts or queries. However, the well-documented problems with object-relational impedance mismatch inevitably cause headaches for developers. Relational ...

Read More »

Integrating Jersey with Spring

spring-interview-questions-answers

Spring provides a lot of benefits and promotes best practices with its dependency injection mechanism, application lifecycle management and Hibernate support (just to mention some). In addition when you want to have a clean server-side REST-like JSON Api, I found Jersey to be quite handy. This article briefly highlights how both of them can be integrated. In my little spare ...

Read More »

Heroku runs Java

If you are a Java fan boy, like me, then you have a good news to cheer about. Heroku runs Java now! Well, unlike other popular ‘web’ languages like PHP/RoR, Java has the legacy of being cumbersome to deploy and maintain in an web server. All this time, only enterprises had the effort to use the Java stack on their web tier. ...

Read More »

Web Services in Ruby, Python and Java

Today I’ve had to prepare some examples to show that web services are interoperable. So I’ve created a simple web service in Java using Metro and launched it on Tomcat. Then tried to consume them using Python and Ruby. Here’s how it all finished… Web service in Java I’ve started with a simple web service in Java: package com.wordpress.jdevel.ws; import ...

Read More »

Java Persistence API: a quick intro…

java-interview-questions-answers

Hello Readers! After numerous requests from some of my friends I’ve decided to write a short article about the Java Persistence API. Object Oriented programming paradigm is the most popular and widely used model nowadays and it outclasses and outshines most other paradigms because of its ability to model real life entities seamlessly. But when it comes to developing medium-sized ...

Read More »

EJB 3.1 Global JNDI Access

java-interview-questions-answers

As outlined in the previous parts of this series, the major drawback of the EJB v. 3.0 Specification was the lack of portable global JNDI names. This implies that there’s no portable way to link EJB references to a bean outside your application. The EJB v. 3.1 Specification fills this gap defining, in its own words: “a standardized global JNDI ...

Read More »

EJB Programmatic Lookup

java-interview-questions-answers

In our previous post we learnt about EJB references and EJB injection. Even though EJB injection is a powerful container facility that eases modular application development, sometimes performing a programmatic EJB lookup is instead desirable. Let’s suppose, for example, that a set of distinct EJBs implement a common strategy, defined by a common business interface. Depending on the result of ...

Read More »