[jboss-user] [Microcontainer] - Re: How to convert -service.xml into -jboss-beans.xml ?

alesj do-not-reply at jboss.com
Fri Jan 30 05:23:20 EST 2009

The services itself are not pojo ready:

  | Caused by: java.lang.IllegalArgumentException: Wrong arguments. setServerPeer for target org.jboss.j
  | ms.server.destination.QueueService at 1ebf0d3 expected=[javax.management.ObjectName] actual=[org.jboss.
  | jms.server.ServerPeer]

They still expect injectee ObjectName
instead of the real injectee.

Perhaps this can help:

  | <bean class="org.jboss.jms.server.destination.TopicService" name="Topic,name=kunden">
  | 		<property name="serverPeer">
  | 			<inject bean="jboss.messaging:service=ServerPeer" fromContext="name"/>
  | 		</property>
  | 		<depends>jboss.messaging:service=PostOffice</depends>
  | 	</bean>
See 'fromContext' attribute.

But I would pojo-ize the services.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205801#4205801

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205801

More information about the jboss-user mailing list