Sometime bundles are not updated even after multiple build and deployment when using OpenJPA JPA persistence.

Solution Unverified - Updated -

Issue

  • We are having cache issue by using OpenJPA, that we need to clear bundle cache manually in several bundles directory. Then we've found this parameter in https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Configuring_and_Running_Red_Hat_JBoss_Fuse/files/ESBRuntimePersist.html:
org.osgi.framework.storage.clean=onFirstInit
  • This seems can clear bundle cache as expected. Now our questions are:
  1. Is that any side effect by doing so? We have to make sure this is safe for production.
  2. Seems that parameter will clear cache in all bundles, is it possible to clear only particular bundle cache?

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.