Are you using persistent messaging?
If you are not, messages which have no current receivers are discarded.
Your example code shows this.
Try placing the sender and receiver code in different threads and run them
concurrently.
I would also set your receiver timeout a bit longer or your receive
Venkateshwar,
I looked in 'Java Message Service' from O'Reilly and it seems
that messages will be removed from the queue if the JMS provider believes
the message was delivered successfully.
When you invoke message.acknowledge() you are actually ACK'ing
all non-ACKed received messages to that
Ionel,
The class loader for the applet engine handles the request for classes.
If you want to streamline the size of the support jars,
here are some tricks which might help.
1)
clear your webserver's logs
Remove the archive statements from your APPLET tags.
expand the jars in the base directory
wonder sonic,
Your first problem, I think, is that you have not flushed the tables to make
the new user permissions take effect. Check out the docs for the mysqladmin
tool.
As for the second, try the SQL statement from the command line to see where
it is malformed. This might help you debug