Announcement Announcement Module
Collapse
No announcement yet.
problem setting java.util.Map type as @ManageAttribute Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem setting java.util.Map type as @ManageAttribute

    Hello All,

    I have a attribute defined in my managed bean as
    @ManagedAttribute(description = "Set the mapping", currencyTimeLimit = 20,
    defaultValue = "", persistPolicy = "OnUpdate")
    public void setClassMap(Map<String, String> classMap) {
    this.classMap = classMap;
    }
    which has a type, java.util.Map. and in my spring config files i have

    <entry key="bean:name=marshallerMapper">
    <ref local="marshallerMapper" />
    </entry>

    <bean id="marshallerMapper"
    class="com.app.test.MarshallerClassMapper">
    <property name="classMap">
    <map>
    <!-- organization -->
    <entry key="ITEMRCRE" value="com.app.test.ItemDesc" />
    </map>
    </property>
    </bean>

    so the problem is i don't see the value of classMap attribute from MX4J/Http Adaptor management console, it says unknown type and i don't see a way to add mapping at runtime as i can do for simple type like String, is there a way so that i can add more mapping at runtime through htttp Adapter management console.

    Thanks
    Last edited by puran; Jan 28th, 2008, 05:42 PM.
Working...
X