ejb

T3 client with custom SSLSocketFactory

一笑奈何 提交于 2019-12-31 05:37:07
问题 I have my T3 client code like this: private InitialContext initContext() { Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); p.put(Context.PROVIDER_URL, context.providerURL); for (Map.Entry<String, String> entry : getEnvironmentProperties().entrySet()) { p.put(entry.getKey(), entry.getValue()); } InitialContext res = null; try { res = new InitialContext(p); } catch (NamingException e) { e.printStackTrace(); } return res; } My t3

Import javax.ejb.Schedule cannot be resolved

寵の児 提交于 2019-12-31 05:12:34
问题 I have a problem, eclipse say that it cannot found javax.ejb.Schedule (or Schedules) but no problem with other class like javax.ejb.MessageDriven. I work on a very big application that I don't really know. So my question is how to resolve this? Or a way to look for? 回答1: JBoos 4 is a JEE5 compliant Server, hence JEE6 features are not available. 来源: https://stackoverflow.com/questions/24448063/import-javax-ejb-schedule-cannot-be-resolved

How to inject EJB with @WebServiceRef from Web-module

谁都会走 提交于 2019-12-31 04:11:07
问题 I have a JEE6 application, with an ejb and a web-module, running on a GlassFish 3.1.1 Now I wanted to access a WebService (JAX-WS) by injecting it (as a Session Bean) into several Managed Beans. @Stateless public class AnyService implements AnyServiceLocal { @WebServiceRef(wsdlLocation = "META-INF/wsdl/AnyService/Any.wsdl") private AnyService service; @Override public String findLastname(Integer key) { Any port = service.getAnyPort(); AnyPerson sp = port.findAnynumber(key); return sp

How to inject EJB with @WebServiceRef from Web-module

落花浮王杯 提交于 2019-12-31 04:10:01
问题 I have a JEE6 application, with an ejb and a web-module, running on a GlassFish 3.1.1 Now I wanted to access a WebService (JAX-WS) by injecting it (as a Session Bean) into several Managed Beans. @Stateless public class AnyService implements AnyServiceLocal { @WebServiceRef(wsdlLocation = "META-INF/wsdl/AnyService/Any.wsdl") private AnyService service; @Override public String findLastname(Integer key) { Any port = service.getAnyPort(); AnyPerson sp = port.findAnynumber(key); return sp

Spring详解(一)------概述

余生颓废 提交于 2019-12-30 16:15:09
  本系列教程我们将对 Spring 进行详解的介绍,相信你在看完后一定能够有所收获。 1、什么是 Spring ?   Spring是一个开源框架,Spring是于2003 年兴起的一个轻量级的Java 开发框架,由Rod Johnson 在其著作Expert One-On-One J2EE Development and Design中阐述的部分理念和原型衍生而来。它是为了解决企业应用开发的复杂性而创建的。框架的主要优势之一就是其分层架构,分层架构允许使用者选择使用哪一个组件,同时为 J2EE 应用程序开发提供集成的框架。Spring使用基本的JavaBean来完成以前只可能由EJB完成的事情。然而,Spring的用途不仅限于服务器端的开发。从简单性、可测试性和松耦合的角度而言,任何Java应用都可以从Spring中受益。Spring的核心是控制反转(IoC)和面向切面(AOP)。    简单来说,Spring是一个分层的JavaSE/EE full-stack(一站式) 轻量级开源框架。 2、Spring 起源   Rod Johnson 在2002年编著的《Expert one on one J2EE design and development》一书中,对Java EE 系统框架臃肿、低效、脱离现实的种种现状提出了质疑,并积极寻求探索革新Spring Logo之道

Weblogic EJB connection to external Tibco EMS JMS Queue

痞子三分冷 提交于 2019-12-30 07:34:11
问题 I'm trying to connect a Weblogic (10.3) MDB to a Tibco EMS JMS queue. I've read from the queue using a simple Java/Spring JNDI connection so I know the foreign JNDI lookup names are valid. My WL foreign server details: JNDI Initial Context Factory: com.tibco.tibjms.naming.TibjmsInitialContextFactory JNDI Connection URL: tcp://ems-dit-am-uat-1.app.xxx.net:30055 JNDI Properties: java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory java.naming.provider.url=tcp://ems

Relationship between EJB 3.0 and JPA?

淺唱寂寞╮ 提交于 2019-12-30 00:54:10
问题 That may seem obvious but I've seen contradictory statements: Is JPA part of EJB 3.0? I'm no specialist and it's quite confusing for me. If so, JPA manipulates Entity Beans? These entity beans being the interface between the persistence layer and the business layer implementing the logic with stateless beans? The underlying question for me is how to implement a "search for user based on various criteria" function, where the "search" request -its string representation- should be built? I mean,

No entity found for query Exception

自闭症网瘾萝莉.ら 提交于 2019-12-30 00:54:07
问题 I am executing the following lines: String queString = "some query string" Query q1 = em.createNativeQuery(queString, T03CallsLog.class); T03CallsLog newCall; newCall = (T03CallsLog) q1.getSingleResult(); //this line cause the exception after the first time weird situation. if I only execute it with one instance it works fine, but if I do it parallel with more then one instance(mdb's) then the first one is executed without any exceptions, and all the rest get this error: 10:04:50,750 ERROR

Spring第一章-IOC

落爺英雄遲暮 提交于 2019-12-29 13:21:59
文章目录 Spring第一章-IOC 一、spring的概述 二、spring的EJB的区别(了解) 三、耦合和解耦 四、解耦代码--自定义IOC(了解) 六、控制反转-- 自定义IOC(了解) 六、spring的IOC入门(掌握) 七、IOC的细节 1、容器对象的类结构图 2、getBean方法(掌握) 3、bean对象的范围和生命周期(掌握) 4、实例化bean的三种方法 5、依赖注入(掌握) 6、构造方法注入(掌握) 7、set方法注入属性(常用)(掌握) 8、p名称空间注入:基于set方法注入--- 了解 9、注入集合属性(掌握) 八、作业 Spring第一章-IOC 一、spring的概述 1. spring 的 开源的轻量级框架 2. spring的两大核心:IOC ,AOP 二、spring的EJB的区别(了解) 1. EJB可以说像是一个Web Service,但也不完全是,比如EJB将编写好的业务组件放置在EJB容器上,然后提供接口给客户端访问;但是功能不仅限如此,EJB标准中提供了很多规范等,而这些规范只有在EJB容器才能正常运行。 EJB重量级框架 2. Spring容器取代了原有的EJB容器,因此以Spring框架为核心的应用无须EJB容器支持,可以在Web容器中运行。 Spring容器管理的不再是复杂的EJB组件,而是POJO(Plain Old Java

javax.security.sasl.SaslException: Authentic Failed while connecting to Jboss 7 server from remote client

坚强是说给别人听的谎言 提交于 2019-12-29 06:17:27
问题 I have standalone Java client(Running from within eclipse ) that I wish to connect to an external server . If the server is localhost then i see no problems at all . However whenever i try to connect to the external server where I always gets the following exception - JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed - Could not register a EJB receiver for connection to remote://10.160.148.61:4447