When Java EE 6 was announced with a new servlet specification i.e Servlet 3.0 – Asynchronous servlet was a very important feature added to the new specification. Suppose your servlet does a long running task like making a JDBC call or invoking a web service, such operations generally take up a lot of CPU time …
Java EE
What is load on startup element in web.xml file
specify the order in which we want to initialize various Servlets. Like first initialize Servlet1 then Servlet2 and so on. This is accomplished by specifying a numeric value for the <load-on-startup> tag. <load-on-startup> tag specifies that the servlet should be loaded automatically when the web application is started. The value is a single positive integer, …
Deploying a ZK based Java EE application to Red Hat Open Shift Cloud
OpenShift is a Platform As A Service (Paas) offering from Red Hat joining the likes of Heroku, GAE, Jelastic and others. OpenShift supports Java EE, PHP, Node.js, Ruby, Python and Perl applications. I tried out deploying a simple Java EE application based on ZK Framework, interested people can have a look at the application running …
Core Tags in JSTL
[ In the second part of this tutorial on JSTL, the author explains how the tags in the core-group can be used in JSP pages, with a number of simpleexamples.] We are now ready toexperiment with all the tags in the ‘core’ library. The core tags have the following uniform‘uri’. ‘http://java.sun.com/jstl/core' =============================== ( However, in …
How to use CDI with EJB 3.0?
This article is based on EJB3 in Action, Second Edition and the book will released on October 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When …
Working with Message-Driven Beans
This article is based on EJB3 in Action, Second Editionand the book will release on October 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When mobile …
JSTL Configuration Error
If you are getting the following error while running the JSP 2.0 in Tomcat server. It means the application is missing JSTL jar file. If you add standard.jar and jstl.jar the problem will be solved. also read: Java EE Tutorials Java EE 7 Tutorials Java EE Interview Questions
Managing transactions in EJB 3.0
Transaction represents a group of activities that must be performed as a single work unit. This clarifies that a transaction is complete if and only if all the work items within a work group results in success. If any of the work items fails, then the transaction as a whole will be treated as a …