This content has been marked as final. Show 6 replies
I know this is confusing, so here are some options. But first - DO NOT install Flex Data Services into ColdFusion. There's no point and not worth the trouble.
Option 1: Install standalone CF; install JRun separately and install FDS as a J2EE app in JRun.
Option 2: Install JRun; install CF multi-server into JRun; install FDS as J2EE app in same JRun.
Option 3: Install CF with JRun option; install FDS with JRun option (embedded JRun as we call it). Yes, you have 2 JRun servers going, but that's OK.
Options 1 and 2 are suitable for production environment; Option 3 is not as it has limited connectivity and no support for clustering.
So take a step back and make it as simple as possible. I personally favor #1, but #2 is a close second (pun intended).
Thanks Peter. That helps. Now a couple other questions come to mind.
I think I like option 2 better but I don't have access to JRun to install it separately. The only way I can install it is to install it along with CF or FDS so option 1 seems like the way to go.
I'll have to do a bit of uninstalling/reinstalling to make it happen. As I'm reinstalling, are there any installation points I need to keep in mind or is a default install the way to go? I just don't want to jump through a bunch of hurdles to get CF and FDS to communicate with each other after I install them. Will I still have to modify server xml files to get things working? If so, what do I need to know to make those changes.
Are there any drawbacks to using this configuration option over the others? I'm not altogether opposed to buying JRun if option 2 makes more sense from an available features standpoint. I just don't want to have to do all of this over again later to take full advantage of the features available within FDS.
Thanks again for helping me understand this a little better.
The embedded JRun that comes with FDS is fine for development. But for production you'll probably want more than 5 simultaneous users. There are other restrictions on the embedded JRun, too, but I can't think of them off the top of my head.
Install using the defaults, best way to go. For CF, make sure install the 7.0.2 updater as it adds ActionScript 3 capability to the Flash Remoting gateway in CF - otherwise you won't be able to use Flex 2 nor FDS with CF.
I just discovered the free JRun developer download which should make option 2 a possibility. Right? If I install it first, then install CF into it, how would I then install Flex into JRun? If I recall correctly, this is a little more involved than just running the installer. Also, is the ear or war option the way to go with CF? Is that even an option with Flex?
I don't want to make this more complicated than it needs to be. I'm just so frustrated at this point that if this doesn't work this time, I'll have to give up. I can't afford to spend any more time on it. If I can just get it installed correctly, I can get back to the development side which is where I'm comfortable.
Download JRun and install it. It will go into C:\JRun4. Then install CF and pick the multi-server option. It has been so long since I've installed CF that I don't remember if it asks you where (eg, use an existing JRun) to put it, but let's assume it does for now :-)
Then you install FDS into JRun. This is pretty easy: start the JRun Administration Console and you'll see "Create Server" near the top of the page. Give it a name like "fds" and let the rest of the parameters default (or remain blank).
The go to the file browser and find the FDS installation (eg, c:\fds2) and look for the flex.war file. Open it using WinZip or something that can read archive files. Extract the files into the new JRun server you created like this:
For example, if you decided to call the new server fds, then you'll have a directory structure like this:
Create a directory under that, say "flex" so now you have: c:\jrun4\servers\fds\flex
This is the directory into which you extract the flex.war file. When you are done you should this directory:
Now you have Flex Data Services installed in JRun as well as ColdFusion.
If you want to also try the FDS samples, create a sibling directory to the flex one, for example: c:\jrun4\servers\fds\samples and extract samples.war into that directory.
Thank you very much Peter. That's exactly what I needed.