Could you please help me to improve flex skill and flex with java skill Thanks&Regards, Gerald A
On Fri, Nov 26, 2010 at 4:21 PM, Jitendra Jain < warriorofheavens...@gmail.com> wrote: > Here BlazeDs/LCDS already defines the Java adapters in remoting-config.xml. > Here the Object is serialized/de serialized using the channels... > > > On Fri, Nov 26, 2010 at 3:10 PM, Gerald Anto Fernando < > flex.gerald.a...@gmail.com> wrote: > >> hi jitendra yes i have defined. >> i am not that much level knowledge about it am also studing . >> >> *but* >> *the following is my remoting-config.xml* >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> <service id="remoting-service" >> >> class="flex.messaging.services.RemotingService"> >> >> <adapters> >> >> <adapter-definition id="java-object" >> class="flex.messaging.services.remoting.adapters.JavaAdapter" >> default="true"/> >> >> </adapters> >> >> <default-channels> >> >> <channel ref="my-amf"/> >> >> </default-channels> >> >> <destination id="CreatingRpc"> >> >> <properties> >> >> <source>com.adobe.remoteobjects.RemoteServiceHandler</source> >> >> <scope>application</scope> >> >> </properties> >> >> <adapter ref="java-object"/> >> >> </destination> >> >> </service> >> >> *the following is my mxml code* >> >> <?xml version="1.0" encoding="utf-8"?> >> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >> layout="absolute"> >> >> <mx:Script> >> >> <![CDATA[ >> import mx.rpc.events.ResultEvent; >> import mx.rpc.events.FaultEvent; >> >> import mx.controls.Alert; >> >> ]]> >> >> </mx:Script> >> <!-- >> <mx:RemoteObject id="remObj" label="Remote" destination="CreatingRpc" >> fault="errorHandler(event)" showBusyCursor="true"> >> <mx:method name="getResults('Sujit')" result="onArtResult(event)"/> >> </mx:RemoteObject> >> --> >> >> <mx:RemoteObject >> >> id="remObj" >> >> destination="CreatingRpc" >> >> showBusyCursor="true" >> >> result="Alert.show(event.result.toString());" >> >> fault="Alert.show(event.fault.faultString);" >> >> /> >> >> <mx:Button id="remoteService" label="Remote Service" >> click="remObj.getResults('Gerald Fernando');"/> >> >> </mx:Application> >> >> *the following is my java code* >> >> package com.adobe.remoteobjects; >> import java.util.Date; >> public class RemoteServiceHandler { >> >> public static void main(String args[]) >> { >> System.out.println("Example of RemoteServiceHandler"); >> } >> public RemoteServiceHandler() >> { >> } >> public String getResults(String name) >> { >> String result = null; >> result = "Hi " + name + ", this is a service and the time now is : " + >> new Date(); >> return result; >> } >> >> } >> >> *Root Folder* : C:\Program Files\Tomcat\webapps\MyApplication >> *Root Url *: http://localhost:8080/MyApplication/ >> *Context Root* : /MyApplication >> >> >> >> Thanks&Regards, >> Gerald A >> >> On Fri, Nov 26, 2010 at 2:09 PM, Jitendra Jain < >> warriorofheavens...@gmail.com> wrote: >> >>> Have you defined the adapters? If yes please share with others so that >>> they can also know.. >>> >>> Regards, >>> Jitendra Jain >>> >>> On Fri, Nov 26, 2010 at 1:32 PM, Gerald Anto Fernando < >>> flex.gerald.a...@gmail.com> wrote: >>> >>>> >>>> thank you friends, now flex-java is working fine. >>>> thanks for all >>>> >>>> >>>> On Wed, Nov 24, 2010 at 1:04 PM, Gerald Anto < >>>> flex.gerald.a...@gmail.com> wrote: >>>> >>>>> i used blaze ds to call java method. >>>>> but i got the following error please give me solution friends >>>>> >>>>> [MessagingError message='Destination 'CreatingRpc' either does not >>>>> exist or the destination has no channels defined (and the application >>>>> does not define any default channels.)'] >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Flex India Community" group. >>>>> To post to this group, send email to flex_in...@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>>> . >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/flex_india?hl=en. >>>>> >>>>> >>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> A Gerald >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Flex India Community" group. >>>> To post to this group, send email to flex_in...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/flex_india?hl=en. >>>> >>> >>> >>> >>> -- >>> Thanks and Regards, >>> JJain, >>> >>> If you have knowledge, let others light their candles in it --Margaret >>> Fuller: >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Flex India Community" group. >>> To post to this group, send email to flex_in...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/flex_india?hl=en. >>> >> >> >> >> -- >> Thanks & Regards, >> A Gerald >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Flex India Community" group. >> To post to this group, send email to flex_in...@googlegroups.com. >> To unsubscribe from this group, send email to >> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=en. >> > > > > -- > Thanks and Regards, > JJain, > > If you have knowledge, let others light their candles in it --Margaret > Fuller: > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to flex_in...@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- Thanks & Regards, A Gerald -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.