Welcome Guest Search | Active Topics | Members | Log In | Register

Is a Flex Data Services project and services-config.xml really required for Weborb? Options · View
kevinhammer
Posted: Saturday, February 10, 2007 9:55:32 AM
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.076 seconds.