Hi,

I have a strange problem - hopefully someone might be able to figure
out what's wrong...

First, I'm using Flex 3 beta (Eclipse 3.2+WTP1.5), LiveCycle 2.5,
JBoss 4.02.

So here's what I do...

I use the Flex 3 'create application from database' (if you've not
used it yourself, don't give up on me - the problem is almost
certainly unrelated to this step!) to create a flex 3 livecycle app
from the wizard. This runs fine!

I then run it again, against a different table. Again, the second app
is fine.

But when I try to combine the two applications (obviously renaming
variables on both sides to avoid a clash), one of the dataservices
runs absolutely fine but when I try to use the other, I get:

'Destination 'SIM_USER_REPORT_PAGESJava' either does not exist or the
destination has no channels defined (and the application does not
define any default channels.)'

But this destination is defined in the same data-management-config.xml
as the one that is working - and they're both using the same channel -
so I know that channel both exists and works!

Any ideas why the second service won't work when combined with the
first? I've listed the data-management-config.xml below in case it
helps...

Thanks,

Jamie.

<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service" class="flex.data.DataService">
 <adapters>
  <adapter-definition id="actionscript"
class="flex.data.adapters.ASObjectAdapter" default="true"/>
  <adapter-definition id="java-dao"
class="flex.data.adapters.JavaAdapter"/>
 </adapters>

 <default-channels>
  <channel ref="my-rtmp"/>
 </default-channels>

 <destination id="SIM_USER_REPORTSJava">
  <adapter ref="java-dao"/>
                        
  <properties>
   <use-transactions>true</use-transactions>
   <source>com.db.storage.dao.SIM_USER_REPORTSAssembler</source>
   <scope>application</scope>
   <cache-items>false</cache-items>
                        
   <metadata>
    <identity property="REPORT_ID"/>
   </metadata>
                        
   <network>
    <session-timeout>0</session-timeout>
    <paging enabled="false" pageSize="5"/>
    <throttle-inbound max-frequency="500" policy="ERROR"/>
    <throttle-outbound max-frequency="500" policy="REPLACE"/>
   </network>
  </properties>   
 </destination>
        
 <destination id="SIM_USER_REPORT_PAGESJava">
  <adapter ref="java-dao"/>             
   <properties>
    <use-transactions>true</use-transactions>
    <source>com.db.storage.dao.SIM_USER_REPORT_PAGESAssembler</source>
    <scope>application</scope>
    <cache-items>false</cache-items>
                        
    <metadata>
     <identity property="REPORT_ID"/>
    </metadata>
                        
    <network>
     <session-timeout>0</session-timeout>
     <paging enabled="false" pageSize="5"/>
     <throttle-inbound max-frequency="500" policy="ERROR"/>
     <throttle-outbound max-frequency="500" policy="REPLACE"/>
    </network>
   </properties>   
  </destination>
</service>

Reply via email to