Alder Potenz

+ Follow
since Jul 31, 2012
Alder likes ...
IntelliJ IDE Java Spring
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alder Potenz

Thank you for your reply. Sure, I will research deeper with the AOP concepts.

Another question with one of Spring AOP feature, "introduction" on when we can introduced s new method. When we will usually need to do this?

I have attached an image representation.
2 weeks ago
Is there a way for maximumRedeliveries and redeliveryDelay value to be dynamic per request/exchange. Values can be pulled from the exchange content header or properties.

Thanks in Advance!
What are the real world or common scenario where we need or want to use AOP introduction or adding new method/functionality to an object. In Spring case, on a bean.
4 weeks ago
Hi Junilu. Thanks you for your answer. This also means on compile time production and test classes are combined in their respective packages.

Junilu Lacar wrote:It has to do with the package declarations and the classpath settings when you run your tests.

By convention, the package structure that you create under src/test mirrors the package structure under src/main. You also declare your *Test classes to be in the same package as the class under test. This way, you can even reference members in your production code that have package-private (default) access.

When running tests, the test class output directory is added to the classpath in addition to the production class output directory. As a result, even though the two may be entirely separate physical directories in the file system, to the Java Runtime as long as the classes are declared to be in the same package, they will be loaded and treated as being "together" in the same package.

2 years ago
Hi. I am curious why classes in src/main are visible to the test classes under the src/test in a maven project.

Are they combined on compile time and test classes are just removed when packaging the application?

Thanks in advance.
2 years ago
Hi Jeanne/Henry,

Thanks for your answers. It is rare to use that in objects but comparing to null and traversing to list is a great example.

I can sleep soundly tonight

Hi Jeanne,

Thanks for your reply. Yes, commonly I encounter the .equals() method. But what is the common use of == method when it comes to objects. Is there a scenario or example why we should test if two object are equal?
This may sound very basic. I understand what equality means when tested with the == operator. But I am curious of scenarios, design and examples on why we should check if references are pointing to the same object using the == operator.
Just missed this post by a few days.

I am currently preparing for an OCJP 1.6 certification.

Good luck to all of us


Thanks for the help. What I did was include property files (properties is programmatically changing) inside the jar of the application.
Upon start up of the application the application will check if the files are in already in the user's directory. If not it will copy the property files in the users directory.

I use .getResourceAsStream() to extract the resources and put it in the users directory.

5 years ago
Thanks for your reply.

But how can I achieve this solution using JAWS?

For such application, I used to store such properties in user_home directory in a folder specific for my application.

Actually the configuration is saved in an xml file when the user change it in the configuration window of the application.

I want the user be able to use the last configuration setting he set to the application.
5 years ago
Hello all,

I developed an application that is accessing some property files. The condition was that the user should be able to modify the content or parameters of those property file.
How can I distribute the application using Java web start that also includes those property file in the client side?

5 years ago
Welcome! Barry!
5 years ago