• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JMS

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic