Fix XmppConnFactoryBeanTests config for parser
The `xmppDomain` has two setters on the `XMPPTCPConnectionConfiguration.Builder`, so the Java Bean specification may choose a wrong one by name and the provided value may not fit into expectations * Rework `XmppConnectionFactoryBeanTests-context.xml` to avoid ambiguity with target setters presence
This commit is contained in:
@@ -7,15 +7,10 @@
|
||||
xmlns:int="http://www.springframework.org/schema/integration"
|
||||
xmlns:int-xmpp="http://www.springframework.org/schema/integration/xmpp">
|
||||
|
||||
<bean id="xmppConnectionConfigurationBuilder" class="org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration"
|
||||
factory-method="builder">
|
||||
<property name="xmppDomain" value="#{T(org.jxmpp.jid.impl.JidCreate).domainBareFrom('myServiceName')}"/>
|
||||
</bean>
|
||||
|
||||
<bean id="xmppConnection" class="org.springframework.integration.xmpp.config.XmppConnectionFactoryBean">
|
||||
<property name="connectionConfiguration">
|
||||
<bean factory-bean="xmppConnectionConfigurationBuilder" factory-method="build"/>
|
||||
</property>
|
||||
<property name="host" value="localhost"/>
|
||||
<property name="user" value="test"/>
|
||||
<property name="autoStartup" value="false"/>
|
||||
</bean>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user