hello, thank you all you right David, i made a mistake,sorry ... My problems is that I get : javax.naming.NameNotFoundException: env/jms/ATopic at org.apache.geronimo.naming.enc.AbstractReadOnlyContext.lookup( AbstractReadOnlyContext.java:81) at org.apache.geronimo.naming.java.RootContext.lookup( RootContext.java:51) at javax.naming.InitialContext.lookup(InitialContext.java:347) ok, i'll trying to show my configuration "more" precise form/way jms-activemq.xml -------------------------- javax.jms.Topic org.codehaus.activemq.message.ActiveMQTopic ATopic MyTopic web.xml ---------------- ATopic javax.jms.Topic geronimo-web.xml --------------------------- jms/ATopic ATopic javacode --------------- Topic topic = (Topic) ctx.lookup("java:comp/env/jms/ATopic"); //<<<<< this fails ! connection.start(); what am i doing wrong ? thank you David Jencks cc: Asunto: Re: javax.naming.NameNotFoundException: env/jms/ATopic .. help 06/06/2006 17:14 Por favor, responda a user inline On Jun 6, 2006, at 6:47 AM, jsanzala@notes.banesto.es wrote: > > > > > Hello, > > I am trying to test jms activemq working and i got a problem that i > cant > resolve ... > > I got the following plan ... > > xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0" > configId="MyJMSRId" > parentId="geronimo/activemq-broker/1.0/car"> > > > ActiveMQ RA resourceadapter-name> > name="ServerUrl">tcp://localhost:61616 > name="UserName">geronimo > name="Password">geronimo > > DefaultWorkManager > > > > > > javax.jms.ConnectionFactory connectionfactory-interface> > > tcf > > javax.jms.TopicConnectionFactory > > > > > > 10 > > 5000 > > > > > > > > > > javax.jms.Queue interface> > > org.codehaus.activemq.message.ActiveMQQueue adminobject-class> > > > MDBTransferBeanOutQueue destination-name> > name="PhysicalName">MDBTransferBeanOutQueue > > > > javax.jms.Topic interface> > > org.codehaus.activemq.message.ActiveMQTopic adminobject-class> > > > ATopic > name="PhysicalName">ATopic > > > > > It was deploy ok, i got "tcf" like connection factory, and i want to > "put/publish" a message into topic "ATopic". > > Ok, my code is so easy: > > InitialContext ctx = new InitialContext(); > TopicConnectionFactory tcf = > (TopicConnectionFactory) > ctx.lookup("java:comp/env/jms/MyJMS"); > TopicConnection connection = > tcf.createTopicConnection(); > out.println(""+connection); > out.flush(); > Topic topic = (Topic) > ctx.lookup("java:comp/env/jms/ATopic"); > connection.start(); > > TopicSession session = > connection.createTopicSession(false, > > Session.AUTO_ACKNOWLEDGE); > TopicPublisher publisher = > session.createPublisher(topic); > > TextMessage message = session.createTextMessage(); > message.setText("hola"); > publisher.publish(message); > > > then, > > "java:comp/env/jms/MyJMS" ==> into my web.xml > > > jms/MyJMS > javax.jms.ConnectionFactory > Container > Shareable > > > and into geronimo--web.xml > > > jms/MyJMS > tcf > > > > and it works ok, because i can get a object from connection > factory , but, > > how can i get a topic objecto from "ATopic" , how can i define this > process: > > > if i add to web.xml > > > jms/ATopic > > MyTopic > I assume you put this in geronimo-web.xml and the snippet below in web.xml? I see that the connector plan calls the topic "ATopic" whereas here you have "MyTopic". If this is not a typo in your mail, what happens if you correct this? In particular are there any deployment errors? If so please paste them. thanks david jencks > > and into geronimo-web.xml > > > jms/ATopic > > javax.jms.Topic > > > > > geronimo server shows a configuration problem ... > > what am i doing wrong ' > > any web/tutorial that including "working examples"? > > because, there are a lot of tutorial but i can't get that examples > works > ... > > any example aboy mdb bean (in/out) that can i use and test? > > thank you > > > Este mensaje y sus anexos pueden contener información confidencial, > por lo > que se informa de que su uso no autorizado está prohibido por la > ley. Si > Vd. considera que no es el destinatario pretendido por el > remitente, por > favor póngalo en su conocimiento por esta misma vía o por > cualquier otro > medio y elimine esta comunicación y los anexos de su sistema, sin > copiar, > remitir o revelar los contenidos del mismo a cualquier otra persona. > Cualquier información, opinión, conclusión, recomendación, etc. > contenida > en el presente mensaje no relacionada con la actividad > empresarial del > Grupo Banesto y/o emitida por persona sin capacidad para ello, > deberá > considerarse como no proporcionada ni aprobada por el Banco. > Banesto > pone los medios a su alcance para garantizar la seguridad y > ausencia de > errores en la correspondencia electrónica, pero no puede asegurar la > inexistencia de virus o la no alteración de los documentos > transmitidos > electrónicamente, por lo que declina cualquier responsabilidad a > este > respecto. > > This message and its contents may contain confidential information > and its > non-authorised use is prohibited by law. If you are not the intended > recipient of this email, please advise the sender of the fact > using the > same, or other, means and delete this message and its contents > from your > system without copying, forwarding or revealing the contents of the > message to any other person. Any information, opinion, conclusion, > recommendation, etc. contained in this message and which is > unrelated to > the business activity of Grupo Banesto and/or issued by unauthorised > personnel, shall be considered unapproved by the Bank. Banesto > implements > control measures to ensure, as far as possible, the security and > reliability of all its electronic correspondence. However, the > Bank does > not guarantee that emails are virus-free or that documents have > not be > altered and takes no responsibility in this respect. > Este mensaje y sus anexos pueden contener información confidencial, por lo que se informa de que su uso no autorizado está prohibido por la ley. Si Vd. considera que no es el destinatario pretendido por el remitente, por favor póngalo en su conocimiento por esta misma vía o por cualquier otro medio y elimine esta comunicación y los anexos de su sistema, sin copiar, remitir o revelar los contenidos del mismo a cualquier otra persona. Cualquier información, opinión, conclusión, recomendación, etc. contenida en el presente mensaje no relacionada con la actividad empresarial del Grupo Banesto y/o emitida por persona sin capacidad para ello, deberá considerarse como no proporcionada ni aprobada por el Banco. Banesto pone los medios a su alcance para garantizar la seguridad y ausencia de errores en la correspondencia electrónica, pero no puede asegurar la inexistencia de virus o la no alteración de los documentos transmitidos electrónicamente, por lo que declina cualquier responsabilidad a este respecto. This message and its contents may contain confidential information and its non-authorised use is prohibited by law. If you are not the intended recipient of this email, please advise the sender of the fact using the same, or other, means and delete this message and its contents from your system without copying, forwarding or revealing the contents of the message to any other person. Any information, opinion, conclusion, recommendation, etc. contained in this message and which is unrelated to the business activity of Grupo Banesto and/or issued by unauthorised personnel, shall be considered unapproved by the Bank. Banesto implements control measures to ensure, as far as possible, the security and reliability of all its electronic correspondence. However, the Bank does not guarantee that emails are virus-free or that documents have not be altered and takes no responsibility in this respect.