flex整合spring,hibernate思路

http://www.adobe.com/devnet/flex/articles/spring_flex_print.html
第一步,安装LiveCycle Data Service
第二步, 配置tomcat与flex通信
Tomcat
To use LiveCycle Data Services ES with Tomcat 5.5, you must install support for the Java Transaction API (JTA) and may also need to install several other libraries depending on the features that you plan to use. Follow these steps after deploying the LiveCycle Data Services WAR files:

Stop Tomcat.
To install support for JTA, a recommended implementation is the Java Open Transaction Manager (JOTM), which is a fully functional open source stand-alone transaction manager.
Download JOTM from http://jotm.objectweb.org/.
Copy the JAR files from jotm-root/lib to [tomcat-root]/common/lib.
Create a context file for your web application and register JOTM using the Transaction element, e.g. for the samples WAR create a [tomcat-root]/conf/Catalina/localhost/samples.xml file and add the following lines:
antiResourceLocking="false" antiJARLocking="false">



Note: If a context file already exists for your web application, simply add the element under the element.
Increase the maximum memory to at least 512MB. For Tomcat, this is achieved by specifying the maximum heap size for the JVM in the JAVA_OPTS variable:
-Xmx512m

(Optional) To enable custom authentication, locate the tomcat security resource libraries under install_root/resources/security/tomcat.
Depending on the version of Tomcat, follow one of these sets of instructions:
For Tomcat 5.5:
Put flex-tomcat-common.jar in common/lib
Place flex-tomcat-server.jar in server/lib (NOT shared/lib)
Copy context.xml in your web application under the META-INF directory (or adjust an existing context.xml to add the )

For Tomcat 5.0:
Put flex-tomcat-common.jar in common/lib
Place flex-tomcat-server-4150.jar in server/lib (NOT shared/lib)
Add a entry for your flex application that includes the security Valve (or edit an existing Context to add the ). For example, for the samples WAR:





You will now be authenticated against the current Tomcat realm. Usually, the default for this authentication stores user information in conf/tomcat-users.xml. See the Tomcat documentation for more information on realms. See the documentation for more information on LiveCycle Data Services custom authentication.
You may also need to update the active in /WEB-INF/flex/services-config.xml in each deployment of a LiveCycle Data Services WAR file. For Tomcat, ensure that the TomcatLoginCommand is active in the section:


...

(Optional) To use the JMSAdapter with the Message Service, you must install and configure a JMS provider (such as activeMQ or openJMS) for use with Tomcat.
(JDK 1.4.x Only) If you are using Tomcat 5.5 with JDK 1.4.x, LiveCycle Data Services ES requires an implementation of Java Management Extensions (JMX), which is not provided with JDK 1.4.x. You can download JMX from the Sun web site or use an open-source implementation, such as MX4J.
Restart Tomcat.

你可能感兴趣的:(flex整合spring,hibernate思路)