Rank: Apprentice Coder Groups: Member
Joined: 9/28/2006 Posts: 22 Points: 0
|
Often I didn't have the Weborb and related PHP code on my localhost and so I had to compile the project with the endpoint hardcoded to a remote server that did. Then I'd have to remember to change the services-config.xml file and recompile - WHAT A PAIN! Here's my solution, let me know if this would cause problems:
- I setup a flex project and added a RemoteObject. - I'm using the GenericDestination for my destination. - I've added the RemoteClass metadata to the top of all my valu eobject classes in flex. - I've updated the weborb-config.xml to have all the server-client class mappings. - I deleted the parameter on the compiler options of my project that pointed to the services-config.xml file. - I don't need to set anything in my flex server settings, but I do need the fds.swc in my library build path - I added the endpoint="/Weborb/index.php" parameter to the RemoteObject.
Everything works great and now I don't have to manage those WEB_INF blah blah blah XML files in my version control and in my FB project!
Also, I've made the endpoint property to get set at runtime. It gets read in from an XML configuration file and now I can repoint my remoting gateway without recompiling! Great for debugging and developing on mulitple servers.
|