Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

POJO client cannt send mesg to MDB running inside WAS 6.0.x(not 6.1)

已查看 184 次
跳至第一个未读帖子

VikkyChan

未读,
2008年2月11日 12:21:252008/2/11
收件人
I have MDB running inside WAS 6.0.x(not 6.1). It uses Default Queues(Destination) defined in default Messaging and then the actual queues are defined in SIB(service integration bus). The MDB application starts fine and all listeners appears to be active(at least no errors reported while starting my MDB app).<br />
<br />
Now I want to write a simple Java app, using JVM not WAS, which should be able to send a mesg to this MDB. Somewhere in developerWorks, i saw MDB deploy descriptors as<br />
<br />
provideURL = iiop://localhost:2809 (which is like a corba lookup for server, like an LDAP, this is set in my javaApp) <br />
context_factory = the standard IBM context factory.<br />
qcf = as defined in default messging engine above<br />
queue = as defined in default messging engine above (not in SIB)<br />
<br />
When I try to run this, I get an error on some Jars not found, I followed all the way and keep on adding one at a time! <br />
<br />
Now after abt 20+ jar addition, i still see one more which I cant figure out. This is as below:<br />
java.lang.NoClassDefFoundError: org/eclipse/hyades/logging/events/cbe/impl/EventFactoryContext<br />
<br />
Does anyone has idea which jar file is it from. The base class calling this one is a std one <br />
at com.ibm.ejs.ras.Tr.&lt;clinit&gt;(Tr.java:276)<br />
at com.ibm.websphere.naming.WsnInitialContextFactory.&lt;clinit&gt;(WsnInitialContextFactory.java:70)<br />
at java.lang.Class.forName0(Native Method)<br />
at java.lang.Class.forName(Class.java:260)<br />
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:60)<br />
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)<br />
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)<br />
at javax.naming.InitialContext.init(InitialContext.java:233)<br />
at javax.naming.InitialContext.&lt;init&gt;(InitialContext.java:209)<br />
at att.sdp.test.TestMessageForMDB.main(TestMessageForMDB.java:37)<br />
<br />
Any clue is appreciated, thanks in advance.<br />
<br />
Vikky Chan

anders...@seb.se

未读,
2008年2月12日 02:25:172008/2/12
收件人
The class you are looking for is in <code>emf.jar</code>.<br />
<br />
A tip by the way when looking for a specific class amongst a bunch of jar files is to use a one-liner which greps out what you are looking for out of the contents of the jar files. If you are on a Linux/Unix-system, something like this is very handy:<br />
<code>$ for i in *.jar;do echo "" &#38;&#38; echo $i &#38;&#38; jar -tf $i|grep EventFactoryContext;done |less</code>
<br />
If you (like me) is stuck with playing Windows, there are open unix utility binaries for Windows to find on the web. Then you can run handy one-liners such as the one above on Windows systems.<br />
<br />
Cheers<br />
<br />
/Anders

Alasdair Nottingham

未读,
2008年2月16日 20:37:492008/2/16
收件人
Hi,<br />
<br />
Have you considered getting your JVM client using the "IBM Client for JMS on J2SE with IBM WebSphere Application Server" which is basically a client for accessing SIB from a JVM. It includes all the classes you will need.<br />
<br />
Alasdair

j...@takapenkki.net

未读,
2008年4月11日 07:19:552008/4/11
收件人
Hello.<br />
<br />
The jar you are looking for is com.ibm.jaxws.thinclient_6.1.0.jar. It's in WAS_HOME\runtimes\base_v61\runtimes folder.

anders...@seb.se

未读,
2008年4月11日 08:01:312008/4/11
收件人
<div class="jive-quote"><span class="jive-quote-header">J_J_78 wrote:</span><br />

Hello.<br />
<br />
The jar you are looking for is com.ibm.jaxws.thinclient_6.1.0.jar. It's in WAS_HOME\runtimes\base_v61\runtimes folder.</div>
<br />
That is the jar file for WAS 6.1. In the subject he explicitly says that he is using WAS 6.0.

jtpape

未读,
2008年4月11日 09:50:222008/4/11
收件人
The JAR requires a JDK 1.5.0 instance and will work against a WAS 6.0 instance. <br />
<br />
John Pape<br />
WebSphere Advisory Software Engineer
0 个新帖子