Ошибка при попытке запустить QUEUE: код производителя в JMS.Glassfish Server JMS автономный QUEUE
java.lang.RuntimeException: инициализация Orb Erorr javax.naming.NamingException: Поиск Сбой '' myQueueConnectionFactory в SerialContext [myEnv = {java.naming.factory.initial = com.sun.enterprise.naming.impl. SerialInitContextFactory, java.naming.factory.url.pkgs = com.sun.enterprise.naming, java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Исключение корня - javax. naming.NamingException: невозможно получить SerialContextProvider для SerialContext [myEnv = {java.naming.factory.initial = com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs = com.sun.enterprise. naming, java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Исключение корня - java.lang.RuntimeException: Orb initialization erorr]]
Мой код:
//Create and start connection
InitialContext ctx=new InitialContext();
QueueConnectionFactory f=(QueueConnectionFactory)ctx.lookup("myQueueConnectionFactory");
QueueConnection con=f.createQueueConnection();
con.start();
//2) create queue session
QueueSession ses=con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
//3) get the Queue object
Queue t=(Queue)ctx.lookup("myQueue");
//4)create QueueSender object
QueueSender sender=ses.createSender((t));
//5) create TextMessage object
TextMessage msg=ses.createTextMessage();