Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS  RSS feed

 
D Wynn
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello--

I'm trying to compile a .java file that reads a JMS Topic but I'm getting these errors...

cannot resolve symbol
symbol : method createConnection ()
location: interface javax.jms.ConnectionFactory
connection = connectionFactory.createConnection();



method createSession (boolean,int)
location: interface javax.jms.Connection
session = connection.createSession(false,


method createConsumer (javax.jms.Destination)
location: interface javax.jms.Session
consumer = session.createConsumer(destination);

cannot resolve symbol
symbol : method getBodyLength ()
location: interface javax.jms.BytesMessage
(int)bytesMessage.getBodyLength();
 
D Wynn
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm importing the javax.jms package and my classpath is set right I don't know what could be causing these errors...
 
dave taubler
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say your classpath is set right, what does that mean? I ask because, from the information you provide, I'd guess it is in fact not set correctly. For starters, what JMS provider are you using? What library contains its implementation?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!