Hi i have put up a simple message driven bean on AS 4.0.4rc2 | @MessageDriven(activationConfig = | { | @ActivationConfigProperty(propertyName="destinationType", | propertyValue="javax.jms.Queue"), | @ActivationConfigProperty(propertyName="destination", | propertyValue="queue/PositioningRequests") | }) | public class PositioningListner implements MessageListener{ | | public void onMessage(Message message) { | TextMessage textMessage = (TextMessage)message; | System.out.println("Recived Positioning Request for:" +textMessage); | | } | | }
this gets deployed fine and the queue gets auto created but when i try to acces it with InitialContext ctx = new InitialContext(); | Object obj = ctx.lookup("queue/PositioningRequests"); | System.out.println(obj.getClass()); | javax.jms.Queue queue = (javax.jms.Queue)obj; i get java.lang.ClassCastException: org.jboss.mq.SpyQueue could it be a classloader problem ? /Anders View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939153#3939153 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939153 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user