Olá pessoal,
Ainda numa aplicação Java + Flex, me deparei com um prob.
Rodo minha aplicação (no linux), e consigo executar as operações (serviços), sem problemas,
desde que eu teste no localhost, qdo tento acessar de um outro IP, dá erro, a n ser q eu defina
o ip no “endpoint”, mas daí eu ficaria limitado a uma rede.
No flex compiler eu tentei de tudo, a última estava assim:
-locale en_US -context-root "/orion" -services "/media/arquivos/projetos/orion/netbeans/orion/web/WEB-INF/flex/services-config.xml"
ObjectRemote:
<mx:RemoteObject id="srvConta" destination="srvConta" showBusyCursor="true" fault="onFaultHandler(event)"
endpoint="http://localhost:8080/orion/messagebroker/amf">
Parte do service-config.xml
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://localhost:8080/orion/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
<!--<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/> -->
</channel-definition>
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://localhost:8080/orion/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<!--<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/> -->
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
<channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="https://localhost:8080/orion/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
Erro:
channelSet = (mx.messaging::ChannelSet)#6
clientId = (null)
connected = false
defaultHeaders = (null)
destination = "srvConta"
id = "2CBC6049-7476-4008-3C07-D762DC46DE2C"
reconnectAttempts = 0
reconnectInterval = 0
requestTimeout = -1
subtopic = ""
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://localhost:8080/orion/messagebroker/amf"
failoverURIs = (Array)#11
id = (null)
mpiEnabled = false
netConnection = (flash.net::NetConnection)#12
client = (mx.messaging.channels::AMFChannel)#4
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://localhost:8080/orion/messagebroker/amf"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "http"
Alguém sabe onde estou vacilando?
Falew