Results 1 to 1 of 1

Thread: problem setting java.util.Map type as @ManageAttribute

  1. #1
    Join Date
    Nov 2007
    Location
    San Francisco USA
    Posts
    34

    Default 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 at 05:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •