flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Fritze <marcus.fri...@googlemail.com>
Subject Re: get url or domain of requesting Flex app from a remote object
Date Wed, 02 Sep 2015 15:01:54 GMT
Take a look here:

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64e50-7ff8.html <http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64e50-7ff8.html>


> Am 02.09.2015 um 16:50 schrieb galapagos <eric.malalel@lynxonline.com>:
> I would like to know if it is possible to get the URL (or the domain) of the
> Flex application which calls a remote object, from that remote object.
> I have a Flex application which is accessed by different domains, and for
> each domain, the remote object must use a database whose name is the root of
> the domain name of the URL, such as 'sample1' if the remote object is called
> from the Flex application through URL 'sample1.mydomain.com/myapp', and
> 'sample2' if the remote object is called from the same Flex application
> through URL 'sample2.mydomain.com/myapp'
> I know I could use an argument that the Flex app could pass to the remote
> object, but this is legacy code and this would imply a huge amount of
> changes.
> If I could do it in the remote object which does the connection to the
> database, I would only have to change the getconnection call in that remote
> object.
> Please advise.
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/get-url-or-domain-of-requesting-Flex-app-from-a-remote-object-tp11123.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message