`
captain
  • 浏览: 135045 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

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.
分享到:
评论
1 楼 haizhilan 2011-12-13  
             [b][/b]

相关推荐

    Flex整合spring,hibernate

    Flex整合Spring和Hibernate是Web开发中的一个重要主题,它涉及到富客户端应用与后端服务的高效交互。Flex作为Adobe推出的富互联网应用程序(RIA)框架,提供了一种强大的方式来创建交互式、图形化的用户界面,而...

    flex整合spring,hibernate

    【Flex整合Spring与Hibernate】是将富客户端技术Flex与企业级框架Spring和持久层框架Hibernate进行集成,以实现更高效、灵活的Web应用程序开发。在这样的集成中,Flex作为前端展示层,Spring作为业务逻辑层,而...

    flex+Spring+Hibernate整合配置详解

    Flex+Spring+Hibernate 整合是企业级应用开发中常见的一种技术栈组合,它结合了Flex前端的富互联网应用程序(RIA)开发能力、Spring框架的依赖注入和事务管理功能,以及Hibernate持久化框架的数据库操作便捷性。...

    flex与spring hibernate的整合

    将Flex、Spring和Hibernate整合在一起,能够构建出既有强大后端数据处理能力,又有丰富前端交互体验的应用。 整合Flex、Spring和Hibernate的关键在于实现后端服务调用与前端展示的无缝连接。以下是一些关键知识点:...

    flex+Spring+Hibernate+Cairngorm+BlazeDS+Spring BlazeDS Integration整合框架

    使用flex 4.5 + Spring 3.0 + Hibernate 3.3 + Cairngorm 2.2.1 + BlazeDS 3.3.0 + Spring BlazeDS Integration 1.0.3整合出的一个登录的小demo·

    Flex+spring+hibernate示例

    Flex+Spring+Hibernate示例是一种常见的企业级应用架构,它结合了Adobe Flex前端技术、Spring后端框架和Hibernate持久层框架,以构建高效、灵活且易于维护的Web应用程序。在这个示例中,开发者可能已经展示了如何...

    FLex整合hibernate spring

    本文主要讲解了如何将Adobe Flex、Spring和Hibernate这三种技术进行整合,构建一个强大的前端与后端交互的Web应用程序。 首先,我们要理解这三个技术的基本概念。Flex是一种用于创建富互联网应用程序(RIA)的前端...

    flex,spring,hibernate

    偌大的一个csdn竟然都没有发现一个完整的整合版flex,spring,hibernate。无奈之下自己经过一个半的努力实现了flex调用springAOP管理的java方法,项目中也有我写好的hibernate方法。

    spring+hibernate+flex整合

    以上就是Spring、Hibernate和Flex整合的基础知识和搭建步骤,对于初学者来说,这是一个很好的起点,能够帮助他们理解这些技术的协同工作方式,并为更复杂的项目打下基础。通过不断地实践和学习,开发者可以逐步掌握...

    hibernate+flex+spring 整合,hibernate+flex+spring 集成

    在IT行业中,整合Hibernate、Flex和Spring框架是一个常见的任务,以构建高效、用户交互性强的Web应用程序。这个组合允许开发者利用Hibernate的ORM能力处理数据库操作,Flex的富互联网应用程序(RIA)界面,以及...

    flex+hibernate+Spring

    整合 Flex、Hibernate 和 Spring 的目标是构建一个前端界面精美、后端数据处理强大的Web应用。下面我们将详细介绍这个整合过程: 1. **Flex与Spring的整合**: - 使用Spring BlazeDS Integration项目,它提供了...

    PureMVC Flex BlazeDS Spring Hibernate.doc

    PureMVC Flex BlazeDS Spring Hibernate 框架整合开发

    flex整合spring的例子

    Flex与Spring的整合是将富客户端(Flex)与企业级后端服务(Spring)结合,以实现更高效、更灵活的Web应用开发。这个例子旨在展示如何在Flex前端与Spring后端之间建立通信,以便利用Spring框架的强大功能,如依赖...

    Flex+Spring+Hibernate整合

    整合Flex Spring Hibernate开发。网上资源,非原创。拿来共享,希望对大家有所帮助。

    flex spring hibernate jar

    在“描述”部分,由于提供的信息为空,我们无法获取更多具体细节,但我们可以假设这个压缩包可能是为了整合Flex、Spring和Hibernate这三个技术。这通常意味着开发者可能在构建一个后端使用Spring和Hibernate,前端...

    Flex blazeds spring hibernate 增删改

    标题中的“Flex blazeds spring hibernate 增删改”揭示了这个压缩包文件包含的是关于使用Adobe Flex、BlazeDS、Spring和Hibernate技术进行Web应用开发的相关内容。这四个技术是Java EE领域中用于构建富互联网应用...

    Flex4与Spring Hibernate整合的项目(直接MyEclipse下导入)

    Flex4与Spring Hibernate整合的项目是现代Web应用开发中的一个重要技术组合,旨在提供富客户端(Rich Internet Application,RIA)体验并实现后端服务的有效管理。这个项目直接在MyEclipse集成开发环境中导入,方便...

    Flex+Spring+Hibernate 环境

    Flex+Spring+Hibernate环境是基于Adobe Flex前端、Spring框架作为服务层、Hibernate作为持久层的集成开发环境。这种组合在Web应用开发中被广泛应用,因为它提供了丰富的用户界面、强大的业务逻辑处理以及高效的...

    Flex+spring+hibernate整合视频学习交流part_2

    标题 "Flex+Spring+Hibernate整合视频学习交流part_2" 提示我们这是一段关于将Flex、Spring和Hibernate这三个技术框架整合使用的视频教程的第二部分。这个整合是为了解决前端用户界面、业务逻辑层和服务数据访问层...

    Flex+spring+hibernate

    通过以上分析,我们可以看出Flex+Spring+Hibernate的整合提供了强大的功能,支持复杂的业务场景,并且降低了开发难度,提高了开发效率。然而,也需要注意到,这种组合可能带来的学习曲线较陡峭,以及在大型项目中...

Global site tag (gtag.js) - Google Analytics