ivan-ra commented on issue #652:
URL: https://github.com/apache/camel-karaf/issues/652#issuecomment-3539131320

   Idk how it works, but in works with current feature.
   I changed camel-ehcache feature test as follows, and it passed (marshalling 
to xml and unmarshalling)
   ```
   public class CamelEhcacheRouteSupplier
   ...
       @Override
       public void configure(CamelContext camelContext) {
           CacheManager cacheManager = 
CacheManagerBuilder.newCacheManagerBuilder()
                   .withCache(TEST_CACHE_NAME, 
CacheConfigurationBuilder.newCacheConfigurationBuilder(
                                   Object.class, Object.class, 
ResourcePoolsBuilder.newResourcePoolsBuilder()
                                           .heap(100, EntryUnit.ENTRIES))
                           .withExpiry(ExpiryPolicy.NO_EXPIRY)
                   )
                   .build(true);
                // lets try 
https://www.ehcache.org/documentation/3.10/xml.html#programmatic-configuration-to-xml
                org.ehcache.config.Configuration configuration = 
cacheManager.getRuntimeConfiguration();
                // marshall
                org.ehcache.xml.XmlConfiguration xmlConfiguration = new 
org.ehcache.xml.XmlConfiguration(configuration);
                System.out.println(xmlConfiguration.toString());
                // unmarshall
                CacheManagerBuilder.newCacheManager(xmlConfiguration);
   
           camelContext.getRegistry().bind("cacheManager", cacheManager);
       }
   
   ```
   This code uses org.ehcache.xml.ConfigurationParser from ehcache-1.10.8.jar 
that uses  javax.xml.bind package!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to