Problem with alert display

LabKey Support Forum (Inactive)
Problem with alert display reshmyunni1778  2013-08-30 02:32
Status: Closed
 
I tried to show alert when message received from activemq queue.But it doesn't display.
Code :
public void onMessage(Message message){
try{
if(message instanceof TextMessage){
TextMessage textMessage = (TextMessage)message;
System.out.println("Received message '" + textMessage.getText() +"'");
JOptionPane.showMessageDialog(null, "Received message");
}
}catch(JMSException e){
System.out.println("Caught:" + e);
e.printStackTrace();
}
}

The message printed in console.
Also tried 'Window.alert'.Nothing shown.
Please help me.
 
 
jeckels responded:  2013-08-30 15:32
Hello,

Is your code running inside of LabKey Server, or as an external process? It sounds like this may be more of a general ActiveMQ/JMS type question, where other developer forums that aren't related to LabKey Server might provide useful replies.

Thanks,
Josh