On 8 Maj, Cecilie Aulesjord wrote:
> Hello, I am getting the same naming exception as Jason Dillon reported
> 13.april. I really need help to get this to work. Any suggestions?
>
> Where can I find good documentation on how to set up XML deployment
> descriptors? Really miss documentation on this.
>
> -Thanks.
>
> javax.naming.NameNotFoundException: TopicConnecionFactory not bound
Should be: "TopicConnectionFactory".
Look into jbossmq.xml for the available connection factories and
destinations.
//Peter
> at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:245)
>
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at Main.main(Main.java:47)
> ;-A little difference is that sun is dropping exceptions....Can this have
> something to do with the problem?
>
> My client:
> // Get access to JNDI
> Context context = new InitialContext();
>
> // Lookup the managed connection factory for a topic
> TopicConnectionFactory topicFactory =
> (TopicConnectionFactory)context.lookup("TopicConnecionFactory");
>
> My ejb-ref:
> <ejb-jar>
> <enterprise-beans>
>
> <message-driven>
> <ejb-name>MDB</ejb-name>
> <ejb-class>test.bean.MDB</ejb-class>
> <message-selector></message-selector>
> <transaction-type>Container</transaction-type>
> <message-driven-destination>
> <destination-type>javax.jms.Topic</destination-type>
> <subscription-durability>NonDurable</subscription-durability>
> </message-driven-destination>
> </message-driven>
> <resource-ref>
> <description>Default TopicConnectionFactory</description>
> <res-ref-name>TopicConnectionFactory</res-ref-name>
> <res-type>javax.jms.TopicConnectionFactory</res-type>
> </resource-ref>
>
> </enterprise-beans>
>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>MDB</ejb-name>
> <method-name>onMessage</method-name>
> <method-params>
> <method-param>javax.jms.Message</method-param>
> </method-params>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> </assembly-descriptor>
> </ejb-jar>
>
>
> MY JBOSS-XML:
> <jboss>
> <enterprise-beans>
>
> <secure>false</secure>
> <resource-managers>
> <resource-manager>
> <res-name>TopicConnectionFactory</res-name>
> <res-url>TopicConnectionFactory</res-url>
> </resource-manager>
> </resource-managers>
>
> <resource-ref>
> <res-ref-name>jms/TopicConnectionFactory</res-ref-name>
> <resource-name>TopicConnectionFactory</resource-name>
> </resource-ref>
>
> <message-driven>
> <ejb-name>MDB</ejb-name>
> <configuration-name>Standard Message Driven
> Bean</configuration-name>
> <destination-jndi-name>topic/testTopic</destination-jndi-name>
> </message-driven>
>
> </enterprise-beans>
> </jboss>
> _________________
> Cecilie Aulesjord
> systemutvikler
>
> Locus AS
> Leif Weldingsvei 6-8
> P.O.Box 2087
> N- 3202 Sandefjord
> Norway
> http://www.locus.no/
> E-mail: [EMAIL PROTECTED]
> Phone: +47 33 48 42 00
> Direct: +47 33 48 42 15
> Fax: +47 33 48 42 01
> Mobile: +47 47 62 32 15
> _________________
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
--
Jobba hos oss: http://www.tim.se/weblab
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user