[Javassist user questions] - Re: javassist.CannotCompileException: by java.lang.LinkageEr
by arsami
Here is what I found about this issue:
1- there is a name for this on-the-fly change, it is called Class Reloading in Java
2- By default, Class Reloading is not supported by Java. However, you may use Java Platform Debugger Architecture (JPDA) to reload a class.
3- Javassist has a class for this, it's called HotSwapper
4- Another way to reload a class in runtime is to use a different ClassLoader instance. However, it is almost impossible to do this if your application is running in a Java Application Server or Web Server. You can simply mess with your server's internal ClassLoader.
----
By the way, the main reason for doing this was that I would like to be able to turn on/off logging and auditing of my Web application by method injection without needing to restart the server.
If any one knows a different approach, I will really appreciate if you could it share it.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127982#4127982
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127982
18 years, 2 months
[JBoss jBPM] - Re: gpd.xml bend coordinates
by simonbaker
w1,h1 always seem to be relative to the source node rectangle center, even for many bendpoints.
w2,h2 likewise seem always relative to the target node rectangle center even for many bendpoints. In other words, bendpoint coordinates have their origins at the node rectangles -- they are not offsets from another bendpoint.
However, I find the w1,h1 coordinates more stable than the w2,h2 coordinates when you change the graph. If I move the source or target node rectangle, the bendpoints all stay in the same place relative to the source (that's how it is implemented) and the w1,h1 coordinates don't change as you'd expect. The w2,h2 coordinates should change, but they don't! However, if I then reposition a bendpoint, the w2,h2 coordinates update to the correct values.
I tested by closing and reopening the processdefinition.xml and gpd.xml files after any change to the diagram.
I'm not sure exactly what version designer I'm using, it may be 3.0.12, but certainly not the latest so perhaps the w2,h2 coordinate updating is fixed in later versions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127980#4127980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127980
18 years, 2 months