Timothy wrote:
In systems that do a lot of application load/unloads, you probably
want to avoid static references in general.
I replaced all references with a Getter to a static variable and that made
the "symbol"-errors go away.
So JNA is probably not connected to my problems with ServiceMix container
crashes - e.g., in 60-70% of the cases (more with Java6...) the server
crashes when trying to access it via JMX, which works fine with the stock
components. I'll have to investigate my library and container-configuration,
the remaining stability-problems seem more JBI-related.
Do you know what portion(s) of code are defining these symbols?
I thought they were in the JNA lib..? (at least they are gone now)
Does ServiceMix use a classloader per context, or a single classloader that
loads and unloads classes?
ServiceMix uses the ClassWorlds classloader, so I think the latter. There is
some documentation at:
http://incubator.apache.org/servicemix/classloaders.html
Thanks for the tips so far,
Gregor