• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS TopicConnection Factory

 
Dave Thunder
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with :


This is the code we used at school to get TopicConnectionFactory.
But now i am not able to use this, because "progress" is unidentified.

I have searched but haven't found what should it be? Do I need import any .jars to my project or import anything?

JMS classes should be in J2EE.jar as much as I have read.

Thanks!
 
Dave Thunder
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would be the simplest way to get this working?

Is it difficult to configure that tcf on Sun AppServer?
I have some code whick should retrieve this using JNDI.
 
Dave Thunder
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I got that progress stuff. But now, what is this ?

kavax.jms.JMSException: The connection was rejected by the broker - Did you forget to use ssl:// or http:// in your connect string ?
at progress.message.jclient.Connection.Connection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnection.TopicConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnectionFactory.createTopicConnection() (Unknown Source)
at pakk1.JMSSubscriber.JMSSubscriber(java.lang.String) (Unknown Source)
at pakk1.JMSSubscriber.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

I don't use really ssl:// or http:// in my connection string, it is like "localhost:7676". Should be ok.

Any ideas?

Thanks!
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why haven't you tried http://?
 
Dave Thunder
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.ClassNotFoundException: progress.message.net.http.ProgressHttpSocketFactory not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/tkasela/workspace2/JMSSubscriber/,file:./,file:/Avalik/Gunnar/lib/client.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at progress.message.net.ProgressSocketFactory.Cp_(int, java.lang.Object) (Unknown Source)
at progress.message.net.ProgressSocketFactory.getFactory(int, java.lang.Object) (Unknown Source)
at progress.message.net.ProgressSocketFactory.getFactory(int) (Unknown Source)
at progress.message.zclient.Connection.lq_(java.lang.String, java.lang.String, int) (Unknown Source)
at progress.message.zclient.Connection.connect(java.lang.String) (Unknown Source)
at progress.message.zclient.Connection.connect(java.lang.String, boolean) (Unknown Source)
at progress.message.jclient.Connection.Connection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnection.TopicConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnectionFactory.createTopicConnection() (Unknown Source)
at pakk1.JMSSubscriber.JMSSubscriber(java.lang.String) (Unknown Source)
at pakk1.JMSSubscriber.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Exception in thread "main" progress.message.util.EAssertFailure: Caught Throwable: java.lang.ClassNotFoundException: progress.message.net.http.ProgressHttpSocketFactory not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/tkasela/workspace2/JMSSubscriber/,file:./,file:/Avalik/Gunnar/lib/client.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at progress.message.net.ProgressSocketFactory.Cp_(int, java.lang.Object) (Unknown Source)
at progress.message.net.ProgressSocketFactory.getFactory(int, java.lang.Object) (Unknown Source)
at progress.message.net.ProgressSocketFactory.getFactory(int) (Unknown Source)
at progress.message.zclient.Connection.lq_(java.lang.String, java.lang.String, int) (Unknown Source)
at progress.message.zclient.Connection.connect(java.lang.String) (Unknown Source)
at progress.message.zclient.Connection.connect(java.lang.String, boolean) (Unknown Source)
at progress.message.jclient.Connection.Connection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnection.TopicConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.applet.Applet, java.lang.String, java.util.Hashtable) (Unknown Source)
at progress.message.jclient.TopicConnectionFactory.createTopicConnection() (Unknown Source)
at pakk1.JMSSubscriber.JMSSubscriber(java.lang.String) (Unknown Source)
at pakk1.JMSSubscriber.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)


With http:// .

I have incluided the same .jar into my project, which we used in class. then we didnt use http:// either. I want to use the same classes and other things whick we did at schools, otherwise I get really lost.
 
Dave Thunder
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, now I downloaded Sonic MQ and included Sonic_client.jar

I will also show my publishers code.


Exception comes from :
TopicConnection connection = conFactory.createTopicConnection();

And it is :

javax.jms.JMSException: java.net.SocketException: Software caused connection abort: recv failed: http://localhost:7676
at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown Source)
at progress.message.jimpl.Connection.<init>(Unknown Source)
at progress.message.jimpl.TopicConnection.<init>(Unknown Source)
at progress.message.jclient.TopicConnectionFactory.createTopicConnection(Unknown Source)
at pakk1.JMSPublisher.<init>(JMSPublisher.java:36)
at pakk1.JMSPublisher.main(JMSPublisher.java:17)

Do I need to configure anything on my Sun AppServer or it should work with defaults?



One more thing.

If I have Sun Appserver running and I try to use it's jms broker from outside, I mean I run my testcode in Eclipse, does it make sense? Should it work this way?
[ January 02, 2006: Message edited by: Dave Thunder ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic