Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道普遍的共识是使用其中一个,但是我们有一个特定的任务,我们想在无状态的 ejb 计时器中使用我们的 spring 服务。
是否有从我的网络应用程序的正常流程之外获取弹簧服务的标准方法?(注意我使用的是stripes框架,它内置了spring支持,我正在使用这个内置支持来正常访问我的spring服务)
根据 Spring 手册,您可以配置一个EJB 3 注入拦截器,该拦截器将负责将 @Autowired springbeans 注入您的 EJB 会话 Beans。