Christian Neudorfer

Greenhorn
+ Follow
since Feb 09, 2004
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 Christian Neudorfer

Hi, I want to hot-swap the implementation of a class which is packed in a jar-file.
for example:

Later I want to swap the implementation by providing a new jar-file.

This doesn't work. The new class gets never loaded.
I thought, that I have to write my own classloader to change the order of searching for classes in the method .
Everytime I try to call , I get the following exception:
java.lang.ClassNotFoundException: com.test.compA.ServiceAImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.test.OwnClassLoader.loadClass(OwnClassLoader.java:43)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.test.ComponentManager.loadComponent(ComponentManager.java:176)
at myTest.MyTest.main(MyTest.java:12)
Caused by: java.util.zip.ZipException: invalid block type
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
The ZipException does occur, when i call the method .
Any ideas? Thx in advance...
Chris
20 years ago
Ok,
I hoped that there is another way...
Thank you for your fast reply.
Best regards,
Christian
Yes, I know. I already have a client with a durable subscription.
What I wanted to know is, if there is a way to change the MessageSelector of a TopicSubscriber.
For example:
TopicSubscriber tSubscriber = tSess.createDurableSubscriber(topic, "Test", "version > 2", true);
What do I have to do, if I want to change to "version > 3" ???
Christian
Hi,
if I have a durable subscription to a topic with a specified MessageSelector. What is easiest way, if I want to change the conditions of the MessageSelector?
Do I have to unsubscribe and subscribe again with a new MessageSelector?
Best regards,
Christian
Hi,
I'm trying to implement a simple component model and here is my problem:
I have a singleton class to manage components. The components have to implement an interface 'Component' which defines some lifecycle methods like 'load', 'start', and so on...
The interface 'Component' is in my package hierarchy and should be visible to component programmers, but it should not be visible to application programmers who use the component model. The lifecycle methods 'start', ... should only be accessible for my component management class.
How can I achieve this goal???
Thx in advance,
Christian
20 years ago