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

Blogs by topic: Blogs

• 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 


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
I'm very proud to announce that in order to be fully compatible with the new multi-core era, we (the lambda expert group) have decided to deprecate the class syntax in Java 8 and to remove it in Java 9. With the introduction of lambda, classes are not needed anymore and are now seen as stimagata from the past. so instead of writing a class User like this: public class User {  private final...
on Apr 1, 2013

Servlets

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

Swing

Creating a JavaFX 2 (or should I say FX8) application can be a time consuming task. We all got used to powerful frameworks helping us creating such applications based on Swing (NetBeans Platform) or SWT (Eclipse). There even was an attempt at getting this standardized in Java for Swing - JAF anyone? So where is such an application framework based on JavaFX 2/8, which leverages all the nice...
on Mar 24, 2013

Deployment

Kanban Principles by Marcus Hammarberg and Joakim Sunden, author of Kanban in Action Kanban is an approach to software development based on the principles of lean. It has quickly been picked up by many businesses around the world. You can pick it up too! This article, based on chapter 2 of Kanban in Action, defines kanban, introduces kanban principles, and gets you started using kanban. In...
on Mar 21, 2013

Databases

The applications have grown together with the man dream to get more and more information, then more application have been emerging and the man had became hostage of the application. For example we can recognized the evolution between man and machine: In the first time: Many men to just one machine ( like mainframe's age) then one man to one machine ( in to Personal computer era) and...
on Mar 17, 2013
Many of the Oracle Java development tutorials that access a database do so against the Oracle HR sample schema. See, for example, Developing Rich Web Applications With Oracle ADF. There are several approaches you can take to getting the sample schema installed in the Oracle Cloud, such as Using SQL Developer or JDeveloper as demonstrated in Shay's blog. In my case, we're going to run the SQL...
on Jan 17, 2013

Programming

Atlassian has made some seriously great products, for example the project tracker JIRA. We recently upgraded our rather archaic version of JIRA at Magnolia to the latest and greatest offering. Everyone in the team found something in this upgrade. Some of us were desperate to use GreenHopper, others were looking forward to a better LDAP integration, and my personal favourite was the new REST API...
on Feb 20, 2013
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
Operator Overloading by Chris Buckett, author of Dart in Action Overloading happens when you provide a new implementation customized to your particular class, which allows you to overload the common operators such as > (greater than) and < (less than). In this article, based on chapter 8 of Dart in Action, author Chris Buckett explains how this function helps you create truly self-...
on Jan 11, 2013

J2EE

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 kept at the server you can use the @xxxScoped annotations on your beans Be aware that...
on Feb 8, 2013

Blogging

The Fundamentals of a JavaScript Test Suite by John Resig and Bear Bibeault, authors of Secrets of the JavaScript Ninja As important as a solid testing strategy is for all code, it can be crucial for situations where external factors have the potential to affect the operation of your code, which is exactly the case you're faced with in cross-browser JavaScript development. In this article...
on Feb 7, 2013
What is SPARQL? by David Wood, Marsha Zaidman, Luke Ruth, and Michael Hausenblas, authors of Linked Data SPARQL is the query language for RDF and Linked Data. SPARQL is to RDF data as the Structured Query Language (SQL) is to a relational database. SPARQL's name is nicely pronounceable and sounds interesting and fresh. SPARQL is interesting and fresh. This article, based on chapter 5 from...
on Dec 20, 2012

Virtual Machine

Understanding Coercion by Michael Fogus and Chris Housen, authors of The Joy of Clojure In many cases, Clojure's compiler will be able to highly optimize idiomatic Clojure source code. But there are times when the form of your functions, especially in interoperability scenarios, will prove to be ambiguous or even outright counter to compiler optimizations. In this article, based on chapter 12...
on Jan 30, 2013

GUI

I am pleased to announce the release of SwingX 1.6.5. The new release is available in Maven central. As always, you may report bugs or request new feature via JIRA. You may also contact us in the discussion forum. Release Notes - SwingX - Version 1.6.5 Bug [SWINGX-1336] - Flickering in JXPanel with alpha < 1 [SWINGX-1449] - JXButton doesn't update font if...
on Jan 29, 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

Community

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
Some time ago, I had the impression that everywhere I stepped in the endless Java universe, I came across rather outdated technology. Things that were hyped years back, but for some reason had been left behind by mankind in the course of time. Disenchantedly roaming that programming desert I almost went depressive looking at all the rusty wrecks of former featured APIs laying around all along....
on Jan 1, 2013