I use jboss4.2.2GA and messaging 1.3.0GA with spring 2.0
I send message :
where is MyMessage is simple POJO, also it is an external jar file included in both applications.Code:public void sendMessage(final MyMessage s) { jmsTemplate.convertAndSend(s); }
and on the other side I have web application for listening :
but it doesn't work properly, i get error :Code:public void onMessage(Message m) { try { if (m instanceof ObjectMessage) { // MyMessage myMsg = new MyMessage(); // this works fine ObjectMessage om = (ObjectMessage) m; MyMessage mm = (MyMessage) om.getObject(); } catch(Exception e) { e.printStackTrace(); } }
ERROR [STDERR] java.lang.RuntimeException: No ClassLoaders found for: com.message.MyMessage
....
whats wrong here?!


Reply With Quote