« Return to Thread: First steps in JBoss Application Server

Re: First steps in JBoss Application Server

by kenneth ganfield :: Rate this Message:

Reply to Author | View in Thread

Hi,
It looks like your import statement might be incorrect.
You might want to check that.
I think you should be importing java.jms.Queue, not java.util.Queue

ken

adstan@... wrote:
> Hi,
> I made this tutorial "EJB 3.0 Enterprise Beans for the JBoss Application Server" link:http://www.netbeans.org/kb/55/ejb30-jboss.html
>
>
> but I have problem with one line in code. In file PostMessage.java on Web Module NetBeans underline this line: 'messageProducer = session.createProducer(queue);' and show tip: 'createProducer(javax.jms.Destination) in javax.jms.Session cannot be applied to (java.util.Queue)'  I don't understand what's going on?
>
> Thanks for help
> adstan
>  

 « Return to Thread: First steps in JBoss Application Server