- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.openejb.server.webservices.WsService
类的一些代码示例,展示了WsService
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsService
类的具体详情如下:
包路径:org.apache.openejb.server.webservices.WsService
类名称:WsService
暂无
代码示例来源:origin: org.apache.openejb/tomee-webservices
@Override
public void afterApplicationCreated(AppInfo appInfo, WebAppInfo webApp) {
// required for Pojo Web Services because when Assembler creates the application
// the CoreContainerSystem does not contain the WebContext
// see also the start method getContainerSystem().addWebDeployment(webContext);
WsService component = SystemInstance.get().getComponent(WsService.class);
if (component == null) return;
component.afterApplicationCreated(webApp);
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
destroyEjbWsContainer(enterpriseBean.ejbDeploymentId);
destroyPojoWsContainer(portInfo.serviceLink);
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
private String autoAssignWsLocation(EnterpriseBeanInfo bean, PortData port, Map<String, String> contextData, StringTemplate template) {
contextData.put("ejbDeploymentId", bean.ejbDeploymentId);
contextData.put("ejbType", getEjbType(bean.type));
contextData.put("ejbClass", bean.ejbClass);
contextData.put("ejbClass.simpleName", bean.ejbClass.substring(bean.ejbClass.lastIndexOf('.') + 1));
contextData.put("ejbName", bean.ejbName);
contextData.put("portComponentName", port.getPortName().getLocalPart());
contextData.put("wsdlPort", port.getWsdlPort().getLocalPart());
contextData.put("wsdlService", port.getWsdlService().getLocalPart());
return template.apply(contextData);
}
代码示例来源:origin: org.apache.openejb/openejb-webservices
final String host = host(ejbJar, appInfo);
for (final EnterpriseBeanInfo bean : ejbJar.enterpriseBeans) {
if (bean instanceof StatelessBeanInfo || bean instanceof SingletonBeanInfo) {
final PortData port = WsBuilder.toPortData(portInfo, beanContext.getInjections(), moduleBaseUrl, beanContext.getClassLoader());
final HttpListener container = createEjbWsContainer(moduleBaseUrl, port, beanContext, new ServiceConfiguration(beanContext.getProperties(), appInfo.services));
location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
setWsdl(container, address);
logger.info("Webservice(wsdl=" + address + ", qname=" + port.getWsdlService() + ") --> Ejb(id=" + portInfo.portId + ")");
ejbAddresses.put(bean.ejbDeploymentId, address);
addressesForApp(appInfo.appId).add(new EndpointInfo(address, port.getWsdlService(), beanContext.getBeanClass().getName()));
afterApplicationCreated(appInfo, webApp);
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
PortData port = WsBuilder.toPortData(portInfo, deploymentInfo.getInjections(), moduleBaseUrl, deploymentInfo.getClassLoader());
HttpListener container = createEjbWsContainer(moduleBaseUrl, port, deploymentInfo);
location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
String address = selectSingleAddress(addresses);
afterApplicationCreated(webApp);
代码示例来源:origin: org.apache.openejb/openejb-webservices
addressesForApp(appInfo.appId).remove(new EndpointInfo(address, portInfo.wsdlPort, beanContext.getBeanClass().getName()));
destroyEjbWsContainer(enterpriseBean.ejbDeploymentId);
ejbLocations.remove(enterpriseBean.ejbDeploymentId);
this.wsRegistry.clearWsContainer(webApp.contextRoot, host(webApp), servlet);
} catch (final IllegalArgumentException ignored) {
destroyPojoWsContainer(portInfo.serviceLink);
代码示例来源:origin: org.apache.openejb/openejb-webservices
final HttpListener container = createPojoWsContainer(classLoader, moduleBaseUrl, port, portInfo.serviceLink,
target, context, webApp.contextRoot, bindings,
new ServiceConfiguration(PojoUtil.findConfiguration(pojoConfiguration, target.getName()), appInfo.services));
final List<String> addresses = wsRegistry.setWsContainer(container, classLoader, webApp.contextRoot, host(webApp), servlet, realm, transport, auth);
setWsdl(container, address);
logger.info("Webservice(wsdl=" + address + ", qname=" + port.getWsdlService() + ") --> Pojo(id=" + portInfo.portId + ")");
servletAddresses.put(webApp.moduleId + "." + servlet.servletName, address);
addressesForApp(webApp.moduleId).add(new EndpointInfo(address, port.getWsdlService(), target.getName()));
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
HttpListener container = createPojoWsContainer(moduleBaseUrl, port, portInfo.serviceLink, target, context, webApp.contextRoot);
String address = selectSingleAddress(addresses);
代码示例来源:origin: org.apache.tomee/openejb-webservices
public void newEjbToDeploy(final @Observes NewEjbAvailableAfterApplicationCreated event) {
final AppInfo app = event.getApp();
if (!deployedApplications.containsKey(app)) {
deployedApplications.putIfAbsent(app, new LinkedList<BeanContext>());
}
deployApp(app, event.getBeanContexts());
}
代码示例来源:origin: org.apache.tomee/openejb-webservices
@Override
public void start() throws ServiceException {
wsRegistry = SystemInstance.get().getComponent(WsRegistry.class);
if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) {
wsRegistry = new OpenEJBHttpWsRegistry();
}
if (portAddressRegistry == null) {
portAddressRegistry = new PortAddressRegistryImpl();
SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry);
}
containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class);
portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class);
assembler = SystemInstance.get().getComponent(Assembler.class);
SystemInstance.get().setComponent(WsService.class, this);
if (assembler != null) {
SystemInstance.get().addObserver(this);
for (final AppInfo appInfo : assembler.getDeployedApplications()) {
final AppContext appContext = containerSystem.getAppContext(appInfo.appId);
deploy(new AssemblerAfterApplicationCreated(appInfo, appContext, null));
}
}
}
代码示例来源:origin: org.apache.tomee/openejb-webservices
final String host = host(ejbJar, appInfo);
final PortData port = WsBuilder.toPortData(portInfo, beanContext.getInjections(), moduleBaseUrl, beanContext.getClassLoader());
final HttpListener container = createEjbWsContainer(moduleBaseUrl, port, beanContext, new ServiceConfiguration(beanContext.getProperties(), appInfo.services));
location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
setWsdl(container, address);
logger.info("Webservice(wsdl=" + address + ", qname=" + port.getWsdlService() + ") --> Ejb(id=" + portInfo.portId + ")");
ejbAddresses.put(bean.ejbDeploymentId, address);
addressesForApp(appInfo.appId).add(new EndpointInfo(address, port.getWsdlService(), beanContext.getBeanClass().getName()));
afterApplicationCreated(appInfo, webApp);
代码示例来源:origin: org.apache.tomee/openejb-webservices
addressesForApp(appInfo.appId).remove(new EndpointInfo(address, portInfo.wsdlPort, beanContext.getBeanClass().getName()));
destroyEjbWsContainer(enterpriseBean.ejbDeploymentId);
ejbLocations.remove(enterpriseBean.ejbDeploymentId);
this.wsRegistry.clearWsContainer(webApp.contextRoot, host(webApp), servlet, webApp.moduleId);
} catch (final IllegalArgumentException ignored) {
destroyPojoWsContainer(portInfo.serviceLink);
代码示例来源:origin: org.apache.tomee/openejb-webservices
final HttpListener container = createPojoWsContainer(classLoader, moduleBaseUrl, port, portInfo.serviceLink,
target, context, webApp.contextRoot, bindings,
new ServiceConfiguration(PojoUtil.findConfiguration(pojoConfiguration, target.getName()), appInfo.services));
final List<String> addresses = wsRegistry.setWsContainer(container, classLoader, webApp.contextRoot, host(webApp), servlet, realm, transport, auth, webApp.moduleId);
setWsdl(container, address);
logger.info("Webservice(wsdl=" + address + ", qname=" + port.getWsdlService() + ") --> Pojo(id=" + portInfo.portId + ")");
servletAddresses.put(webApp.moduleId + "." + servlet.servletName, address);
addressesForApp(webApp.moduleId).add(new EndpointInfo(address, port.getWsdlService(), target.getName()));
代码示例来源:origin: org.apache.openejb/openejb-webservices
public void newEjbToDeploy(final @Observes NewEjbAvailableAfterApplicationCreated event) {
final AppInfo app = event.getApp();
if (!deployedApplications.containsKey(app)) {
deployedApplications.putIfAbsent(app, new LinkedList<BeanContext>());
}
deployApp(app, event.getBeanContexts());
}
代码示例来源:origin: org.apache.openejb/openejb-webservices
@Override
public void start() throws ServiceException {
wsRegistry = SystemInstance.get().getComponent(WsRegistry.class);
if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) {
wsRegistry = new OpenEJBHttpWsRegistry();
}
if (portAddressRegistry == null) {
portAddressRegistry = new PortAddressRegistryImpl();
SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry);
}
containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class);
portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class);
assembler = SystemInstance.get().getComponent(Assembler.class);
SystemInstance.get().setComponent(WsService.class, this);
if (assembler != null) {
SystemInstance.get().addObserver(this);
for (final AppInfo appInfo : assembler.getDeployedApplications()) {
final AppContext appContext = containerSystem.getAppContext(appInfo.appId);
deploy(new AssemblerAfterApplicationCreated(appInfo, appContext, null));
}
}
}
代码示例来源:origin: org.apache.openejb/openejb-tomcat-catalina
List<WebAppInfo> webApps = contextInfo.appInfo.webApps;
for (WebAppInfo webApp : webApps) {
wsService.afterApplicationCreated(webApp);
代码示例来源:origin: org.apache.tomee/openejb-webservices
private String autoAssignWsLocation(final EnterpriseBeanInfo bean, final PortData port, final Map<String, String> contextData, final StringTemplate template) {
if (bean.properties.containsKey(WS_FORCE_ADDRESS)) {
return bean.properties.getProperty(WS_FORCE_ADDRESS);
}
contextData.put("ejbDeploymentId", bean.ejbDeploymentId);
contextData.put("ejbType", getEjbType(bean.type));
contextData.put("ejbClass", bean.ejbClass);
contextData.put("ejbClass.simpleName", bean.ejbClass.substring(bean.ejbClass.lastIndexOf('.') + 1));
contextData.put("ejbName", bean.ejbName);
contextData.put("portComponentName", port.getPortName().getLocalPart());
contextData.put("wsdlPort", port.getWsdlPort().getLocalPart());
contextData.put("wsdlService", port.getWsdlService().getLocalPart());
return template.apply(contextData);
}
代码示例来源:origin: org.apache.openejb/openejb-webservices
public void deploy(final @Observes AssemblerAfterApplicationCreated event) {
final AppInfo appInfo = event.getApp();
if (deployedApplications.put(appInfo, new LinkedList<BeanContext>()) == null) {
deployApp(appInfo, event.getContext().getBeanContexts());
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
public void start() throws ServiceException {
wsRegistry = SystemInstance.get().getComponent(WsRegistry.class);
if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) {
wsRegistry = new OpenEJBHttpWsRegistry();
}
if (portAddressRegistry == null) {
portAddressRegistry = new PortAddressRegistryImpl();
SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry);
}
containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class);
portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class);
assembler = SystemInstance.get().getComponent(Assembler.class);
SystemInstance.get().setComponent(WsService.class, this);
if (assembler != null) {
assembler.addDeploymentListener(this);
for (AppInfo appInfo : assembler.getDeployedApplications()) {
afterApplicationCreated(appInfo);
}
}
}
代码示例来源:origin: org.apache.openejb/openejb-webservices
private String autoAssignWsLocation(final EnterpriseBeanInfo bean, final PortData port, final Map<String, String> contextData, final StringTemplate template) {
if (bean.properties.containsKey(WS_FORCE_ADDRESS)) {
return bean.properties.getProperty(WS_FORCE_ADDRESS);
}
contextData.put("ejbDeploymentId", bean.ejbDeploymentId);
contextData.put("ejbType", getEjbType(bean.type));
contextData.put("ejbClass", bean.ejbClass);
contextData.put("ejbClass.simpleName", bean.ejbClass.substring(bean.ejbClass.lastIndexOf('.') + 1));
contextData.put("ejbName", bean.ejbName);
contextData.put("portComponentName", port.getPortName().getLocalPart());
contextData.put("wsdlPort", port.getWsdlPort().getLocalPart());
contextData.put("wsdlService", port.getWsdlService().getLocalPart());
return template.apply(contextData);
}
大家好,我正在尝试让我的类(class)保留到我的数据库中,但是我遇到了一个问题,我不确定如何解决。我正在尝试将 Score 的三个实例与我的用户映射,但我不确定如何让它发挥作用。任何帮助表示赞赏。谢
我正在使用嵌入在 Tomcat6.33 中的 OpenEJB 3.1 来测试我们的 EJB。现在我正尝试在 EJB 中使用 CDI。我已经完成了在 Tomcat 中使用 CDI 的设置,所以现在我可以
我需要用 OpenEJB 容器配置我的 Tomcat ( 5.5 ),我想在 Eclipse 中拥有它。任何人都可以向我解释它是如何工作的,因为当我在一个目录(即 C:/Tomcat/)中安装了 To
如何配置 OpenEJB 日志记录格式?这是我现在在日志中看到的内容: [...] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time ela
我不明白为什么嵌入式 OpenEJB 容器在开始时会失败并显示非常无用的消息(抱歉日志很长): Running com.XXX.MyTest Apache OpenEJB 3.1.3 build
这是我的 SLSB: @Stateless public class MyService { PersistenceContext(unitName = "abc") EntityManage
本文整理了Java中org.apache.openejb.loader.Zips类的一些代码示例,展示了Zips类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven
我想知道一些关于OpenEJB的意见:我们正在考虑在一个新项目中使用它,但实际上没有找到很多关于它的意见。 所以,这是我的问题:怎么样?它的表现好吗?它对于生产环境是否足够稳定? 最佳答案 我们切换到
OpenEJB 4.0.0 有一些可用的传输: ejbd ejbds httpejbd 网络上哪一个更轻? 哪个更快? 选择其中任何一个有什么优点和缺点吗? 我们的应用程序有大约 450 个客户端与
我正在尝试为我的 java ee 6 应用程序编写集成测试。这适用于 open jpa 和 eclipselink。但它不适用于 hibernate 。 我在 github 上创建了一个最小项目来调试
我不理解 @Module 注释背后的概念。文件说,您可以在其中设置代码/加载容器。但我不明白。 我看到用 @Module 注释的方法有一组返回类型。但我没有看到代码中任何地方使用了这些方法。我是从测试
我的应用程序在 Tomee 1.7.2 上运行。 (我们称它为 myApp) openejb-jar.xml: openejb.deploymentId.format = myApp
我为一个 Activity 编写了一个单元测试,该 Activity 最终将消息放入队列中。一旦消息被放入该队列,消息驱动的 Bean 就会开始处理。但我不想在单元测试中测试 MDB。我如何告诉 Op
有人知道我的小测试用例有什么问题吗?我使用 openEjb 在 maven 和使用 testNG 的 eclipse 中进行单元测试。我让容器运行,使用 hsqld 配置数据源并设法填充数据库表。我的
我当前安装的是 Tomcat 8。我想为其添加 EJB 支持。但是,当我在网上搜索如何将 OpenEJB 嵌入到 Tomcat 中时,我只找到了 TomEE 结果,而没有找到关于普通 Tomcat 的
我在嵌入式模式下使用 openEjb 来测试无状态 session bean,它有一个注入(inject)的 EntityManager。但是,当我运行测试时,它失败了,因为它无法初始化应用程序。当我
有谁知道我在哪里可以找到openejb.xml 配置文件的完整 引用OpenEJB ? 最佳答案 本文档显示了所有可配置对象、它们的属性和默认值。以及关于如何通过 openejb.xml 文件或属性“
任何人都可以举一个 pom.xml 依赖配置的例子,这将使 OpenEJB 使用 slf4j 日志记录,而不是 JCL(据我所知,这就是它现在使用的)。 另见 How to configure Ope
在我正在进行的项目中,我们使用 OpenEJB 作为框架来测试我们的 EJB。我们以编程方式构造一个 InitialContext,并使用它来获取事务管理器和各种 EJB。 但是,我现在必须测试的 E
请注意,我正在镜像 example given here非常接近。 事实上,我的情况稍微简单一些,因为此时我什至没有使用持久性单元进行测试。我的测试项目提供了一个简单的 MDB 和一个 session
我是一名优秀的程序员,十分优秀!