Do you use Jetty and need to change the default setting for browser cache control? Have a look at the init-param element named cacheControl in webdefault.xml.
Here’s the default configuration for the version of Jetty I use. Note the element is commented.
Today's pattern is the Prototype pattern which is utilized when creating an instance of a class is expensive or complicated. Prototype in
the Real World While the prototype that you first think of is a first draft of a new product, the prototype pattern is...
Groovy 1.7.2 was released 22 hours ago, so by now you have surely spent hours playing with the new bits and combing through the release notes looking for new nuggets of productivity.Or maybe not.For all those busier than me, here are the top 3 reasons to...
If you’re using ehcache’s disk persistence feature, which allows the cache to survive across JVM restarts, be sure to shut down ehcache properly.
To do so when using ehcache within a webapp, simply add its ShutdownListener as a listener in web.xml.
Spring 2.5 classpath scan does not work on JBoss5 due to internal
architecture changes in JBoss5. You may face this issue when migrating
from JBoss4 to JBoss5. This article walks you through a simple fix,
with code snippets.
A survey of 1,101 IT pros, with a focus on Java enterprise developers, was released this week by Replay Solutions, a company that offers a replay debugging tool (Think DVR for enterprise Java applications, but more than just video). Some interesting...
It's been over a year since the release of Lift 1.0. For those of you who've never heard of Lift, it's a powerful web framework for Scala and Java developers. There are only a handful of web frameworks for Scala and Lift is probably the most well-known. ...
Today is very big day for Groovy++ team and me personally. Version 0.2 of Groovy++ is available now for download. Please go to http://code.google.com/p/groovypptest/ and give it a try.Only (or already) 17 weeks ago we opened very first preview of Groovy++. It...
We recently had the chance to catch up with Gregg Sporar, Senior Product Manager at Smart Bear Software, about peer code review as an Agile process.DZone: Can you give us a quick intro to yourself and your background?
example demonstrates that it's possible and easy to use the
Bucket/Key/Value approach to build a complex application. In this
example we're going to compare this new approach with the classic
Relational DBMS way. In this article we use Orient
Part of the Java Standard Edition since the release of the Java
Development Kit 1.1, the Java Database Connectivity (JDBC) API has
become the industry standard for providing standards-based data access
from Java. It allows you to have a single API into a...
On a fairly regular basis, I get email or blog comments where
someone will ask me how to create something they have zero
experience with. Invariably, it's a project that is enormously
Poking a little fun (good naturedly, I'll add) the requests...
In this post, I'll show you how to create a simple OSGI-based
servlet. Later, we will deploy this servlet to an Amazon EC 2 instance -
this should be fun!
First of all, some preliminary steps. We need to
create a new OSGi project and add some dependencies:
Released in Feb, ECF 3.2 has full support for the OSGi 4.2 remote services specification. As
with any general technology, there are potentially many use cases for
remoting OSGi services, and any given implementation won't support all
those use cases. It's...