So it sounds like you just want to put the FDS jar files at the EAR
level of your J2EE application.   That is possible with some caveats.
In 2.0.1 if you do that, the classes mentioned in your
services-config.xml file also have to live in the EAR level.  FDS uses
the class loader uses to load its classes to load any remote object
destinations, assemblers, etc.   I'm also not sure if the "web tier
compiler" also can be moved into the EAR level.. you might want to leave
the flex-webtier jar files where they are in the WAR and just move the
flex-messaging jars into the EAR level.  

 

One other thing is that if you have more than one WAR file which define
MessageBrokerServlet instances in this EAR, you'll end up creating
multiple message brokers, one for each web application.  Each message
broker will only support the destinations in its flex configuration.
But if you are going to have more than one MessageBroker, the second and
subsequent MessageBrokerServlets need an additional init-parameter the
"messageBrokerId".  This is just a string you use to identify that
MessageBroker.  If you use any of the static lookup methods to say push
messages to flex clients, you need to specify the message broker id in
those calls so you get the right one. 

 

In 2.5 (currently in beta) we have added the ability to specify a
different class loader so an FDS application can be made to refer to
classes which live in the WAR level.  There are some tricks to making
that work so if you need that for your use case let me know.

 

Jeff

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mister.kotter
Sent: Friday, March 16, 2007 8:17 AM
To: [email protected]
Subject: [flexcoders] FDS Configuration

 

I have the following configuration:

I am developing a multi-tiered J2EE application using Flex, Hibernate,
and Spring. I am using FDS and have it configured to talk to the
middle tier through AMF.

Everything is deployed in an EAR file and the Flex web application and
the FDS configurations are deployed in the same WAR file. This all
works great.

I have been reading the documentation and it seems like you can deploy
FDS separately from the Flex web application. Is this the case? 
Ideally I would like to deploy FDS in it's own WAR and have multiple
Flex applications in separate WARs that could all use the same common
FDS application.

So ideally it would be configured like this:

In an EAR file I would deploy Hibernate, Spring, and a WAR with the
FDS configuration that talks to my Spring middle tier through AMF. 
Then I would have additional WAR files that get deployed separately
that contain all the GUI components and Cairngorm framework that would
use the FDS application.

Is this possible?

Any help or insight on this would be appreciated.

 

Reply via email to