Topic: 如何在webMethods中引用webLogic的JMS服务 |
Print this page |
1.如何在webMethods中引用webLogic的JMS服务 | Copy to clipboard |
Posted by: roy_nixping Posted on: 2004-02-13 11:00 我在webMethods Developer中编写一个Java Service.在这个Service中发送Java Message到webLogic服务器。 我认为Context连接到weblogic server就可以发送message了.我是这样做的... 1.copy weblogic.jar to webMethod_home\IntegrationServer\packages\mypackage\code\jars 2.write code to connect weblogic server. Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.PROVIDER_URL, url); ctx=(Context)new InitialContext(env); 3. save and compile (pass) 4. test error: ClassNotFoundException:weblogic.jndi.WLInitialContextFactory 如何解决这个问题?请指教! |
2.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: cailuyu Posted on: 2004-02-13 11:35 建议用这种方式 就是把你的应用逻辑写在ejb里 然后用你用Service作ejb client这样更合理一点(不过这样有多了一个应用服务器) 你有没有reload这个package? 要不就是weblogic.jar里没有这个类 你再检查检查 |
3.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: roy_nixping Posted on: 2004-02-13 11:46 这个方法的确可行,可以不用写java service.谢谢 我感觉在用webMethod时总时有点不爽,使用说明太少。 |
4.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: wishmaster Posted on: 2004-02-13 16:28 do you have JMS adapter? otherwise, install JBoss Package to view some sample services regarding connecting to and sending messages to an appserver... once you create the EJB with business logic built in, you can expose this EJB as web services...and your service can be the client to use it. |
5.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: roy_nixping Posted on: 2004-02-13 16:33 thank you wishmaster i will try installing jboss and learn about the sample services. |
6.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: roy_nixping Posted on: 2004-02-13 16:37 how to import any jar package to webMethods runtime-classpath?? do you have any meterial about setup webMethods in details!! |
7.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: cailuyu Posted on: 2004-02-13 23:57 这部分内容ISDeveloperGuide里面有 code\jars STATIC Contains external Java libraries used by the services in the package. Tools you use to install or produce the external libraries. The content of this directory is never updated by webMethods Integration Platform. |
8.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: wishmaster Posted on: 2004-02-14 16:28 if you want to use jar at package level, do as cailuyu said - where you can reload the package to have jars refreshed; if the jar usage is is shared across packages...then put in integrationserver/lib/jars/...then to refresh you have to restart IS... |
9.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: cailuyu Posted on: 2004-02-14 23:35 当然了 加在classpath里面也是可以的 大家不要打我~ |
10.Re:如何在webMethods中引用webLogic的JMS服务 [Re: cailuyu] | Copy to clipboard |
Posted by: wishmaster Posted on: 2004-02-15 13:14 cailuyu wrote: remember if it is on windows, the length of classpath is limited... at some point, IS can't be started due to this fact... |
11.Re:如何在webMethods中引用webLogic的JMS服务 [Re: roy_nixping] | Copy to clipboard |
Posted by: qintao Posted on: 2004-03-09 11:25 As far as I know, there are three ways you can add Java liberay: (1). Add it to %CLASSPATH% within server.bat (server.sh) file. It has visbility to IS (2). Copy it to /IntergrationServer/lib/jars (or system). It has visiblility to IS (3). Add it to pakcages/YourPackage/code/jars. Only visible to the package. Thanks, |
12.Re:如何在webMethods中引用webLogic的JMS服务 [Re: qintao] | Copy to clipboard |
Posted by: wishmaster Posted on: 2004-03-16 16:43 qintao wrote: remember, WLS doesn't take system classpath... |
13.Re:如何在webMethods中引用webLogic的JMS服务 [Re: cailuyu] | Copy to clipboard |
Posted by: wishmaster Posted on: 2004-05-09 03:00 cailuyu wrote: |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |