BlazeDS - OpenMQ integration issues


i have problem in integrating blazeds openmq server. i've flex application listening topic mesasages defined in openmq.i've enclosed sample configuration down below<br /><br />context.xml in tomcat<br />=====================<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><!-- contents of file loaded each web application --><br /><context path="/caprice" privileged="true" antiresourcelocking="false" antijarlocking="false" reloadable="true"><br /><br />     <resource name="jms/flex/mytopicconnectionfactory"<br />        type="com.sun.messaging.topicconnectionfactory"<br />        description="jms connection factory"<br />        factory="com.sun.messaging.naming.administeredobjectfactory"<br />        brokerurl="file:///c:/temp"<br />        brokername="caafbroker"/><br />    <resource name="jms/topic/flex/caafminotification"<br />        type="com.sun.messaging.topic"<br />        description="my topic"<br />        factory="com.sun.messaging.naming.administeredobjectfactory"<br />        physicalname="caafminotification"/><br />     <br /> </context><br /><br />mytopicconnectionfactory jndi lookup name connection factory , caafminotification jndi lookup name topic destination in openmq. <br /><br />messaging-config.xml<br />=====================<br /><br /><destination id="mievents"><br />          <adapter ref="jms"/><br />          <channels><br />               <channel ref="polling-amf"/><br />          </channels>     <br />          <properties><br />               <jms><br />                    <connection-factory>java:comp/env/jms/flex/mytopicconnectionfactory </connection-factory><br />                <destination-type>topic</destination-type><br />                <destination-jndi-name>java:comp/env/jms/topic/flex/caafminotification</destination-jndi- name><br />                <message-type>javax.jms.textmessage</message-type><br />                    <delivery-mode>non_persistent</delivery-mode><br />                <message-priority>default_priority</message-priority><br />                <acknowledge-mode>auto_acknowledge</acknowledge-mode><br />                    <initial-context-environment><br />                     <property><br />                        <name>context.provider_url</name><br />                        <value>file:///c:/temp</value><br />                     </property><br />                     <property><br />                        <name>context.initial_context_factory</name><br />                        <value>com.sun.jndi.fscontext.reffscontextfactory</value><br />                     </property><br />                </initial-context-environment><br />             </jms><br />          </properties>      <br />     </destination>     <br /><br />and have flex consumer client subscribed destination 'mievents' jms events.<br /><br />i've enabled debug , found error in log console. dont know how rid of error.<br /><br />info: [blazeds] [debug] deserializing amf/http request<br />version: 3<br />  (message #0 targeturi=null, responseuri=/2)<br />    (array #0)<br />      [0] = (typed object #0 'flex.messaging.messages.commandmessage')<br />        operation = 0<br />        correlationid = ""<br />        destination = "mievents"<br />        clientid = null<br />        headers = (object #1)<br />          dsendpoint = "polling-amf"<br />          dsid = "4c58bc25-6c0f-80c9-c544-e57dcc038664"<br />        body = (object #2)<br />        timetolive = 0<br />        messageid = "b7b3f995-b761-d005-f027-05e066427f20"<br />        timestamp = 0<br /><br />dec 5, 2008 12:10:39 pm org.apache.catalina.core.applicationcontext log<br />info: [blazeds] [info] jms consumer jms destination 'java:comp/env/jms/caafminotification' being removed jms adapter due following error: com.sun.messaging.naming.missingversionnumberexception<br />dec 5, 2008 12:10:39 pm org.apache.catalina.core.applicationcontext log<br />info: [blazeds] [info] jms consumer jms destination 'java:comp/env/jms/caafminotification' stopping.<br />dec 5, 2008 12:10:39 pm org.apache.catalina.core.applicationcontext log<br />info: [blazeds] [info] corresponding messageclient jms consumer jms destination 'java:comp/env/jms/caafminotification' being invalidated<br />dec 5, 2008 12:10:39 pm org.apache.catalina.core.applicationcontext

hi. looks there problem openmq configuration. don't think factory connection factory , topic should both pointing com.sun.messaging.naming.administeredobjectfactory.  


   

i'm not familar openmq documentation looks connection factory should using com.sun.messaging.naming.cfobjectfactory factory , topic should using com.sun.messaging.naming.tobjectfactory factory.

hope helps.

-alex


More discussions in Configuration and Getting Started


adobe

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code