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:
<Context docBase="${catalina.home}/webapps/samples" privileged="true"
antiResourceLocking="false" antiJARLocking="false">
<Transaction factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
</Context>

Note: If a context file already exists for your web application, simply add the <Transaction> 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 <Valve>)

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 <Context> entry for your flex application that includes the security Valve (or edit an existing Context to add the <Valve>). For example, for the samples WAR:
<Context path="/samples" docBase="${catalina.home}/webapps/samples" debug="0">
<Valve className="flex.messaging.security.TomcatValve4150"/>
</Context>


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 <security> section:
<security>
<login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat" />
...

(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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值