• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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?
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic