简体   繁体   English

如何从WebSphere Application Server v7上运行的Web应用程序通过JMS连接到Web方法?

[英]how to connect to webmethods over JMS from a web application running on WebSphere application server v7?

how to connect to webmethods over JMS from a web application running on 64bit WebSphere application server v7.0.0.23 ? 如何通过运行在64位WebSphere Application Server v7.0.0.23上的Web应用程序通过JMS连接到Web方法?

I have a standard spring based web application which is deployed on websphere 7 application server. 我有一个基于Spring的标准Web应用程序,该应用程序部署在Websphere 7应用程序服务器上。 I need to connect to SoftwareAG WebMethods JMS Provider from this application. 我需要从此应用程序连接到SoftwareAG WebMethods JMS Provider。

  1. I tried to lookup connectionFactory configured in the remote JNDI Server of webmethods using spring jndi. 我尝试使用spring jndi查找在webmethods的远程JNDI Server中配置的connectionFactory。

    • it failed to initialize the initialContext with NPE. 它无法使用NPE初始化initialContext。
  2. I tried to create a Custom JMS Provider in websphere admin console under resources which maps the external JNDI resource of Webmethods to locallly available JNDI resouce. 我试图在Websphere管理控制台中的资源下创建一个自定义JMS提供程序,该资源将Webmethod的外部JNDI资源映射到本地可用的JNDI资源。 Then I used spring jndi to lookup the connectionFactory from local JNDI of websphere. 然后,我使用spring jndi从Websphere的本地JNDI中查找connectionFactory。

    • it failed with NoClassDefFoundError : javax.jms.ConnectionFactory 它因NoClassDefFoundError失败:javax.jms.ConnectionFactory

Has anyone integrated websphere and webmethods before successfully ? 有没有人成功集成了Websphere和WebMethods? Please share the experience and how to get it going ? 请分享经验以及如何进行?

Hi I have gotten it working by setting up the queues in WebSphere and have connected to it externally in Java this way: 嗨,我通过在WebSphere中设置队列来使其工作并通过Java在外部以这种方式连接到它:

   `Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    Context jndiContext = null;
    try {
        jndiContext = new InitialContext(env);
    } catch (NamingException e) {....`

WebMethods has connected to the same queues by using the same properties I specified in the env HashTable WebMethods通过使用在env HashTable中指定的相同属性连接到相同的队列

Another solution is to expose a web service in webMethods and have your Spring application call the web service. 另一个解决方案是在webMethods中公开一个Web服务,并让您的Spring应用程序调用该Web服务。

You can then have the webMethods web service handler publish to the webMethods broker in order to trigger whatever you need. 然后,您可以将webMethods Web服务处理程序发布到webMethods代理,以触发所需的任何内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有WebSphere MQ v7的WebSphere Application Server V7中的rollback() - rollback() in WebSphere Application Server V7 with WebSphere MQ v7 带有Eclipse和WebSphere Application Server的JMS Web应用程序 - JMS web application with Eclipse and WebSphere Application Server 如何使用 Spring JMS 使用来自 websphere 应用程序服务器的 JMS 消息 - How to consume JMS messages from the websphere application server using Spring JMS 配置WebMethods Client以连接到WebSphere JMS(不是WebSphere MQ) - Configuration of WebMethods Client to connect to WebSphere JMS (not WebSphere MQ) 如何从Websphere服务器连接到Weblogic JMS? - How do I connect to Weblogic JMS from Websphere server? WebSphere 8.5.5和JMS注释使服务器应用程序崩溃 - WebSphere 8.5.5 and JMS annotations crash server application Websphere Application Server集群和JMS消息使用 - Websphere Application Server cluster and JMS message consumption 如何将jms消息从托管应用程序的一台服务器发送到托管另一台应用程序的另一台服务器,这两台服务器都托管在Websphere服 - How to send jms message from one server hosting an application to another server hosting another application both are hosted in Websphere servers 在.NET应用程序中使用Websphere MQ和JMS - Using Websphere MQ with JMS from a .NET application 如何使用Websphere V7的Jython向JMS提供程序动态添加自定义属性 - How to add custom properties dynamicly to a JMS Provider using Jython of Websphere V7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM