Note that for mxmlc you can provide the context root on the command line with --context.root. Flex Builder needs to make this a little more obvious for FDS apps.
Note that you don't _have_ to compile in configuration information, but if you didn't then you would instead have to programmatically create your own Channel instance(s) and ensure the channel-id and path info match the channel endpoint definitions on the server, add them to a ChannelSet and then set this ChannelSet instance on the client RemoteObject instance (i.e. through the channelSet:ChannelSet property). When getting started it should be easier to just point to a configuration file and have the client create all of this for you so that it matches the server... So, to repeat your setup to you, you have : Flex2 App --> SecureAMFChannel over HTTPS --> Apache with Connector to JRun4 --> FDS 2 Web App Now, your mention of JMS in this setup confuses me from your original post... are you using the JMSAdapter on the MessagingService, or perhaps trying to do this yourself from RemotingService, or am I missing how JMS is involved somewhere else? I'm not familiar with JRun4 connectors and Apache nor the JRunProxyService but I know of others who are... However, if you're saying that it works over normal HTTP based AMFChannel (i.e. non-secure) then something beyond FDS seems wrong. Can you turn on debug level logging in /WEB-INF/flex/flex-enterprise-services.xml and ensure the Endpoint.* category is being watched and look out for both CommandMessage request/response confirming the channel is connected and then the AsyncMessage or RemotingMessage being sent to whatever service is managing your destination and see whether all of the information arrived? -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Toth Sent: Tuesday, April 18, 2006 9:44 PM To: [email protected] Subject: [flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server? The SWF is also loaded over HTTPS, the same domain as the url for the secure amf endpoint. One part of the problem was that I didn't know the configuration files get compiled into the SWF (that still baffles me why you'd compile in configuration files). Once I recompiled with the updated config files it started attempting to access the secure amf endpoint. However, I had to change the config file to hardcode the context root - it was not interpreting the {context.root} in the endpoint definition. I found this out by seeing requests for //messagebroker/amfsecure in the Apache log. After that change it hits the secure amf endpoint, but it is still not working. When I run over a non-secure amf endpoint I see the JMS message in the server console window with the Value objects that are being sent over the wire. However, when I run over the secure amf endpoint I only see the JMS messages, no data. I'm guess something is not configured correctly on Apache, JRUN, Flex or all the above. I'm running Apache 2, with the mod_jrun20.so connecting to JRun through the JRunProxyService. I do not have the SSLService running on JRUN, and the JRunProxyService is not setup to run securely as it gave me issues about plain text connections when I tried. However, when I request the SWF over HTTPS the request is routed to JRUN through Apache and it comes back successfully. Also, I do see the JMS messages in the console window when accessing the secure amf endpoint, so it seems as though the Apache-JRun communication works for the HTTPS requests. Am I missing sometihng? I'm at a loss. Thanks. --- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> wrote: > > How are you loading your SWF? Are you loading it over HTTPS too? Is it > on the same domain as the secure AMF endpoint? > > Did you recompile your SWF with the updated configuration? Did you > restart the server with the updated configuration? > > How many channels are referenced under your RemotingService destination > (i.e. the one in flex-remoting-service.xml)? > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of sof4real03 > Sent: Monday, April 17, 2006 3:18 PM > To: [email protected] > Subject: [flexcoders] Can't user RemoteObject on HTTPS ONLY Server? > > I'm trying to get a Remote Object to work on an HTTPs only server (one > that does not accept HTTP connections). I have it working fine over a > regular HTTP connection. I then remove the AMF channel definition in the > flex-enterprise-services.xml and replace it with a SecureAMF channel > definition and update the destinations in the flex-remoting- service.xml > to use the SecureAMF channel. However, when I execute the SWF I see in > the web server logs that it is POSTing to messagebroker/amf not > messagebroker/amfsecure. Also, if I open up the server to allow HTTP > connections, but only configure SecureAMF channels I get the following > error: > > "No configured channel has an endpoint path '/messagebroker/amf" > > The stacktrace indicates it's coming from the > flex.messaging.MessageBroker.getEndPoint(MessageBroker.java:297). This > seems to indicate that the Flex Data Services cannot run on an HTTPS > only server. > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

