I am not getting why you are mentioning the
complete URI path in endpoint, can't we avoid
http://{server.name}:{server.port}/{context.root}/
Just say "/messagebroker/amf" the context root will
take from the browser URL.
<channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/a
mf " class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties> </channel-definition>
Please correct if I am wrong.
Thanks
--Suresh Akula
--- Peter Farland <[EMAIL PROTECTED]> wrote:
> Sorry, the J2EE context root as it would appear in
> the URL (i.e. this
> value will replace the token {context.root} at
> compile time based on the
> value of --context-root).
>
> e.g.
>
> --context-root=/dev
>
> Note that the other two tokens in the endpoint URL,
> {server.name} and
> {server.port} will be known at runtime if the SWF is
> loaded via a URL so
> these are replaced at runtime based on how the SWF
> is loaded.
>
> -----Original Message-----
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of aejaz_98
> Sent: Tuesday, April 25, 2006 3:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: (Flex20 Beta2): send
> failed for RemoteObject
>
> Thanks Peter. Please let me know how exactly to do
> that. Do you mean add
> --context.root C:\tomcat\webapps\flex while starting
> tomcat i.e.
>
> catalina start --context.root C:\tomcat\webapps\flex
>
> Is that right ?
>
> Thanks,
> Aejaz
>
> --- In flexcoders@yahoogroups.com, "Peter Farland"
> <[EMAIL PROTECTED]> wrote:
> >
> > Ah, yes, you need to specify --context.root on the
> command line as the
>
> > client can't tell what the context root is (i.e.
> because you can have
> > the default context root "" it can't make
> assumptions as to whether
> > the first level under the webroot is a
> subdirectory or a context
> root).
> >
> >
> >
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED]
> > On Behalf Of aejaz_98
> > Sent: Tuesday, April 25, 2006 1:59 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: (Flex20 Beta2): send
> failed for RemoteObject
> >
> > The detailed error message in this case is,
> >
> > Channel.Connect.Failed error
> > Netconnection.Call.Failed:HTTP:Failed
> >
> > My flex-remoting-service.xml looks as follows,
> >
> > <default-channels>
> > <channel ref="my-amf"/>
> > </default-channels>
> >
> > <destination id="EchoString">
> > <properties>
> >
> <source>samples.SimpleRemoteObject.Echo</source>
> > </properties>
> > </destination>
> >
> > & the channel "my-amf" is defined in
> flex-enterprise-services.xml as
> > follows,
> >
> > <channel-definition id="my-amf"
> > class="mx.messaging.channels.AMFChannel">
> > <endpoint
> >
>
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/a
> > mf
> > "
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> > <properties>
> >
> <polling-enabled>false</polling-enabled>
> > </properties>
> > </channel-definition>
> >
> > Thanks,
> > Aejaz
> >
> > --- In flexcoders@yahoogroups.com, "aejaz_98"
> <aejaz_98@> wrote:
> > >
> > > Hi Peter,
> > >
> > > Thanks for your reply & please disregard my
> previous message. I
> > > recompiled the application & now I am getting
> "send failed" error
> > > message. Can you please take a look at the mxml
> to see if anything
> > > is wrong. I am very new to mxml & might have had
> overlooked
> > > something obvious.
> > >
> > > Thanks,
> > > Aejaz
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> <mx:Application
> > > xmlns:mx="http://www.adobe.com/2006/mxml"
> xmlns="*"
> > > layout="absolute">
> > > <mx:Script>
> > > <![CDATA[
> > > import mx.rpc.events.*;
> > > import mx.collections.*;
> > > import mx.controls.*
> > >
> > > private function
> getNameHandler(event:ResultEvent):void
> > > {
> > > Result.text = event.result.toString();
> > > currentState='TargetState';
> > > }
> > >
> > > private function
> faultHandler(event:FaultEvent):void
> > > {
> > > Alert.show(event.fault.faultstring,
> "Error");
> > > }
> > > ]]>
> > > </mx:Script>
> > > <mx:states>
> > > <mx:State name="TargetState">
> > > <mx:RemoveChild child="{button1}"/>
> > > <mx:RemoveChild child="{formInput}"/>
> > > <mx:RemoveChild child="{label1}"/>
> > > <mx:AddChild position="lastChild">
> > > <mx:Label x="99" y="130" width="265"
> > height="28" id="Result"/>
> > > </mx:AddChild>
> > > </mx:State>
> > > </mx:states>
> > >
> > > <mx:RemoteObject id="SendStringBack"
> destination="EchoString"
> > > showBusyCursor="true"
> fault="faultHandler(event)">
> > > <mx:method name="getString"
> > result="getNameHandler(event)">
> > > <mx:arguments>
> > > <str>
> > > {formInput.text}
> > > </str>
> > > </mx:arguments>
> > > </mx:method>
> > > </mx:RemoteObject>
> > > <mx:TextInput x="119" y="129" id="formInput"/>
> > > <mx:Button x="119" y="170" label="Submit"
> fontSize="13"
> > id="button1"
> > > click="SendStringBack.getString.send()"/>
> > > <mx:Label x="119" y="86" text="What is your
> name ?" width="160"
> > > fontSize="15" id="label1"/>
> > > </mx:Application>
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Peter
> Farland" <pfarland@>
> wrote:
> > > >
> > > > You must always point --services to the top
> level services file,
> > > > which is flex-enterprise-services.xml. The
> > > > flex-remoting-service.xml
> >
> > > > is
> > merely
> > > > an include to this top level file (see the
> service-include tag
> > pointing
> > > > to this and the other services in the top
> level
> > > > flex-enterprise-services.xml file). It's ok to
> make changes to the
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.