Issue Details (XML | Word | Printable)

Key: GDS-913
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Franck Wolff
Reporter: Walter Treur
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
GraniteDS

Autoreset RemoteObjects when serviceInitializer is set.

Created: 26/Aug/11 04:43 PM   Updated: 26/Aug/11 04:43 PM
Component/s: Tide
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
When using Tide in an AIR application it's sometimes necessary to modify the server address once a connection is already made (Or when a faulty connection is made). The server settings can be set using the ServiceInitializer:

Ejb.getInstance().addComponentWithFactory("serviceInitializer", DefaultServiceInitializer, {
  contextRoot: '/my-app',
  serverName: 'my-server',
  serverPort: 8080
});

However. When a connection is already established by the RemoteObject, modifying the serverInitializer doesn't effect the connection, because the RemoteObject should be disconnected first.

A workaround is to add an extra method to Tide to reset the RemoteObject:

public function resetConnection():void {
  if (_ro) {
    _ro.disconnect();
  }
  _ro = null;
}

Refer to https://groups.google.com/forum/#!topic/graniteds/wITFxXyXTYw for the corresponding thread.

There are no comments yet on this issue.