[英]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。
I tried to lookup connectionFactory configured in the remote JNDI Server of webmethods using spring jndi. 我尝试使用spring jndi查找在webmethods的远程JNDI Server中配置的connectionFactory。
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。
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.