`
ycljf86
  • 浏览: 74332 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

spring with ejb3

    博客分类:
  • java
阅读更多
由于项目需要
EJB3获取spring的上下文然后访问其中定义的bean
在调ejb方法前放置一个拦截器,他会读对应的配置文件然后咱如spring的上下文。这样我们就可以在ejb中用spring的bean了。获得的上下文是singleton的。
待会附上源代码。。。
spring3.0.5
spring2.5.6会有bug跑不起来。
跑下ant文件,会在build文件夹中打个ear的包。部署到websphere中就可以了。
分享到:
评论

相关推荐

    EJB3.0 + Struts1.3 + Spring2.0 + JPA

    软件架构: EJB3.0 + Struts1.3 + Spring2.0 + JPA 应用服务器: Jboss5.1 数据库用: Oracle9i 部署前将 demo-service.xml和oracle-ds.xml copy到jboss deploy目录下,配置到你的环境下即可 -- Create sequence ...

    Spring Recipes: A Problem-Solution Approach, Second Edition

    With over 3 Million users/developers, Spring Framework is the leading “out of the box” Java framework. Spring addresses and offers simple solutions for most aspects of your Java/Java EE application ...

    spring-framework-3.0.0.M4-with-docs

    org.springframework.context-3.0.0.M4.jar: 提供在基础IoC功能上的扩展服务,此外还提供许多企业级服务的支持,如邮件服务、任务调度、JNDI定位、EJB集成、远程访问、缓存以及各种视图层框架的封装等 org.spring...

    Spring in Action-4th edition.pdf

    turned out very differently had Spring not challenged earlier versions of the EJB spec. But Spring itself continues to evolve and improve upon itself, always seeking to make the difficult development ...

    spring-framework-3.1.0.RELEASE-with-docs

    Spring是一个开源框架,它由Rod...Spring使用基本的JavaBean来完成以前只可能由EJB完成的事情。然而,Spring的用途不仅限于服务器端的开发。从简单性、可测试性和松耦合的角度而言,任何Java应用都可以从Spring中受益。

    spring in action 4

    The Spring Framework was created with a very specific goal in mind—to make devel- oping Java EE applications easier. Along the same lines, Spring in Action, Fourth Edition was written to make ...

    .Advanced.Java.EE.Development.with.WildFly.1783288906

    Discover how to use EJB 3.x, JSF 2.x, Ajax, JAX-RS, JAX-WS, and Spring with WildFly 8.1 A practical guide filled with easy-to-understand programming examples to help you gain hands-on experience with ...

    pro Spring

    Learn how to replace common EJB features with Spring alternatives, including Spring's comprehensive AOP-based transaction management framework. Learn to integrate and use these other open source ...

    Pro Spring 5(Apress,5ed,2017).pdf

    Master Spring basics and core topics, and share the authors’ insights and real–world experiences with remoting, Hibernate, and EJB. Beyond the basics, you’ll learn how to leverage the Spring ...

    Pro Spring 5, 5th Edition

    Master Spring basics and core topics, and share the authors’ insights and real–world experiences with remoting, Hibernate, and EJB. Beyond the basics, you'll learn how to leverage the Spring ...

    Spring-Reference_zh_CN(Spring中文参考手册)

    2. Spring 2.0 的新特性 2.1. 简介 2.2. 控制反转(IoC)容器 2.2.1. 更简单的XML配置 2.2.2. 新的bean作用域 2.2.3. 可扩展的XML编写 2.3. 面向切面编程(AOP) 2.3.1. 更加简单的AOP XML配置 2.3.2. 对@AspectJ 切面的...

    Spring 实践(Spring in Practice).pdf版本

    wide variety of third-party libraries—proved to be more effective than J2EE with EJB. JEE closed the gap by adopting key elements of that approach. That Spring simplifies development without itself ...

    Advanced.Java.EE.Development.with.WildFly.1783288906

    Discover how to use EJB 3.x, JSF 2.x, Ajax, JAX-RS, JAX-WS, and Spring with WildFly 8.1 A practical guide filled with easy-to-understand programming examples to help you gain hands-on experience with ...

    Agile.Java.Development.with.Spring.Hibernate.and.Eclipse-part3

    Agile Java™ Development With Spring, Hibernate and Eclipse is a book about robust technologies and effective methods which help bring simplicity back into the world of enterprise Java development....

    Spring Boot实战 ,丁雪丰 (译者) .pdf

    世界”(it’s a small world)、“与林肯先生共度的伟大时刻”(Great Moments with Mr. Lincoln)以 及“文明演进之旋转木马”(Carousel of Progress)。 ① 所有这三样东西随后都搬进了迪士尼乐园和 迪士尼世界...

    Agile.Java.Development.with.Spring.Hibernate.and.Eclipse

    Agile Java™ Development With Spring, Hibernate and Eclipse is a book about robust technologies and effective methods which help bring simplicity back into the world of enterprise Java development....

    spring培训学习笔记

    从服务上讲(With a service abstraction),它将程序代码从J2EE环境解耦到普通的java对象(自然,这些代码可以脱离J2EE而在多种环境中运行)。它还在很多功能上提供了除EJB之外的选择――比如为所有的POJO提供声明式...

    getting started with jboss

    We work through how to expose EJB methods from the Duke’s Bank application through web servies and then call them with a Java SOAP client. Configuration of databases is an important issue and this ...

Global site tag (gtag.js) - Google Analytics