How to access XML resources within a profile using Profile URL handler

Solution Verified - Updated -

Issue

We are using Fuse 6.3.0. We are trying to add XML resource files to a profile and access it in a Processor to convert them as JAXB objects and use for validation purposes. I understand that we cannot use Zookeeper URL handler to read profiles' resources as in 6.0.0 anymore in 6.3.0. I have added XML resource files to the profile successfully but unable to access it using the Profile URL handler. We have a ".properties" configuration file where I am reading a property "configResource" using the following values. The "configResource" is defined as type Object in a bean. However, none of these worked.

configResource=profile\:input.xml --> The value 'profile\:input.xml' is returned as String
configResource=${profile\:input.xml} --> The value is returned as empty String
configResource=${profile:input.xml} --> The value is returned as empty String

Environment

  • JBoss Fuse
    • 6.3

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.