1 Reply Latest reply on Jan 3, 2008 7:15 AM by SriScape

    Configuration Problem

      Hi everybody!

      I'm developing a java-flex based application, with Hibernate on the persitence layer, LifeCycle Data Services for the data management bridge, Flex 3 and Tomcat.
      I'm having the following problem: I configured the data-management-config.xml for using hibernate, as it look like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <service id="data-service"

      <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter" default="true"/>
      <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter"/>

      <channel ref="my-rtmp"/>

      <destination id="cliente.hibernate">
      <adapter ref="java-dao" />
      <!--This is the unique identifier from the hibernate-entity bean -->
      <identity property="id"/>
      <paging enabled="false" pageSize="10" />
      <throttle-inbound policy="ERROR" max-frequency="500"/>
      <throttle-outbound policy="REPLACE" max-frequency="500"/>

      and on my main application file, I configured my Data Service like this:

      <mx:DataService id="hibernate" destination="cliente.hibernate" fault="handleFault(event)" autoCommit="true" />

      When I run the app, I get the following error:

      body = (null)
      clientId = "88A7286C-B62A-6234-34EB-1D36CD867103"
      correlationId = "8957022A-3A2D-A41D-8E54-1D36CEBE9CEC"
      destination = "cliente.hibernate"
      extendedData = (null)
      faultCode = "Server.Processing"
      faultDetail = (null)
      faultString = "No destination with id 'cliente.hibernate' is registered with any service."
      headers = (Object)#1
      messageId = "6E52CF57-AD38-379D-43E8-A96E55258626"
      rootCause = (null)
      timestamp = 1198786006781
      timeToLive = 0

      Trying to do some test, I realized that if I change the destination on the mxml, pointing to something that doesn't exists, I get this error:

      [MessagingError message='Destination 'clienteT.hibernate' has no channels defined and the application does not define any default channels.'][...](and all the stack trace)

      It appears like they are linked, but there's something missing.

      Any ideas?