File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message driven bean

 
trupti nigam
Ranch Hand
Posts: 623
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have written a message driven bean examples.
the message driven bean has onMessage(),ejbCreate(),ejbRemove() & setMessageDrivenContex() methods.
The client sends the message onto the queue.
I am using weblogic6.
but when i try to run the examples i am getting an error message saying
"Exception in thread "main" java.lang.NoSuchMethodError: main"
As far as i know , there shouldn't be any main() in the message driven bean.
please let me know what is wrong in my example..
thanks
pradnya
 
Steve Chernyak
Ranch Hand
Posts: 113
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that it is looking for the main method in your client
 
trupti nigam
Ranch Hand
Posts: 623
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
no,actually it is not looking for the main() method..i got the answer today ..
basically message driven beans are not run from the command line..they are the listener beans which consumes messages..
when the client sends the message on to the queue the container in which it is deployed subscribes it for the que/topic..
so when u run the client from command line ..it receives the msg.
thanks,
trupti
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic