TopicConnectionFactory qcf = (TopicConnectionFactory) ctx.lookup( "my.connection.factory" );
TopicConnection topicConnection = qcf.createTopicConnection();
the thread hangs for 1 minute and then I get this great stacktrace:
Exception in thread "main" java.util.MissingResourceException: No localizer class found for message id.
at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:260)
at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:212)
at weblogic.i18n.logging.Loggable.getMessage(Loggable.java:183)
at weblogic.i18n.logging.Loggable.getMessage(Loggable.java:207)
at weblogic.jms.common.JMSException.
at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:258)
at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:285)
at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:184)
at durablesubscribers.Main.main(Main.java:43)
I am running it using the classpath with
wlclient.jar and javax.jms_1.1.1.jar
The exception was due to the fact that I was trying to create a Durable Subscriber to a Distributed Topic, and not to an individual member...
Anyway L10nLookup needs i18n_user.properties and weblogic/i18n/i18n.properties in the classpath. These files are included in most WebLogic modules (jars).
No comments:
Post a Comment