hi Brennan,
I tried putting the code in the remoting-config.xml which is in C:\fds2\jrun4\servers\default\flex\WEB-INF\flex folder....
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="ClassName" >
<properties>
<source>com.domain.ClassName </source>
<scope>application</scope>
</properties>
</destination>
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="ClassName" >
<properties>
<source>com.domain.ClassName </source>
<scope>application</scope>
</properties>
</destination>
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<channel ref="my-amf"/>
</default-channels>
</service>
I also used the folowing code in my mxml file
<mx:RemoteObject id="LoginCheck" source="Loginchk" destinationfiltered= "ClassName" >
<mx:method name="getValid">
</mx:method></mx:RemoteObject>
<mx:method name="getValid">
</mx:method></mx:RemoteObject>
I used this procedure to call the remote object
public function getConnection():void{
LoginCheck.getValid.send(1,"xxxx")
}
LoginCheck.getValid.send(1,"xxxx")
}
When i run the application i'm getting a blank screen.....my class file is in this folder
C:\fds2\jrun4\servers\default\flex\WEB-INF\classes\com\domain\ClassName
Please help....
Thanks.....
dreuimar <[EMAIL PROTECTED]> wrote:
dreuimar <[EMAIL PROTECTED]> wrote:
You need to make a destination for it in remoting-config.xml
e.g.:
<destination id="ClassName">
<properties>
<source>com.domain.ClassName </source>
<scope>application</scope>
</properties>
</destination>
(file would be in: /WEB-INF/classes/com/domain/ ClassName)
in your mxml:
<mx:RemoteObject id="myRO" destination="ClassName" />
to call your RO:
myRO.method();
Brennan
--- In [EMAIL PROTECTED]ups.com , Madhuri Chamarty
<madhuri.chamarty@...> wrote:
>
> hi,
>
> I want to use the Remote Object for sending and receiving data.
I'm using java jdbc connectivity for that purpose of connecting to the
DB. I have placed my class files into the
C:\fds2\jrun4\servers\default\ flex\WEB- INF\classes folder .
> I want to know how i can use Remote Object for getting my data to be
displayed on my mxml file..i tried it but was not working. Could u
please send me the code of how i can get the data.
>
> kindly help its urgent :(
>
> Thank u
>
>
>
> --------------------- --------- ---
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.
Great rates starting at 1ยข/min.
>
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

