RE: Errors compiling JMS 0.7.7

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <000401c565ea$5f50a340$3b7cfddc@xerces>
To verify you have the right jar, run the following:

> javap -classpath .maven/repository/jms/jars/jms-1.1.jar
javax.jms.Connection

and make sure the output includes the following:

   public abstract javax.jms.Session createSession(boolean, int) throws ....

If not, you've got the wrong jar. You need to download 1.1 from
http://java.sun.com/products/jms.

If you have got the right jar, make sure you have the latest
sources from CVS. Do a 'cvs update -Pd' from the root of your
openjms checkout.

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of [email protected]
> Sent: Tuesday, 31 May 2005 6:58 PM
> To: [email protected]
> Subject: Re: [openjms-user] Errors compiling JMS 0.7.7
> 
> 
> Where can I download the jms-1.1.jar to be sure it is the right file?
> 
> 
> Tim Anderson wrote:
> 
> >The warnings are expected. The createSession() method was
> >introduced in the JMS 1.1 API - make sure you have the
> >correct jms-1.1.jar installed in your maven repository.
> >
> >-Tim
> >
> >  
> >
> >>-----Original Message-----
> >>From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >>[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> >>Of [email protected]
> >>Sent: Monday, 30 May 2005 8:24 PM
> >>To: [email protected]
> >>Subject: Re: [openjms-user] Errors compiling JMS 0.7.7
> >>
> >>
> >>
> >>When trying to compile 0.7.7 version of JMS I got a number 
> of warning
> >>due to deprecated methods and also these errors:
> >>
> >>==========================================================
> >>F:\DESARROLLO\OPENJMS\openjms\modules\jms\src\main\java\org\ex
> >>olab\jms\client\Jm
> >>sConnectionConsumer.java:148: cannot resolve symbol
> >>symbol  : method createSession  (boolean,int)
> >>location: interface javax.jms.Connection
> >>        _session = connection.createSession(false,
> >>Session.CLIENT_ACKNOWLEDGE);
> >>                             ^ 
> >>F:\DESARROLLO\OPENJMS\openjms\modules\jms\src\main\java\org\ex
> >>olab\jms\client\Jm
> >>sConnectionConsumer.java:150: cannot resolve symbol
> >>symbol  : method createConsumer  
> >>(javax.jms.Destination,java.lang.String,boolean
> >>)
> >>location: interface javax.jms.Session
> >>            _consumer = _session.createConsumer(destination, 
> >>selector, 
> >>false);
> >>                                ^ 
> >>F:\DESARROLLO\OPENJMS\openjms\modules\jms\src\main\java\org\ex
> >>olab\jms\client\Jm
> >>sConnectionConsumer.java:152: cannot resolve symbol
> >>symbol  : method createDurableSubscriber  
> >>(javax.jms.Topic,java.lang.String,java
> >>.lang.String,boolean)
> >>location: interface javax.jms.Session
> >>            _consumer = _session.createDurableSubscriber((Topic) 
> >>destination,
> >>                                                   
> >>=================================================
> >>
> >>Any idea?
> >>
> >>Thanks
> >>
> >>    
> >>
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by Yahoo.
> >Introducing Yahoo! Search Developer Network - Create apps 
> using Yahoo! 
> >Search APIs Find out how you can build Yahoo! directly into your own 
> >Applications - visit 
> >http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> >_______________________________________________
> >openjms-user mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/openjms-user
> >  
> >
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.