Yes, there are two possible ways:
1) using xbean map syntax, which has limited support for non-string values
2) using a reference to an existing map
3) using plain spring syntax

Example code for 2:
<my:endpoint param2="#myMap" />
<util:map id="myMap">
   ...
</util:map>
See 
http://static.springframework.org/spring/docs/2.0.x/reference/xsd-config.html#xsd-config-body-schemas-util-map

Example code for 3:
<my:endpoint ..>
 <property name="param2">
   <map> ... </map>
 </property>
</my:endpoint>

On 10/26/06, xotelko <[EMAIL PROTECTED]> wrote:

Hello,

is there a possibility to define a HashMap as parameter for a custom JBI
component enpoint(use maven plugin to build) like:

 <sm:activationSpec componentName="cxslt" destinationService="foo:trace">
                <sm:component>
                    <my:component>
                        <my:endpoints>
                            <my:endpoint service="foo:my"
                            endpoint="endpoint"
                            param1="value1"
                            param1="param2"
                            param2=!!!Map!!!
                            />
                        </my:endpoints>
                    </my:component>
                </sm:component>
            </sm:activationSpec>

 just the way by using of spring framework in example:

<map>

        <entry key="java.util.Date">
          <bean
class="org.springframework.beans.propertyeditors.CustomDateEditor">
            <constructor-arg index="0">
              <bean class="java.text.SimpleDateFormat">
                <constructor-arg>
                  <value>yyyy/MM/dd</value>
                </constructor-arg>
              </bean>
            </constructor-arg>
            <constructor-arg index="1">
              <value>true</value>
            </constructor-arg>
          </bean>
        </entry>

      </map>

thanx!


--
View this message in context: 
http://www.nabble.com/HashMap-as-params-in-endpoint-tf2514884.html#a7014024
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to