Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: J2EE

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Servlets

Asynchronous operation was introduced in Servlet 3.0. ServletRequest#startAsync is used to put the request into asynchronous mode. A thread need to be created implicitly or explicitly (see here for an example). Servlet 3.1, JSR 340 includes clarifications in asynchronous area. Besides Servlet 3,1, Concurreny Utilities for Java EE 1.0, JSR 236 is introduced in Java EE 7. JSR 236 provides a...
on Jun 6, 2013
Update: In Servlet 3.0, the behavior of using response is undefined after invoking #complete or #dispatch. In Servlet 3.1, it is clarified that AsyncContext#getResponse will throw IllegalStateException. The blog has been updated for this. Asynchronous operation is supported in Servlet 3.0. I have discussed startAsync in my previous blog, startAsync in Servlet 3.0. In this blog, I will discuss...
on May 14, 2013
Have you wanted to do something with asynchronous I/O? I did. After doing some work with Node.js, I wanted to find a way to get some of the goodness of its programming model for Java. The Acteur project is the result - a framework for building scalable, asynchronous web applications using Netty + Guice - was the result. The programming model is a little unusual - you treat constructors as...
on Apr 7, 2013

Security

Servlet 3.1 Specification (JSR 340) is almost ready for the release. Several new security features have been added in this version of Servlet specification. In this blog, I will explain one of the security features, namely deny-uncovered-http-methods. Let us take a look at a simple security-constraint in web.xml as follows: <web-app xmlns="http://www.w3.org/2001/XMLSchema" ...
on Apr 19, 2013
Servlet 3.1 was in Public Review in Janurary 2013. And it is in Proposed Final Draft now. Most of the new features are related to security. In this following, I will highlight features since Servlet 3.1 Public Review: add new API javax.servlet.http.Part#getSubmittedFileName add new API javax.servlet.ServletContext#getVirtualServerNameThis API allows a JASPIC module to be registered in a Servlet...
on Mar 18, 2013

JSR

Update: One should not use response in AsyncListener#onComplete. Only print debug in this example. Servlet 3.1 (JSR 340) is almost ready for the release. One of the new features is the support for non-blocking IO. ReadListener and WriteListener are introduced to allow non-blocking processing in Servlet. Non-blocking IO can only be used in async (defined in Servlet 3.0) or the upgrade mode. We can...
on Apr 16, 2013

J2EE

This quick blog entry is just to advertise the availability of the Proposed Final Draft of JSF 2.2 (JSR-344). You may download the draft of the spec at <http://jcp.org/aboutJava/communityprocess/pfd/jsr344/index.html>. You may try out the implementation by dropping this maven GAV into the modules directory of GlassFish 3.1.2.2: <a href="http://search.maven.org/#search|ga|1|g%3A%...
on Mar 15, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog If you have wanted JSF not to store any state now is your chance to try out the stateless mode of JSF. It is as easy as doing the following: &lt;f:view transient="true">  Your regular content&lt;/f:view> And voila you are running stateless. If you decide you do want some state to be...
on Feb 8, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Whenever the JSF runtime needs to perform a conversion it uses a Converter to do so. As explained in previous blog entries you have the ability to implement your own Converter. But does that mean you need to implement it for simple conversions? No, you do not, the default JSF converters come to the rescue!...
on Dec 26, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog The following blog articles are part of the JSF State Saving series Introduction to JSF State Saving The JSF State Saving APIs The JSF StateHolder API The JSF PartialStateHolder API The StateHelper API
on Dec 19, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog To facilitate component developers a convenience API was introduced to make it easier to implement the state saving requirements. Access to this API is made available through UIComponent.getStateHelper(). The API defines the following methods:   void add(Serializable key, Object value)   Object eval(...
on Dec 15, 2012
Not so long ago Mark Halvorson mentioned in his presentation at the Magnolia Conference 2012 that he doesn't understand why he can't have versioning for templates in Magnolia the same way he has it for content. Then I thought why not? Should be pretty straightforward. The first implementation was indeed easy. Similar to what Magnolia does when dealing with DMS documents - I just configured a...
on Nov 7, 2012
Has been 6 months, I part of the Azure Insider. I can test Azure here. Yes We have a lot of Cloud environment here, from OpenStack/CloudFoundry to VSphere/CloudFoundry, mostly all PaaS Related which I interest and see value for developer in PaaS World. anyway, there is an initiative related to Paas, called OpenPaaS, please visit http://www.openpaas.or.id. Several interesting work that we has made...
on Nov 6, 2012

Community

Our team of Java developers consists of people with various backgrounds and skill levels. Everyone has a role and is assigned tasks based on that role. Team members are expected to know basic programming concepts, core Java and core J2EE. In addition; database access, web-browser, client/server concepts are required as well. It didn't take long for our team to realize there was a lot more to know...
on Mar 10, 2013
Hello all. I am back with more stories about our adventures in the world of Java. From the distant past to recent events. I hope to entertain, enlighten, and encourage. So hold on to your hats. For software developers in IT, there are times when you find yourself present at the birth of a major application. Normally these are dream assignments. But consider the following additional factors. 1)...
on Mar 4, 2013
In my last blog post, I explained how to add versioning capability to templates. Being able to create, view and restore different versions of templates is great, but sometimes it's not so easy to see what has actually changed. And we might not be as lucky as having comments about the change from the author, or they might be cryptic to the point of being useless. So let's try and add the diff and...
on Jan 22, 2013
I am glad our team and me ofcourse, part of the Support mySchool project in WorldBank for Indonesia's Ministery of Education and Culture (MoEC), the URL is http://bantusekolahku.kemdikbud.go.id The first social media that linked with all the role in our govermental (from ministery directorate, province's education structure, district's educatio structure and schools structure). The public...
on Dec 13, 2012

Programming

Sometimes, life drops a house on your code. Sometimes, it's flying monkeys. Most of the time though, the damn stuff just stops working and it's nothing so obvious as being crushed by a Kansas farmhouse or being carried away by winged primates. For this last common case, there are a good number of great tools to help you out. JMeter may help you to reproduce the conditions under load, while...
on Feb 1, 2013

Web Development Tools

As a test, I re-created the HRSystem application as described in the tutorial Developing Rich Web Applications With Oracle ADF. It's more than your basic Hello World application. For starters, the HR system application accesses a database. It also takes advantage of some sophisticated ADF features, such as graphs, page flows, auto-suggest, menu options to export to Excel and display in...
on Jan 23, 2013

JSP

A few thoughts on how logging ought to be over at my new blog.
on Dec 5, 2012