Michael B�ckling

Greenhorn
+ Follow
since Mar 26, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael B�ckling

Hi!

Suppose I want to throw a chained exception over the wire. The cause of the exception is a class that might not be present on the client receiving the exception. What can I do?

1) The obvious: no chaining. Copy the message from the underlying exception into a brand new one, and loose the stacktrace (or at least log it to the serverlog).

2) Maybe I can copy the exception details from the old exception into the new one? It's just textual data, right?


Can somebody please give advice on what the usual approach is in such situations? Thanks a lot!

Regards,
Michael
15 years ago
I solved the hot-reloading for Struts message resources (beware, Java 5 code).

Here are the two required classes:

Set the factory:


ReloadablePropertyMessageResources:


ReloadablePropertyMessageResourcesFactory:


[ March 26, 2008: Message edited by: Michael B�ckling ]
[ March 26, 2008: Message edited by: Michael B�ckling ]
16 years ago