Download the .class file below and copy it to lcds\jrun4\servers\default\samples\WEB-INF\classes
Add the following lines of code to your source code
<!--Signature of executeSQL(DBname,Query) -->
<mx:RemoteObject id="sqlObj" destination="mysqladmin">
<mx:method name="executeSQL">
</mx:method>
</mx:RemoteObject>
Edit the following files
1. lcds\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml
Add the following entry
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://static IP:8700/samples/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
2. lcds\jrun4\servers\default\samples\WEB-INF\flex\remoting-config.xml
Add the following entry
<destination id="mysqladmin">
<properties>
<source>MySQLAdmin</source>
</properties>
</destination>
NOTE
1. LCDS server must be running
2. A static IP is required for LCDS to be used with AIR Applications
A peep into SAP
15 years ago
No comments:
Post a Comment