Jump to content
We've recently updated our Privacy Statement, available here ×

mr_2

Members
  • Posts

    5
  • Joined

  • Last visited

mr_2's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thanks, I should have seen the first solution myself! As for the second one, which sounds better, how do I set in my new context all the extensions in the ExtensionRegistry? The SimpleJasperReportsContext has a method setExtensions() that takes the whole Map<Class<?>,List<?>>, but the ExtensionRegistry's getExtensions() only returns a list of extensions for a given class. M.
  2. I have a JBoss application using with Felix OSGi framework. The problem is that the ExtensionRegistry seems to be static, and it's not thread safe. If I do final ExtensionsRegistry old = ExtensionsEnvironment.getExtensionsRegistry();ExtensionsEnvironment.setSystemExtensionsRegistry(myExtReg);// do what I have to doExtensionsEnvironment.setSystemExtensionsRegistry(old);[/code]from bundle B1, if another bundle B2 calls Jasper in between the first and the last instruction, Jasper will try to use classes that might be available only in B1, and get a ClassNotFound exception. I don't have access to the code of all the bundles, so I cannot just synchronize everything - which would be ugly anyway. Is there a solution for this? M.
×
×
  • Create New...