How to configure MDB on WildFly to consume messages from JBOSS 5.1?

Version 1

    Salut,

     

    having bean developed a new application with WildFly I need to read messages from a legacy system running JBOSS 5.1.

    Is there any way to configure MDB on WildFly that it connected to cluttered topic on old system(by using @JMSConnectionFactoryDefinition and @JMSDestinationDefinition annotations) ?

     

    Thank You