On 23 Apr, [EMAIL PROTECTED] wrote:
> Hello again:
> 
> (JBoss Documentation, Chapter 7 "Writing Message Driven Bean")
> 
> After deploying de MDB.class + META-INF i've began to
> write the 'Main.java' application in order to send a stuff
> to my bean.
> The problem arrives when compiling this file, i get the following:
> 
> Main.java:9: cannot resolve symbol
> symbol: variable TOPIC_FACTORY
> location: class Main
>          TopicConnectionFactory topicFactory = (TopicConnectionFactory) 
> context.lookup(TOPIC_FACTORY)
>                 ^
> 
> 1 error
> 
> what is 'TOPIC_FACTORY'?
> 
> should this variable be declared anywhere?

Yes. Typicaly a static final String, ie

static final String TOPIC_FACTORY = "TopicConnectionFactory";

which I obviously missed to get when I ripped the example from some of
my programs. Sorry.

//Peter
> 
> Thanks in advance!
> 
> Regards:
> _____________________________________________
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> _____________________________________________
-- 
------------------------------------------------------------
Peter Antman             Technology in Media, Box 34105 100 26 Stockholm
Systems Architect        WWW: http://www.tim.se
Email: [EMAIL PROTECTED]        WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 
------------------------------------------------------------


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to