但是,jms的两个classwen文件运行错误如下:================PTP Pattarn==============
输入远端服务[MOM]工厂名:
QueueConnectionFactory
输入远端的发送对象名[Queue]:
Queue
-------------
javax.naming.NameNotFoundException.  Root exception is org.omg.CosNaming.NamingC
ontextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
        at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHe
lper.java:72)
        at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub
.java:406)
        at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
        at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
        at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at mylib.test.jms.QSender.send(QSender.java:41)
        at mylib.test.jms.QSender.main(QSender.java:23)请赐教,解答即给分,分可以再给!在线等待回复!!!

解决方案 »

  1.   

    我想问题出的原因在于你JNDI名字不正确。
    你可以编辑所需的JNDI名字然后重新部署J2EE应用程序
      

  2.   

    命名应该没问题的,你可以看一下我的j2ee启动界面:Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/MyQueue , javax.jms.Queue >
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Cnx Factory : jms/MyFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Starting web service at port: 8000
    Starting secure web service at port: 7000我输入:
    jms/MyFactory 
    jms/MyQueue 或者
    jms/Queue
    jms/QueueConnectionFactory
    都是上面的错误我现在怀疑是不是该命名服务应该设置什么属性,确认被访问的权限???
      

  3.   

    up一个,有没有人在j2ee1.3下布成功过???