Have you guys ever debugged machine code with Turbo Debugger or debug.com? I want to relive those good old days and debug byte code. I have some classes for...
The quick part of my question is, "Has anyone used the Java Preferences API extensively in a real-world (production) application and have any feeback about...
Hello guys, Could you suggest any good materials to read or tutorials for someone who's starting to learn or doesn't have any prior experience with Spring...
Hi guys, Can you please give some advice on how and what to use to obtain my objective. Is a report generation program that I can be able to run multiple...
You can go to www.javapassion.com <http://www.javapassion.com/> Or to www.roseindia.com <http://www.roseindia.com/> ... From: pinoyjug@yahoogroups.com...
... In a previous project, we used it to store settings/preferences for our Swing client application. It was a perfect fit for our requirements (separate...
Hi, I'm kind of new in creating an executable jar. I like to ask on how to make an executable jar in eclipse and redhat dev studio that reads the Property file...
... I agree that for rich-client or desktop apps, the Preferences API seems to make perfect sense - and I'd use it, too. I guess my question was aimed at more...
Try to read more on the Java 5 thread enhancements/features such as the ExecutorService. Depending on the type of ExecutorService you create, you can feed...
Executable jars are, in essence, a jar with a MANIFEST.MF in it. This file should contain the metadata needed to make your jar runnable via java -jar ...
I'm only allowed to use version 1.4.7. What is the best way to do it in this version? or do I really need to move to Java 5? Thanks, ... as the ... multiple ...
... Nobody? :) I found this: http://andrei.gmxhome.de/bytecode/index.html But I could not get the debugger to work. It's useful for reading bytecode, though -...
Hi, List. Newbie-level question. Suppose I have an Object field/property where the instantiation of that Object is expensive and time-consuming. I would like...
... Hi, boss. Uhm, not-so-much Java related but in the Ruby (on Rails) world memcached is the scaling solution of choice. Need a reference to a single value...
Another option though is to implement your own. I recommend Holub's book: Taming Java Threads. ... -- /** * Version Controls exist to document our screw * ups....
If you ask me, and have access to java.util.concurrent, I'd use a Future<V> object to instantiate it. I start the instantiation of the expensive object once...
Or probably another option is to create a pool of expensive objects, similar to DB connection pooling. Just create more instances if the pool reaches a certain...
I think Alistair wants a single instance only so pooling, wont make sense. He also wants on-demand instantiation - get it when you need it or don't instantiate...
Memcached is great. But it doesn't allow consistent writes. That's huge. The "read-only caching" use case is of widespread interest. But it's quite narrow....
I based my idea on the sample code he posted. In any case, you're right if he really needs just one instance. ... -- /** * Version Controls exist to document...
Cache it to a variable? Or i read it wrong:) Will the app be using the same instance? Or the object must know the changes to the database that the object...
... IOTH is the best way, according to Goetz in Java Concurrency In Practice (a must read, Boss Alistair) Before I knew it was the best, I was using...