Showing posts with label hibernate tutorial and interview questions. Show all posts
Showing posts with label hibernate tutorial and interview questions. Show all posts

Thursday, January 19, 2012

Java Interview Question and Java Beginner Tutorial - Part 6

Can an EJB send asynchronous notifications to its clients?

 Asynchronous notification is a known hole in the first versions of the EJB spec. The recommended solution to this is to use JMS, which is becoming available in J2EE-compliant servers. The other option, of course, is to use client-side threads and polling. This is not an ideal solution, but it’s workable for many scenarios.