JMS Error: invalid acknowledgeMode
Hi, All We have implimented a JMS provider like the one discused by Scott Farquhar and Tim Pouyer on the 15th of November 2001 on the list (see the message from the list archive below). I get the following error message when Orion is initialising. ... Error deploying file:D:/:/orion/applications/beantest/ejb homes: JMS Error: Invalid acknowledgeMode Orion/1.5.4 initialized Our message broker is SonicMQ. Has anyone got any suggestions as to what can be causing this. Regards Justin Wood message from archive-- Magnus has said that documentation on MDB and resource provider would be comming sortly but that was some time ago so here goes nothing: First off if you want to get your MDB's to listen to a 3rd party JMS implementation you will need to write a class that implements the ResourceProvider interface provided by orion. This interface is not documented anywhere so you will just have to look at my example below. This is a fairly simple interface to implement, I have provided my implementation below which is mostly borrowed from a post that was on this mailing list a few months ago except that implementation was for TIBCO JMS and mine is for FioranoMQ, but you should be able to modify it for MQSeries. Next you will have to provide some additional xml tags in your orion-application.xml file. These tags will tell orion what class to load when looking up external resources ie. your ResourceProvider implementation. You will notice how some of the tag names will match with values found in the ResourceProvider implementation so that you may use these values in your implementation without having to rebuild your class if you want to change topics,queues,tcfs, or qcfs. I have provided and example orion-applications.xml file for you so that you can see what these tags are and where they should be placed in the file. Finaly you will have to tell your MDB what topic or queue and what tcf or qcf to listen to. This is done in your orion-ejb-jar.xml file. I will assume that you know how to set up the ejb-jar.xml file for an MDB. In the message-driven-deployment tag you will need as attributes: name=name-you-gave-in-ejb-jar.xml-file destination-location=java:comp/resource/NameOfResourceProvider/topics.Name-0f-topic connection-factory-location=java:comp/resource/NameOfResourceProvider/Name-Of-TCF min-instances=Some-Number this can be set to more plus you can supply a max-instances=Some-Number value as well. Now all you have to do is package everything up and deploy it inside orion. Nifty huh! On Thu, 2001-11-15 at 07:56, Kaseman, Mark T wrote: I have tried searching the mail archives on www.orionserver.com and at www.atlassian.com for details on making mqseries work with orion, but I can't seem to find any details. -Original Message- From: Scott Farquhar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 9:30 PM To: Orion-Interest Subject: Re: Message Driven Beans Jeff, You can setup Orion to use another JMS provider if you want to use another JMS provider such as Sonic MQ or MQ Series. This allows you to have the speed and flexibility of Orion for EJB Web (where it excels), and the reliability of a 3rd party JMS provider. We have clients who have this setup, and are quite happy with it. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World El Jeffo wrote: I must have totally missed it, does orion or will orion support message driven beans soon? If so, could you provide a few details to just point me in the right direction? If orion won't support this in the next month, would you recommend another server which might do the job well? I like orion for its simplicity, but sometimes I need more bleeding edge stuff too. Jeff package com.eximtechnologies.xmd.jms.integration.orion; import com.evermind.server.deployment.ResourceProvider; import com.evermind.server.deployment.EnvironmentPropertyDescription; import com.evermind.server.deployment.ResourceInfo; import javax.jms.TopicConnectionFactory; import javax.jms.QueueConnectionFactory; import javax.jms.XATopicConnectionFactory; import javax.jms.XAQueueConnectionFactory; import javax.naming.InitialContext; import javax.naming.NamingException; import java.util.*; public class FioranoJMSProvider implements ResourceProvider { protected TopicConnectionFactory topicConnectionFactory; protected QueueConnectionFactory queueConnectionFactory; protected XATopicConnectionFactory xaTopicConnectionFactory; protected XAQueueConnectionFactory xaQueueConnectionFactory; protected Map others = new HashMap(); protected String name = ; public EnvironmentPropertyDescription[] getPropertyDescriptions() { return null; } public String getDescription() { return A resource provider that connects Orion
JMS and load balancing
Hi. If someone knows a tutorial that cover this topic, please send me a link. It is posible to configure load balancing over JMS and two app. servers ? Each server must point to a diferent queue or it is a shared one ? What happen if one server crashes with the messages that were not processed ? It is posible for the other server to process these messages ? Thanks in advance. JJ
Re: JMS and load balancing
Hi there is a nice documentaion for this at this link http://www.orionserver.com/docs/http-clustering.html hope this will help you, Kumar - Original Message - From: Jorge Jimenez C To: Orion-Interest Sent: Monday, April 29, 2002 6:40 PM Subject: JMS and load balancing Hi. If someone knows a tutorial that cover this topic, please send me a link. It is posible to configure load balancing over JMS and two app. servers ? Each server must point to a diferent queue or it is a shared one ? What happen if one server crashes with the messages that were not processed ? It is posible for the other server to process these messages ? Thanks in advance. JJ
JMS Connection Problem
Hi All, My problem arises when I trying to communicate with JMS Server. I am running my JMS server on Server A and am trying to connect to it from Server B. But, on doing this I am getting following exception . I have checked out almost everything, but could not found the any clue. Regards, Lomesh // java.lang.SecurityException: Invalid username/password for bea (admin) at com.evermind._cd._mu(Unknown Source) at com.evermind._cd._mu(Unknown Source) at com.evermind._cd._np(Unknown Source) at com.evermind._ce._np(Unknown Source) at com.evermind.server.rmi.RMIContext.lookup(Unknown Source) at com.evermind._cf._np(Unknown Source) at com.evermind._cf.lookup(Unknown Source) at com.evermind.server.administration.ApplicationResourceFinder.getLocation(Unk nown Source) at com.evermind._ck._ho(Unknown Source) at com.evermind._ah.getEnvironmentContext(Unknown Source) at com.evermind._cf._np(Unknown Source) at com.evermind._cf.lookup(Unknown Source) at javax.naming.InitialContext.lookup(InitialContext.java:350) at elitecore.bea.web.HomePageController.init(Unknown Source) at com.evermind._ah._axe(Unknown Source) at com.evermind._ah._fpd(Unknown Source) at com.evermind._ah._bae(Unknown Source) at com.evermind._ah._bie(Unknown Source) at com.evermind._ah.init(Unknown Source) at com.evermind._ck._czc(Unknown Source) at com.evermind._ae._czc(Unknown Source) at com.evermind._ab._crc(Unknown Source) at com.evermind._ab._at(Unknown Source) at com.evermind._ae._an(Unknown Source) at com.evermind._ae._at(Unknown Source) at com.evermind.server.ApplicationServer._wh(Unknown Source) at com.evermind.server.ApplicationServer._at(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) at com.evermind._if.run(Unknown Source) //
jms and createTopic
Hi, I am using createTopic function to create a Topic , i then bind it to a jndi context. I can lookup to that topic if the application server is running on the same machine as that of the client. If the client connects to the server running on a remote machine, the lookup does not happen unless and until the topic name is present in the application-client.xml. How do i solve the problem? Harini __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Re: jms and createTopic
Hi, specify the JNDI-Name in your web.xml, e.g. : resource-ref description.../description res-ref-namejms/Topic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref resource-ref description.../description res-ref-namejms/xxxTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref Ciao TK - Original Message - From: Harini P [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 04, 2002 12:28 PM Subject: jms and createTopic Hi, I am using createTopic function to create a Topic , i then bind it to a jndi context. I can lookup to that topic if the application server is running on the same machine as that of the client. If the client connects to the server running on a remote machine, the lookup does not happen unless and until the topic name is present in the application-client.xml. How do i solve the problem? Harini __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Help getting started with JMS
I'm having some problems getting JMS up and running. I've activated the jms entry in the server.xml. I've checked the jms log file, and it seems to be getting started. I'm using the default port of 9127. Unfortunately, when I run my application client, I get the following exception: javax.jms.JMSException: Unable to connect to JMSServer (localhost:127.0.0.1:9127) I'm currently using a queue. My jms.xml configurations for this are: jms-server port="9127" host="localhost" queue-connection-factory location="jms/theQueueConnectionFactory"host="localhost"port="9127" / queue name="Demo Queue" location="jms/demoQueue" persistence-file="../persistence/jms/demoQueue.queue" descriptionA dummy queue/description/queue My jndi properties for my application are: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactoryjava.naming.provider.url=ormi://localhost/java.naming.security.principal=admin accountjava.naming.security.credentials=admin password And last but not least, my application-client.xml is: ?xml version="1.0"?!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"application-client resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/demoQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref/application-client My client program is very basic: public static void main(String [] argv) { try { Context context = new InitialContext(); QueueConnectionFactory qfactory = (QueueConnectionFactory)context.lookup("java:comp/env/jms/theQueueConnectionFactory"); Queue myqueue = (Queue)context.lookup("java:comp/env/jms/demoQueue"); QueueConnection qconn = qfactory.createQueueConnection(); qconn.start(); QueueSession qsess = qconn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QueueSender qsend = qsess.createSender(myqueue); qsend.send(qsess.createTextMessage("Message")); System.out.println("sent message!"); qconn.close(); } catch (Exception e) { e.printStackTrace(); } } Any ideas as to what I'm doing wrong?? Obviously, something is hosed on my configuration. Thanks for any help. Joe
Re: RMI client accessing JMS Topic
Your'e right RMI client will not have access to java:comp/env. I used jms/theTopic in the lookup to get the topic and the same way to get the connection. I used RMIInitialContextFactory in my jndi.properties. -kesav kumar - Original Message - From: Vidur Dhanda [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 10:12 PM Subject: Re: RMI client accessing JMS Topic Hello Kesav, Thanks for your reply. It seems to me that the problem occurs when the client is not a J2EE application client. Hence, the application-client.xml is not available. Did you modify the JMSChat example to not use the java:comp/env namespace? I believe a RMI client will not have access to the java:comp/env namespace. Regards, Vidur Kesav Kumar wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes you can use RMIInitialContextFactory to get the connection factory. I just modified the JMSChat program in the demo to use RMIInitialContext and I am able to get the factory and topic. Are you running this client program from different machine from where the server is running? I tested running the jmsclient on the same machine where the orion is running. I hope there nothing difference in running locally and running on different machine. Post your code along with jndi.properties it may help in further debugging. - -kesav kumar - - Original Message - From: Vidur Dhanda [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 8:19 AM Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPJgV/wFy+fQ1CDihEQJ2egCfbl/2D3Tl3Dw0DVOvlSCu57Prw+gAoJIB SBn6CF71MoE/Lyf4acDp75hn =TB/t -END PGP SIGNATURE- -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com
Re: Who starts an MDB's jms Connection?
Dave Ford wrote: I am creating a JMS client that sends a message to an MDB. However, when I run it, it gives a QueueConnection not started exception, implying that the queue listener connection had never been started. Shouldn't this happen automatically with a message driven bean? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com Maybe. But you do need a qcon.start() in your init method in Orion. Not in Jboss 3.0, however. -Steve -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
RMI client accessing JMS Topic
Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com
RE: RMI client accessing JMS Topic
I found it useful to look at OrionServers console, under context; in general, it seems all objects get exposed under the root context with their full qualified pathname, in your case probably something like context.lookup(com.epistemic.notification.NotificationFactory) or whatever ... -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 8:19 AM To: Orion-Interest Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com
Re: RMI client accessing JMS Topic
Hi Peter, The Orion console correctly shows jms/notificationFactory. It is only when the RMIContext.lookup happens that the client hangs. I am beginning to suspect that this is a bug. Has anyone successfully used a TopicConnectionFactory via a RMIClient? Vidur SAURUGGER,PETER (A-PaloAlto,ex2) wrote: I found it useful to look at OrionServers console, under context; in general, it seems all objects get exposed under the root context with their full qualified pathname, in your case probably something like context.lookup(com.epistemic.notification.NotificationFactory) or whatever ... -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 8:19 AM To: Orion-Interest Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com
Re: RMI client accessing JMS Topic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes you can use RMIInitialContextFactory to get the connection factory. I just modified the JMSChat program in the demo to use RMIInitialContext and I am able to get the factory and topic. Are you running this client program from different machine from where the server is running? I tested running the jmsclient on the same machine where the orion is running. I hope there nothing difference in running locally and running on different machine. Post your code along with jndi.properties it may help in further debugging. - -kesav kumar - - Original Message - From: Vidur Dhanda [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 8:19 AM Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPJgV/wFy+fQ1CDihEQJ2egCfbl/2D3Tl3Dw0DVOvlSCu57Prw+gAoJIB SBn6CF71MoE/Lyf4acDp75hn =TB/t -END PGP SIGNATURE-
Re: RMI client accessing JMS Topic
Hello Kesav, Thanks for your reply. It seems to me that the problem occurs when the client is not a J2EE application client. Hence, the application-client.xml is not available. Did you modify the JMSChat example to not use the java:comp/env namespace? I believe a RMI client will not have access to the java:comp/env namespace. Regards, Vidur Kesav Kumar wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes you can use RMIInitialContextFactory to get the connection factory. I just modified the JMSChat program in the demo to use RMIInitialContext and I am able to get the factory and topic. Are you running this client program from different machine from where the server is running? I tested running the jmsclient on the same machine where the orion is running. I hope there nothing difference in running locally and running on different machine. Post your code along with jndi.properties it may help in further debugging. - -kesav kumar - - Original Message - From: Vidur Dhanda [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 8:19 AM Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS TopicConnectionFactory? In my code, an ApplicationClient can access the TopicConnectionFactory using the java:comp/env/jms context but an RMI client hangs when it tries to access the same TopicConnectionFactory through the jms/ context. In jms.xml, there is an entry for the TopicConnectionFactory as: topic-connection-factory location=jms/notificationFactory/ and the client code hangs on the call: context.lookup(jms/notificationFactory) at RMIContext.lookup () [line 92]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPJgV/wFy+fQ1CDihEQJ2egCfbl/2D3Tl3Dw0DVOvlSCu57Prw+gAoJIB SBn6CF71MoE/Lyf4acDp75hn =TB/t -END PGP SIGNATURE- -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com
Who starts an MDB's jms Connection?
I am creating a JMS client that sends a message to an MDB. However, when I run it, it gives a QueueConnection not started exception, implying that the queue listener connection had never been started. Shouldn't this happen automatically with a message driven bean? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com
Re: Open JMS with Orion for MDB
Hi, I used Orion 1.5.4 with OpenJms 0.7.2. Look at resourceprovider.html page in Orion's docs, it describes how to map jndi names to the OpenJms scope. But what probably does not work is using durable subscriber in MDB (because there is no possibility to specify subscriber name in DD). TK - Original Message - From: Vani H.S. [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, March 08, 2002 7:51 PM Subject: Open JMS with Orion for MDB Hi All, I have an MDB running fine on Orion. I have an application client, that sends a message to the queue. When I do that, my MDB's onMessage() gets called and I can see the messages on Orion server console. I tried to integrate Orion with Open JMS. I referred to the document Using OpenJMS with Orion at the orion support web site. I followed all the steps required described in that document. Now, when I ran the client, the message goes to the queue in Open JMS. But my MDB's( deployed on Orion ) onMessage() method does not get called. Please, can you tell me if I can use Open JMS with Orion for MDBs? If not, which JMS provider should I use? Please help. Thanks, Vani _ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Open JMS with Orion for MDB
Hi All, I have an MDB running fine on Orion. I have an application client, that sends a message to the queue. When I do that, my MDB's onMessage() gets called and I can see the messages on Orion server console. I tried to integrate Orion with Open JMS. I referred to the document Using OpenJMS with Orion at the orion support web site. I followed all the steps required described in that document. Now, when I ran the client, the message goes to the queue in Open JMS. But my MDB's( deployed on Orion ) onMessage() method does not get called. Please, can you tell me if I can use Open JMS with Orion for MDBs? If not, which JMS provider should I use? Please help. Thanks, Vani _ Chat with friends online, try MSN Messenger: http://messenger.msn.com
JMS bind-permissions and remote-access deployments
please help if you can I'm trying to deploy a second application on an Orion instance that is already bound to another instance of Orion via RMI configuration This RMI binding is part of a configuration to deploy a single application on different servers, one with a remote ejb module This works wonderfully (just followed the remote-access tutorial for that configuration) However, when I add my application, which depends on a local JMS server configuration, to the instance that is configured as the RMI client (ie the one containing the remote server reference to the RMI host), my Orion (RMI client instance) hangs on startup and throws the following security exceptions, regardless of the JMS configuration on the RMI host instance of Orion (ie enabled or disabled) Error binding server: javalangSecurityException: User does not have a bind-permission for jms/demoTopic [repeats for each topic, queue, and factory] In addition, the RMI host instance throws this exception in the console when the lockup occurs javalangNullPointerException at comevermind_dl_gi at comevermind_dlresolveClass at javaioObjectInputStreaminputClassDescriptor (java:918) at javaioObjectInputStreamreadObject (java:366) at javaioObjectInputStreamreadObject (java:236) at javaioObjectInputStreaminputObject (java:1186) at javaioObjectInputStreamreadObject (java:386) at javaioObjectInputStreamreadObject (java:236) at comevermind_cd_nh at comevermind_cdrun at comevermind_ifrun Is this a bug or do I have to do something to configure the JMS server not to use the remote RMI binding? It appears as if some sort of RMI lookup to the bound RMI host from the JMS server on the RMI client machine is getting stuck -- I just don't understand why it seems like the JMS server is trying to bind to the RMI host rather than the local server which should be providing the JMS server to the application I've deployed locally Or maybe I just don't understand the relationship between JMS and RMI? Thanks in advance for any help or direction you can provide Jason PS If I shut down the host RMI instance, the other instance unlocks, and outputs Error binding to server: comevermindserverrmiOrionRemoteException: IOError: Descriptor not a socket: socket write error; nested exception is: [repeats this about 20 to 25 times] then initializes properly and my new application works perfectly, though my application with the remote ejb-module is now unusable without the remote RMI binding
Re: Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages)
Well, I just tested an MDB with SwiftMQ, and Orion still stuffs up the message ordering. --Geoff Soutter Please read the EJB2.0 spec before recording this as a bug. Message order is not guaranteed in MDB's. - Original Message - From: Geoff Soutter [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, February 17, 2002 10:45 PM Subject: Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages) Well, I just tested an MDB with SwiftMQ, and Orion still stuffs up the message ordering. Presumably this means it's broken in the MDB implemenation rather than in Orion's JMS code, which is a pity. So, for all those using Orion MDBs, and relying on message ordering being preserved (if there are any apart from me :-), please check out bug 729 in Bugzilla. It contains demo code to demonstrate the problem under both Orion JMS and SwiftMQ. http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=729 Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: Monday, 18 February 2002 9:18 AM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages)
Hi there, Actually I didn't read the EJB spec as I had guessed it was a JMS bug originally, so thanks for pointing that out. Very lazy of me. However, section 15.4.6 Concurrency of Message Processing of the EJB 2.0 spec says: the container should attempt to deliver messages in order when it does not impair the concurrency of message processing. I have max-instances set to 1, which means that there is _no_ concurrency. Thus, the container ought to deliver messages in order. Note also that the JMS spec mentions that messages ought to be delivered in order as well. Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Poop Sent: Tuesday, 19 February 2002 12:11 AM To: Orion-Interest Subject: Re: Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages) Well, I just tested an MDB with SwiftMQ, and Orion still stuffs up the message ordering. --Geoff Soutter Please read the EJB2.0 spec before recording this as a bug. Message order is not guaranteed in MDB's. - Original Message - From: Geoff Soutter [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, February 17, 2002 10:45 PM Subject: Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages) Well, I just tested an MDB with SwiftMQ, and Orion still stuffs up the message ordering. Presumably this means it's broken in the MDB implemenation rather than in Orion's JMS code, which is a pity. So, for all those using Orion MDBs, and relying on message ordering being preserved (if there are any apart from me :-), please check out bug 729 in Bugzilla. It contains demo code to demonstrate the problem under both Orion JMS and SwiftMQ. http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=729 Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: Monday, 18 February 2002 9:18 AM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: fyi: 1.5.4 still stacks rather than queues JMS messages
Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve
RE: fyi: 1.5.4 still stacks rather than queues JMS messages
Yes, they should be received in order, but not necessarily stored/retrieved in order. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Soutter Sent: Sunday, February 17, 2002 5:18 PM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve
Orion MDB reverses message order with SwiftMQ as well as OrionJMS (was RE: fyi: 1.5.4 still stacks rather than queues JMS messages)
Well, I just tested an MDB with SwiftMQ, and Orion still stuffs up the message ordering. Presumably this means it's broken in the MDB implemenation rather than in Orion's JMS code, which is a pity. So, for all those using Orion MDBs, and relying on message ordering being preserved (if there are any apart from me :-), please check out bug 729 in Bugzilla. It contains demo code to demonstrate the problem under both Orion JMS and SwiftMQ. http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=729 Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: Monday, 18 February 2002 9:18 AM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve
RE: fyi: 1.5.4 still stacks rather than queues JMS messages
Hi Russ, What exactly do you mean by stored/retrieved? Is there a reference in the spec you can point out? Cheers Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Russ White Sent: Monday, 18 February 2002 11:47 AM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Yes, they should be received in order, but not necessarily stored/retrieved in order. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Soutter Sent: Sunday, February 17, 2002 5:18 PM To: Orion-Interest Subject: RE: fyi: 1.5.4 still stacks rather than queues JMS messages Hi Mike, I didn't see that comment. Unfortunately this list is so flakey that I only get about 75% of the messages. I just checked the JMS 1.02 spec, here's what it has to say about message order (in 4.4.10.1 Order of Message Receipt): JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 4.4.10.2, Order of Message Sends, for a few qualifications). So it seems that, contrary to what that someone said, message order _is_ important with JMS. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Cannon-Brookes Sent: Saturday, 16 February 2002 8:43 AM To: Orion-Interest Subject: Re: fyi: 1.5.4 still stacks rather than queues JMS messages Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve
Re: fyi: 1.5.4 still stacks rather than queues JMS messages
Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
Re: fyi: 1.5.4 still stacks rather than queues JMS messages
Geoff, Also as someone said on this list just a few days ago - as per the JMS spec there is no guarantee that your messages turn up in the sequence you sent them. Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world On 16/2/02 12:55 AM, Stephen Davidson ([EMAIL PROTECTED]) penned the words: Geoff Soutter wrote: Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff I am using the Orion JMS, but the way the code is set up, it does not care about the order the messages arrived. I had never noticed the Out of Order issue, as it was not applicable. -Steve
fyi: 1.5.4 still stacks rather than queues JMS messages
Re the problem reported a couple weeks back by Jorge Jimenez and confirmed by myself, I tested 1.5.4 to see if they had fixed this problem, but it's still there. Just set max-instances to 1 and load up with a lot of messages, it works just like a stack. Doh. Maybe I'll have time to put this into Bugzilla next week... Is _everyone_ using a third party JMS with Orion? geoff
Re: JMS and message order processing
Hi everybody, can you take off my email from your list ? Because I don't want to receive any mail about Orion. Tanks David On Mon, 2002-02-11 at 09:19, Jorge Jimenez C wrote: I'm developing a jms based application and the order in wich messages are processed is very important (because of bussiness rules). After doing some test using a queue connection factory with a maximum of 10 instances of my Message Driven Bean, I noted that after completing 10 instances, the ben start processing messages in a stack order. That is, the last message received is the next to be processed, not the first that the queue received. I did exactly the same test in JBoss and the messages are processed in queue order, not in stack order. Anybody knows any configuration parameter that can affect this processing order ? Thanks in advance. An example of the server output sending 100 messages and taking a random (1-10 seconds) to complete processing. Message 1 received Message 2 received Message 3 received Message 4 received Message 5 received Message 6 received Message 7 received Message 1 finished Message 8 received Message 9 received Message 2 finished Message 10 received Message 11 received Message 12 received Mesage 100 received Message 99 received Message 3 finished Message 98 received ...and so on ...
Re: Application Client JMS
Hi, no, it is an application client, i.e. a normal Java - Applikation. I´d like to write a small Swing - app which monitors the messaging. I´m using Orion´s JMS. I want the application to look up an existing Topic on the server via JNDI and post / receive messages to / from this Topic. thanks, Jochen Manoj Sadangi schrieb: Hi Jochen , The MessageMonitor class you have written , is it a servlet? r u using Orion's JMS? thanks, manoj. Jochen Kressin wrote: Hi, i have some problems writing an application client that uses JMS. I have created a SessionBean which publishes messages and a MDB which receives the messages. This works fine. I now want to write a client application that can participate in messaging. The client connects to the server without problems, but messages published by the client seem to go nowhere. The MDB does not receive anything. Also, the client does not receive any messages sent by the SessionBean. The directory structure of the client app is: client +--- MessageMonitor.class +--- META-INF +---application-client.xml +---orion-application-client.xml The application-client.xml: ... resource-ref res-ref-namejms/TopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/BenelogNewOrder/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref where BenelogNewOrder is the name of the Topic I would like to subscribe to. The client looks up the Topic using something like: lookup(java:comp/env/jms/BenelogNewOrder); Please give me some hint what i am doing wrong. Also, any informations where to find more about app-clients Orion is appreciated. Neither orion nor atlassian seem to have tutorials on this topic. Thanks in advance! Jochen -- - Jochen Kressin [EMAIL PROTECTED] Interested in distributed computing? http://www.jeremi.org
Re: MQSeries as JMS provider?
Look into the archives. Some time back Kaseman, Mark T has submitted his code for MQ-Series JMS integration. I am attaching his code and mail again I wanted to write an MVS Batch COBOL program that updates an MVS (OS/390) MQSeries queue and have it trigger a MDB on an Orion server. To do this, my MVS MQSeries has a remote queue definition pointing to an NT Server running MQSeries and Orion 1.5.2. Next I followed the Resource Providers documentation on www.orionserver.com and used the ContextScanningResourceProvider without any changes to be my MQSeries resource provider. I compiled this class and created a jar file, which I added to Orion/Lib, along with the various IBM MQSeries jars and the Sun JNDI File System provider jars. I then made the necessary Orion xml file updates and to my amazement it works. I can update an MVS MQSeries queue and have it trigger a Orion MDB on an NT server. The zip file contains all source code. mdb_orion_jms.ZIP Below is the sample output from the Orion DOS prompt. I tried writting to the MDB queue via a jsp = servlet = SLSB and from an MVS Batch COBOL program. Auto-unpacking C:\TEMP\orion\applications\mdb-orion.ear... done. Auto-unpacking C:\TEMP\orion\applications\mdb-orion\mdb-orion-web.war... done. Auto-deploying mdb-orion-web (Assembly had been updated)... Auto-deploying mdb-orion-ejb.jar (ejb-jar.xml had been touched since the previou s deployment)... done. Orion/1.5.2 initialized Auto-deploying ejb - servlet mdb test (Assembly had been updated)... SampleBeanSLSB: message = msg via jsp to servlet InitialDirContext ctx done: javax.naming.InitialContext@470b0d ctx QCF done: com.ibm.mq.jms.MQQueueConnectionFactory@bd614064 queueFactory.createQueueConnection() done: com.ibm.mq.jms.MQQueueConnection@3ef361 queueConnection.createQueueSession() done: (Queue)ctx.lookup() done: queueSession.createSender(queue) done: queueSession.createTextMessage() done: message.setText(msg) done: queueSender.send(queue, message) done: Bean got message: msg via jsp to servlet queueConnection.close() done: Bean got message: TEST MVS-TO-NT TALKING - Original Message - From: Keith Kee [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 9:30 PM Subject: MQSeries as JMS provider? Hi: Has anyone have any sucess integrating MQSeries as the JMS provider for the orion server? Thanks keith mdb_orion_jms.ZIP Description: Binary data
Application Client JMS
Hi, i have some problems writing an application client that uses JMS. I have created a SessionBean which publishes messages and a MDB which receives the messages. This works fine. I now want to write a client application that can participate in messaging. The client connects to the server without problems, but messages published by the client seem to go nowhere. The MDB does not receive anything. Also, the client does not receive any messages sent by the SessionBean. The directory structure of the client app is: client +--- MessageMonitor.class +--- META-INF +---application-client.xml +---orion-application-client.xml The application-client.xml: ... resource-ref res-ref-namejms/TopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/BenelogNewOrder/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref where BenelogNewOrder is the name of the Topic I would like to subscribe to. The client looks up the Topic using something like: lookup(java:comp/env/jms/BenelogNewOrder); Please give me some hint what i am doing wrong. Also, any informations where to find more about app-clients Orion is appreciated. Neither orion nor atlassian seem to have tutorials on this topic. Thanks in advance! Jochen -- - Jochen Kressin [EMAIL PROTECTED] Interested in distributed computing? http://www.jeremi.org
Re: Application Client JMS
Hi Jochen , The MessageMonitor class you have written , is it a servlet? r u using Orion's JMS? thanks, manoj. Jochen Kressin wrote: Hi, i have some problems writing an application client that uses JMS. I have created a SessionBean which publishes messages and a MDB which receives the messages. This works fine. I now want to write a client application that can participate in messaging. The client connects to the server without problems, but messages published by the client seem to go nowhere. The MDB does not receive anything. Also, the client does not receive any messages sent by the SessionBean. The directory structure of the client app is: client +--- MessageMonitor.class +--- META-INF +---application-client.xml +---orion-application-client.xml The application-client.xml: ... resource-ref res-ref-namejms/TopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/BenelogNewOrder/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref where BenelogNewOrder is the name of the Topic I would like to subscribe to. The client looks up the Topic using something like: lookup(java:comp/env/jms/BenelogNewOrder); Please give me some hint what i am doing wrong. Also, any informations where to find more about app-clients Orion is appreciated. Neither orion nor atlassian seem to have tutorials on this topic. Thanks in advance! Jochen
MQSeries as JMS provider?
Hi: Has anyone have any sucess integrating MQSeries as the JMS provider for the orion server? Thanks keith
Async JMS onMessage() broken in Orion 1.5.2?
I've been porting some JMS code from WebLogic 6.0 to Orion 1.5.2, and have run into a problem -- onMessage() code that works for WebLogic doesn't work for Orion 1.5.2. Bugzilla was lacking any bugs on it, so I went ahead and added one. Has anyone else had any experience with this problem? Any thoughts? Here's the code to repro the problem -- assume there is a JMS queue defined in config/jms.xml called testQueue. It works fine with WebLogic 6.0... // --- import java.io.*; import javax.jms.*; import javax.naming.*; import java.util.Hashtable; public class AsyncJmsTester implements MessageListener { public static final String ORION_ICFACTORY = com.evermind.server.ApplicationClientInitialContextFactory; public static final String ORION_QCONFACTORY = jms/QueueConnectionFactory; public static final String ORION_PROVIDER_URL = ormi://localhost; public static final String WEBLOGIC_ICFACTORY = weblogic.jndi.WLInitialContextFactory; public static final String WEBLOGIC_QCONFACTORY = javax.jms.QueueConnectionFactory; public static final String WEBLOGIC_PROVIDER_URL = t3://localhost:7001; public static final String ICFACTORY = ORION_ICFACTORY; public static final String QCONFACTORY = ORION_QCONFACTORY; public static final String PROVIDER_URL = ORION_PROVIDER_URL; public static void main(String[] args) { try { System.out.println( Creating Initial Context... ); Hashtable env = new Hashtable(); env.put( Context.INITIAL_CONTEXT_FACTORY, ICFACTORY ); env.put( Context.PROVIDER_URL, PROVIDER_URL ); env.put( Context.SECURITY_PRINCIPAL, testadmin ); env.put( Context.SECURITY_CREDENTIALS, adminpass ); InitialContext ic = new InitialContext( env ); System.out.println( Create Queue objects... ); QueueConnectionFactory factory = (QueueConnectionFactory)ic.lookup( QCONFACTORY ); QueueConnection connection = factory.createQueueConnection(); connection.start(); Queue queue = (Queue)ic.lookup( testQueue ); System.out.println( Create a message listener... ); AsyncJmsTester ajt = new AsyncJmsTester( connection, queue ); System.out.println( Creating session... ); QueueSession session = connection.createQueueSession( false, QueueSession.AUTO_ACKNOWLEDGE ); System.out.println( Creating an object message... ); ObjectMessage msg = session.createObjectMessage(); msg.setObject( Hello World! ); System.out.println( Sending message... ); session.createSender( queue ).send( msg ); System.out.println( Sleeping... ); Thread.sleep( 2000 ); System.out.println( Done! ); } catch( JMSException e ) { System.err.println( Communication error: + e.toString() ); } catch( NamingException e ) { System.err.println( Error looking up objects: + e.toString() ); } catch( InterruptedException e ) { System.err.println( Interrupted... ); } } public AsyncJmsTester( QueueConnection connection, Queue queue ) throws JMSException { QueueSession session = connection.createQueueSession( false, QueueSession.AUTO_ACKNOWLEDGE ); // This method doesn't work either... // session.setMessageListener( this ); session.createReceiver( queue ).setMessageListener( this ); } public void onMessage( Message message ) { try { ObjectMessage msg = (ObjectMessage)message; System.out.println( I got a message: + msg.getObject().toString() ); } catch( JMSException e ) { System.err.println( JMS error: + e.getMessage() ); } } } // ---
JMS Question
I've inherited some code and it doesn't look complete, and I'm not even sure that it will work- at least with Orion. So... We've got multiple servers- some are always connected, some are only connected periodically, some are only connected when the sysadmin physically performs some task and then only for a limited time. The goal is that we'd like to be able to push a message to a specific server through user control. We know all of the addresses of all the possible machines ahead of time, so having the user enter a JNDI name is not an issue, and I can setup a servlet/whatever to provide this selection process. The previous programmer on this project thought that JMS would be a good solution for this, with each server being a JMS server. However I'm not certain that this is going to work-- at least not with Orion out of the box. Current Basic flow: Client creates a temporary queue for message responses Client selects a particular machine (i.e. JNDI name) We write to a Queue on the remote server, setting reply to to be the temp queue on the local JMS server. Remote system processes message and sends back a response to the temp queue. Is the above in any way, shape, or form feasible with Orion? I've been doing a crash course on JMS (thanks to O'reilly), but after reading the books and the Orion docs, I'm thinking that this may be better suited for a servlet based approach. Any help is appreciated! robert hedin NDS Systems, Inc.
RE: JMS hangs on TopicSession.createSubscriber
I found several references to this bug in the mailing list archives but it still seems to be a problem (in 1.5.2). The workaround suggested was to stop the TopicConnection associated with the TopicSession and then do the createSubscriber and then restart the connection but when I do that, it hangs in the TopicConnection.start() call. Does anyone have a fix or workaround for this? Thanks
jms problem
hi ! i am trying to subscribe to topics from my java standalone client application. everything works fine if i use OpenJMS with Orion Application server. when using orion's JMS server i run into the following problem: the client successfully subscribes to the first topic, but hangs when subscribung to the second topic while calling createSubscriber in TopicSession. here is a code snippet: public OrionJMSSubscriberWrapper(Context context, TopicConnection connection, String topicName) throws JMSException, NamingException { subscriberSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); topic = (Topic)context.lookup(topicName); Trace.mar(create subscriber); subscriber = subscriberSession.createSubscriber(topic, null, true); Trace.mar(created subscriber); } as i said, the first topic works fine, the second hangs at the createSubscriber line. i changed the order of the topics, it is always just one that is subscribed successfully. anyone ever had this problem? thanks for your help! markus
RE: MDB using iBus JMS provider
Thanks, but I've already have a resource wrapper. It turned out to be a problem with the JMS session auto acknowledge parameter setting it in the orion-ejb-jar solved my problem. At 01:42 AM 02-01-02 -0500, you wrote: you have to write resource wrapper around the external jms implementions factory. see the mail archive for an example -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of udi h bauman Sent: Tuesday, January 01, 2002 12:51 PM To: Orion-Interest Subject: MDB using iBus JMS provider Hi Help please: I've configured iBus//MessageServer to run as Orion's JMS provider, have no problem sending messages from my EJBs clients, but none of them reach my MDB's. In my client, when accessing the topic from the iBus TopicConnectionFactory I specify only the topic name (MyTopic), in the orion-ejb-jar.xml I specify the full location (destination-location=java:comp/resource/MessageServer/MyTopi c). Is this correct? Any help much appreciated! udi udi h bauman developer 3D collaboration SGS - OptiTex http://www.OptiTex.com Phone: (972) 3 904 9979 ext. 214
MDB using iBus JMS provider
Hi Help please: I've configured iBus//MessageServer to run as Orion's JMS provider, have no problem sending messages from my EJBs clients, but none of them reach my MDB's. In my client, when accessing the topic from the iBus TopicConnectionFactory I specify only the topic name (MyTopic), in the orion-ejb-jar.xml I specify the full location (destination-location=java:comp/resource/MessageServer/MyTopic). Is this correct? Any help much appreciated! udi
RE: MDB using iBus JMS provider
you have to write resource wrapper around the external jms implementions factory. see the mail archive for an example -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of udi h bauman Sent: Tuesday, January 01, 2002 12:51 PM To: Orion-Interest Subject: MDB using iBus JMS provider Hi Help please: I've configured iBus//MessageServer to run as Orion's JMS provider, have no problem sending messages from my EJBs clients, but none of them reach my MDB's. In my client, when accessing the topic from the iBus TopicConnectionFactory I specify only the topic name (MyTopic), in the orion-ejb-jar.xml I specify the full location (destination-location=java:comp/resource/MessageServer/MyTopi c). Is this correct? Any help much appreciated! udi
JMS over SSL?
Hey all, I've been evaluating some JMS providers including Orion. One of my requirements is that the messages can be sent over SSL. I got this to work with OpenJMS and was wondering if Orion supported it as well. If so, how do I set it up? Thanks in advance, Adam Kipnis JAMDAT Mobile [EMAIL PROTECTED]
Re: JMS over SSL?
Orion doesn't support JMS over SSL. You can however plug OpenJMS into Orion as a resource provider, and use it's capabilities. Hope this helps, Cheers, Mike -- Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World On Sat, 2001-12-08 at 05:54, Kipnis, Adam wrote: Hey all, I've been evaluating some JMS providers including Orion. One of my requirements is that the messages can be sent over SSL. I got this to work with OpenJMS and was wondering if Orion supported it as well. If so, how do I set it up? Thanks in advance, Adam Kipnis JAMDAT Mobile [EMAIL PROTECTED]
MDB - JMS
Hi, I'm porting a project from a other app-server to orion. My MDB seems not to receive the messages and I'm missing documentaion to MBD's. Where can I find docu and examples? How can I check if a (without exceptions) posted message indeed is queued? How to assign a MDB to a queue in orion? Thanks Andreas
RE: MDB - JMS
After deploying to Orion do the following: 1. Shutdown 2. find the orion-ejb-jar.xml for you mdb in the orion\application-deployments directory. 3. Add the destination-location attribute to your mdb's message-driven-deployment tag where the destination-location corresponds to the jndi location of your topic or queue, i.e. message-driven-deployment name=com.fred.FredsMessageBean destination-location=jms/theTopic Hope this helps. Frank Frederick -Original Message- From: Schouten, Andreas [EMAIL PROTECTED]@MCGRAW-HILL Sent: Thursday, December 06, 2001 8:11 AM To: Orion-Interest Subject: MDB - JMS Hi, I'm porting a project from a other app-server to orion. My MDB seems not to receive the messages and I'm missing documentaion to MBD's. Where can I find docu and examples? How can I check if a (without exceptions) posted message indeed is queued? How to assign a MDB to a queue in orion? Thanks Andreas msg17265/bin0.bin Description: application/ms-tnef
JMS: Id Topic hierarchy supported.
Hi Folks, I would like to know whether Topic hierarchy is supported with Orion JMS because the JMS specification says that supporting this feature is provider-dependant. Im thinking about my event-driven design, and it would be nice if Message-Driven Bean would be able to subscribe to a topic which contain child-topics and receive both events posted to the topic and to its child-topics. Thanks, Yuval.
Orion 1.5.2, Tomcat 4.0 and JMS
Has anybody used these two successfully to send JMS messages? Other combinations of Orion (1.4.5) and Tomcat (3.2.1) work fine, but this particular combination throws an IllegalAccessError when one Orion class calls another Orion class (to send a JMS message): java.lang.IllegalAccessError: try to access field com.evermind.server.jms.EvermindQueueConnection._pwb from class com.evermind._eeb at com.evermind._eeb.send(Unknown Source) at com.evermind._eeb.send(Unknown Source) at com.evermind._eeb.send(Unknown Source) at com.xxx... Using Mocha I can see that the field _pwd is a static int, so it can only be accessed from classes/subclasses within the same package. com.evermind._eeb is not in the same package so it isn't allowed access! I cannot explain why I am able to get this same version of Orion working in other situations given that the above access violation seems unavoidable. BTW I have put orion.jar, jaas.jar and ejb.jar into my web-app's WEB-INF/lib directory. Thanks for any ideas, Dan [EMAIL PROTECTED] _ Alison Associates The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _ This message has been checked for all known viruses by MessageLabs.
Oracle AQ / JMS as Message Driven Bean source. ( ResourceProviders )
Title: Oracle AQ / JMS as Message Driven Bean source. ( ResourceProviders ) does anyone have an example of using the JMS wrapper around Oracle AQ? Seeing as OC4J is Orion, this should be something that is either on the Oracle site or the Orion site, but is neither place? I need to be able to access the JMS implementation of Oracle AQ from a Message Driven Bean? Any code examples out there?
Urgent :: How to access JMS service from Servlet/JSP
Hello All, Here I am describing whole situation in project. My site will be hosted on three different servers EACH having orion server running on it with JMS Server. Now, in my site if any one makes changes, that changes should be reflected in other two servers at a time. Now, for that I am using JMS. For each changes I am calling servlet and that servlet will in turn contact to other two servers for reflection of changes. Now, I am using property file( as in attachment) that have each servers required(Contact) information. Now, while initialization of server I am calling one servlet, that in turn call a class ApplicationReflector.java ( as in attachment ). This class reads property file and create instance of class ApplicationReflector itself. But it gives error as below :: javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-clientchapter for requirements and format of the file) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (Unknown Source) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.createInstances(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.clinit(Unknown Source) at elitecore.bea.web.util.LoadServlet.init(Unknown Source) at com.evermind._ah._axe(Unknown Source) at com.evermind._ah._fpd(Unknown Source) at com.evermind._ah._bae(Unknown Source) at com.evermind._ah._bie(Unknown Source) at com.evermind._ah.init(Unknown Source) at com.evermind._ck._czc(Unknown Source) at com.evermind._ae._czc(Unknown Source) at com.evermind._ab._au(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) Well, I have also made entry in the web.xml(as in attachment ) as you said. Also, I am able to call ejb from servlet with same kind of entry. ANY CLUE ??? ANY HELP WOULD BE HIGHLY APPRECIATE ... AS I AM NOT GETTING OUT OF THIS PROBLEM... THANKS IN ADVANCE... Regards, Lomesh Contractor. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kesav Kumar Sent: Monday, November 12, 2001 3:17 PM To: Orion-Interest Subject: Re: Urgent :: How to access JMS service from Servlet/JSP You don't need application-client.xml if you want to access JMS from servlets. You have to write your queueconnection and queues in web.xml. Add resoure-ref entries in web.xml resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/processQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Once you have the resource-ref entries in web.xml from your servlet write the following Context ctx = new InitialContext(); QueueConnection con = (QueueConnection)ctx.lookup(java:comp/env/jms/theQueueConnectionFactory); Queue queue = (Queue)ctx.lookup(java:comp/env/jms/processQueue); I didn't understand your question of different containers? Do you mean different containers different orion server? If you want to get access JMS queue/connection of different orion server provide proper JNDI properties for obtaining InitialContext. Example: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://host/applicationname); env.put(Context.SECURITY_PRINCIPAL, username); env.put(Context.SECURITY_CREDENTIALS, password); Context ctx = new InitialContext(env); Rest of the code is common. Hope this helps you. - Original Message - From: Lomesh Contractor [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, November 11, 2001 10:21 PM Subject: Urgent :: How to access JMS service from Servlet/JSP Hi Steve, Well, I am able to run a standalone client that accesses JMS service, but when I access that service using servlet it shows following error:: javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-c lient chapter for requirements and format of the file) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (Unknown
Re: Re[2]: Urgent :: How to access JMS service from Servlet/JSP
Thank you very much. I sincerely appreciate your help. Best regards, Vani From: Sergey G. Aslanov [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re[2]: Urgent :: How to access JMS service from Servlet/JSP Date: Tue, 13 Nov 2001 09:52:12 +0300 VHS I think, I am also facing a similar problem. I have followed the steps you VHS have mentioned below but when I try to deploy it, it gives the following VHS error message: VHS Error instantiating application: Error loading web-app 'war-ic' at VHS D:\orion\applications\PhotonManagementConsoleApp\war-ic: Unknown VHS resource-ref tag: res-ref-type Must be res-type, not res-ref-type! ^^ VHS Can you please let me know if there are any other steps. VHS Note: I have created the ear file using ant. VHS Thanks, VHS Vani From: Kesav Kumar [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Urgent :: How to access JMS service from Servlet/JSP Date: Mon, 12 Nov 2001 01:47:03 -0800 You don't need application-client.xml if you want to access JMS from servlets. You have to write your queueconnection and queues in web.xml. Add resoure-ref entries in web.xml resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/processQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Once you have the resource-ref entries in web.xml from your servlet write the following Context ctx = new InitialContext(); QueueConnection con = (QueueConnection)ctx.lookup(java:comp/env/jms/theQueueConnectionFactory); Queue queue = (Queue)ctx.lookup(java:comp/env/jms/processQueue); I didn't understand your question of different containers? Do you mean different containers different orion server? If you want to get access JMS queue/connection of different orion server provide proper JNDI properties for obtaining InitialContext. Example: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://host/applicationname); env.put(Context.SECURITY_PRINCIPAL, username); env.put(Context.SECURITY_CREDENTIALS, password); Context ctx = new InitialContext(env); Rest of the code is common. Hope this helps you. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: Urgent :: How to access JMS service from Servlet/JSP
You don't need application-client.xml if you want to access JMS from servlets. You have to write your queueconnection and queues in web.xml. Add resoure-ref entries in web.xml resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/processQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Once you have the resource-ref entries in web.xml from your servlet write the following Context ctx = new InitialContext(); QueueConnection con = (QueueConnection)ctx.lookup(java:comp/env/jms/theQueueConnectionFactory); Queue queue = (Queue)ctx.lookup(java:comp/env/jms/processQueue); I didn't understand your question of different containers? Do you mean different containers different orion server? If you want to get access JMS queue/connection of different orion server provide proper JNDI properties for obtaining InitialContext. Example: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://host/applicationname); env.put(Context.SECURITY_PRINCIPAL, username); env.put(Context.SECURITY_CREDENTIALS, password); Context ctx = new InitialContext(env); Rest of the code is common. Hope this helps you. - Original Message - From: Lomesh Contractor [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, November 11, 2001 10:21 PM Subject: Urgent :: How to access JMS service from Servlet/JSP Hi Steve, Well, I am able to run a standalone client that accesses JMS service, but when I access that service using servlet it shows following error:: javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-c lient chapter for requirements and format of the file) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (Unknown Source) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.createInstances(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.clinit(Unknown Source) at elitecore.bea.web.util.LoadServlet.init(Unknown Source) at com.evermind._ah._axe(Unknown Source) at com.evermind._ah._fpd(Unknown Source) at com.evermind._ah._bae(Unknown Source) at com.evermind._ah._bie(Unknown Source) at com.evermind._ah.init(Unknown Source) at com.evermind._ck._czc(Unknown Source) at com.evermind._ae._czc(Unknown Source) at com.evermind._ab._au(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) So, to eliminate this error where I have to make changes ?? Also, I want to access JMS service of multiple servers. So, to achieve that where could I have to make changes in the configuration files (xml files). If you are familiar with accessing EJB of multiple servers then that also would be helpful. And if you can send sample configuration files that also would be helpful to me. Waiting for reply.. Regards, Lomesh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Davidson Sent: Monday, November 12, 2001 6:59 AM To: Orion-Interest Subject: Re: How to accesss JMS service from Servlet/JSP Lomesh Contractor wrote: Hi All, How can I access JMS service of different **container(s)** from my servlet/jsp ?? Which configuration files I have to change to achieve it ?? web.xml or ejb-jar.xml ?? If so, Can you send me a sample configuration file ??? Waiting for reply.. Lomesh. Hi Lomesh. Check the orion docs on the JMS.xml file. Unfortunately, I do not have any good examples to send at this time. -Steve -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
Re: Urgent :: How to access JMS service from Servlet/JSP
I think, I am also facing a similar problem. I have followed the steps you have mentioned below but when I try to deploy it, it gives the following error message: Error instantiating application: Error loading web-app 'war-ic' at D:\orion\applications\PhotonManagementConsoleApp\war-ic: Unknown resource-ref tag: res-ref-type Can you please let me know if there are any other steps. Note: I have created the ear file using ant. Thanks, Vani From: Kesav Kumar [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Urgent :: How to access JMS service from Servlet/JSP Date: Mon, 12 Nov 2001 01:47:03 -0800 You don't need application-client.xml if you want to access JMS from servlets. You have to write your queueconnection and queues in web.xml. Add resoure-ref entries in web.xml resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/processQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Once you have the resource-ref entries in web.xml from your servlet write the following Context ctx = new InitialContext(); QueueConnection con = (QueueConnection)ctx.lookup(java:comp/env/jms/theQueueConnectionFactory); Queue queue = (Queue)ctx.lookup(java:comp/env/jms/processQueue); I didn't understand your question of different containers? Do you mean different containers different orion server? If you want to get access JMS queue/connection of different orion server provide proper JNDI properties for obtaining InitialContext. Example: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://host/applicationname); env.put(Context.SECURITY_PRINCIPAL, username); env.put(Context.SECURITY_CREDENTIALS, password); Context ctx = new InitialContext(env); Rest of the code is common. Hope this helps you. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re[2]: Urgent :: How to access JMS service from Servlet/JSP
VHS I think, I am also facing a similar problem. I have followed the steps you VHS have mentioned below but when I try to deploy it, it gives the following VHS error message: VHS Error instantiating application: Error loading web-app 'war-ic' at VHS D:\orion\applications\PhotonManagementConsoleApp\war-ic: Unknown VHS resource-ref tag: res-ref-type Must be res-type, not res-ref-type! ^^ VHS Can you please let me know if there are any other steps. VHS Note: I have created the ear file using ant. VHS Thanks, VHS Vani From: Kesav Kumar [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Urgent :: How to access JMS service from Servlet/JSP Date: Mon, 12 Nov 2001 01:47:03 -0800 You don't need application-client.xml if you want to access JMS from servlets. You have to write your queueconnection and queues in web.xml. Add resoure-ref entries in web.xml resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/processQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Once you have the resource-ref entries in web.xml from your servlet write the following Context ctx = new InitialContext(); QueueConnection con = (QueueConnection)ctx.lookup(java:comp/env/jms/theQueueConnectionFactory); Queue queue = (Queue)ctx.lookup(java:comp/env/jms/processQueue); I didn't understand your question of different containers? Do you mean different containers different orion server? If you want to get access JMS queue/connection of different orion server provide proper JNDI properties for obtaining InitialContext. Example: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://host/applicationname); env.put(Context.SECURITY_PRINCIPAL, username); env.put(Context.SECURITY_CREDENTIALS, password); Context ctx = new InitialContext(env); Rest of the code is common. Hope this helps you. VHS _ VHS Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- Best regards, Sergey G. Aslanov mailto:[EMAIL PROTECTED]
Urgent :: How to access JMS service from Servlet/JSP
Hi Steve, Well, I am able to run a standalone client that accesses JMS service, but when I access that service using servlet it shows following error:: javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-c lient chapter for requirements and format of the file) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (Unknown Source) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.init(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.createInstances(Unknown Source) at elitecore.bea.web.control.ApplicationReflector.clinit(Unknown Source) at elitecore.bea.web.util.LoadServlet.init(Unknown Source) at com.evermind._ah._axe(Unknown Source) at com.evermind._ah._fpd(Unknown Source) at com.evermind._ah._bae(Unknown Source) at com.evermind._ah._bie(Unknown Source) at com.evermind._ah.init(Unknown Source) at com.evermind._ck._czc(Unknown Source) at com.evermind._ae._czc(Unknown Source) at com.evermind._ab._au(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) So, to eliminate this error where I have to make changes ?? Also, I want to access JMS service of multiple servers. So, to achieve that where could I have to make changes in the configuration files (xml files). If you are familiar with accessing EJB of multiple servers then that also would be helpful. And if you can send sample configuration files that also would be helpful to me. Waiting for reply.. Regards, Lomesh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Davidson Sent: Monday, November 12, 2001 6:59 AM To: Orion-Interest Subject: Re: How to accesss JMS service from Servlet/JSP Lomesh Contractor wrote: Hi All, How can I access JMS service of different **container(s)** from my servlet/jsp ?? Which configuration files I have to change to achieve it ?? web.xml or ejb-jar.xml ?? If so, Can you send me a sample configuration file ??? Waiting for reply.. Lomesh. Hi Lomesh. Check the orion docs on the JMS.xml file. Unfortunately, I do not have any good examples to send at this time. -Steve -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
Problem using Orions JMS ExceptionListener
Hi All, I wonder if anyone could tell me whether the Orions implementation of JMS consider 'losing connection to jms server' as an exception that is reported to an assigned ExceptionListener (Sun says not any provider does so). Ive tried to write such code, and noticed that nothing happens when i drop the server down while my consumer is still up. Please help, Thanks in advanced, Yuval Goldstein VocalTec Communications Ltd Tel: 972-9-9707771, TGID: yuvalg
Re: Listening on a JMS Queue on another machine throws exception
Hi Kesav. Something really weird is going on here. When I try to start the listener locally, if fails to connect with a JMS Exception. I included the help section for my listener class, so you can see what some of the command line options are about. The Orion switch also tells the listener that it needs to do a qreceiver.receive() when listening. When the listener tries to close the connection, the host throws a null pointer exception, as well as an exception occuring on the listener. Suggestions? -Steve steve@imp:/tmp/Builds/HRneXus/classes java -classpath .:/usr/local/orion/orion .jar:/usr/local/orion/lib/oracle20.jar com/hrnexus/custsetup/DBServerListener -? Usage: java [-cp [.;%CLASSPATH%;%WEBLOGIC_HOME%\lib\weblogic.jar]] com.hrnexus.c ustsetup.DBServerListener {arguments}] Arguments are; ProviderURL ex. For Weblogic on the local machine; t3://localhost:7001 ex. For Orion on the local machine; ormi://localhost Properties file to load (DEFAULT: server) Context to use (DEFAULT: Weblogic) WEBLOGIC ORION steve@imp:/tmp/Builds/HRneXus/classes java -classpath .:/usr/local/orion/orion.jar:/usr/local/orion/lib/oracle20.jar com/hrnexus/custsetup/DBServerListener ormi://localhost laptop orion Provider URL: ormi://localhost Context Factory: com.evermind.server.ApplicationClientInitialContextFactory Listening for messages on Queue com.hrnexus.CustSetupQueue Listening for messages on Server ormi://localhost Listener is starting. Q to Quit. Listening for messages. javax.jms.JMSException: Unable to connect to JMSServer (192.168.0.72/192.168.0.72:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._os(Unknown Source) at com.evermind._el._os(Unknown Source) at com.evermind._ecb.receive(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) java.lang.RuntimeException: Communications Error. at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:188) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) q javax.jms.JMSException: Unable to connect to JMSServer (192.168.0.72/192.168.0.72:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._pmc(Unknown Source) at com.evermind._el.rollback(Unknown Source) at com.evermind._el.close(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.close(CreateSchemaEJB.java:157) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.main(CreateSchemaEJB.java:261) at com.hrnexus.custsetup.DBServerListener.main(DBServerListener.java:68) ###From Orion Server at Quit command steve@imp:/usr/local/orion java -server -Xincgc -jar orion.jar Orion/1.5.2 initialized java.lang.NullPointerException at com.evermind._hs._ehc(Unknown Source) at com.evermind._wr.run(Unknown Source) at com.evermind._if.run(Unknown Source) java.lang.NullPointerException at com.evermind._hs._ehc(Unknown Source) at com.evermind._wr.run(Unknown Source) at com.evermind._if.run(Unknown Source) Kesav Kumar wrote: If you give 127.0.0.1 as a host you will be able to access JMS from only the same machine. If you want to access JMS server from different machine you need to give the machine's IP/dns name. -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
RE: Listening on a JMS Queue on another machine throws exception
Title: RE: Listening on a JMS Queue on another machine throws exception Did you provide username/password while getting connection. You have to use QueueConnection con = factory.createQueueConnection(admin, admin); I hope this will solve your problem. If you lookinto archives some time back I gave all the steps for running JMS server/client. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information -Original Message- From: Stephen Davidson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 7:49 AM To: Orion-Interest Subject: Re: Listening on a JMS Queue on another machine throws exception Hi Kesav. Something really weird is going on here. When I try to start the listener locally, if fails to connect with a JMS Exception. I included the help section for my listener class, so you can see what some of the command line options are about. The Orion switch also tells the listener that it needs to do a qreceiver.receive() when listening. When the listener tries to close the connection, the host throws a null pointer exception, as well as an exception occuring on the listener. Suggestions? -Steve steve@imp:/tmp/Builds/HRneXus/classes java -classpath .:/usr/local/orion/orion .jar:/usr/local/orion/lib/oracle20.jar com/hrnexus/custsetup/DBServerListener -? Usage: java [-cp [.;%CLASSPATH%;%WEBLOGIC_HOME%\lib\weblogic.jar]] com.hrnexus.c ustsetup.DBServerListener {arguments}] Arguments are; ProviderURL ex. For Weblogic on the local machine; t3://localhost:7001 ex. For Orion on the local machine; ormi://localhost Properties file to load (DEFAULT: server) Context to use (DEFAULT: Weblogic) WEBLOGIC ORION steve@imp:/tmp/Builds/HRneXus/classes java -classpath .:/usr/local/orion/orion.jar:/usr/local/orion/lib/oracle20.jar com/hrnexus/custsetup/DBServerListener ormi://localhost laptop orion Provider URL: ormi://localhost Context Factory: com.evermind.server.ApplicationClientInitialContextFactory Listening for messages on Queue com.hrnexus.CustSetupQueue Listening for messages on Server ormi://localhost Listener is starting. Q to Quit. Listening for messages. javax.jms.JMSException: Unable to connect to JMSServer (192.168.0.72/192.168.0.72:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._os(Unknown Source) at com.evermind._el._os(Unknown Source) at com.evermind._ecb.receive(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) java.lang.RuntimeException: Communications Error. at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:188) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) q javax.jms.JMSException: Unable to connect to JMSServer (192.168.0.72/192.168.0.72:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._pmc(Unknown Source) at com.evermind._el.rollback(Unknown Source) at com.evermind._el.close(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.close(CreateSchemaEJB.java:157) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.main(CreateSchemaEJB.java:261) at com.hrnexus.custsetup.DBServerListener.main(DBServerListener.java:68) ###From Orion Server at Quit command steve@imp:/usr/local/orion java -server -Xincgc -jar orion.jar Orion/1.5.2 initialized java.lang.NullPointerException at com.evermind._hs._ehc(Unknown Source) at com.evermind._wr.run(Unknown Source) at com.evermind._if.run(Unknown Source) java.lang.NullPointerException at com.evermind._hs._ehc(Unknown Source) at com.evermind._wr.run(Unknown Source) at com.evermind._if.run(Unknown Source) Kesav Kumar wrote: If you give 127.0.0.1 as a host you will be able to access JMS from only the same machine. If you want to access JMS server from different machine you need to give the machine's IP/dns name. -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
Clusters, JMS, and standalone applications
Greetings. I am having difficulty with getting JMS working under Orion in a clustered environment. The general layout of the cluster is this, 1 (or more) Util machines, one of which is running the JMS server. -Run high-load utility programs that are listening on various Queues for new jobs (basically offline batch processes) 1 Load Balancer machine 2 (or more) Web/App Servers. Some applications will send messages to the Queues for execution offline by the listening utility programs. Initially when I tried to set this up, I tried to have the applications log into Queues in the cluster. This threw all kinds of weird exceptions, and also looked like I would have to have one instance of each utility program per running instance of Orion. So I tried moving all the Queues to the Utility server, and running the Utility programs from there. I set the jms.xml file (attached) to the IP address of the Util box. Unfortunately, the util apps are STILL not getting messages (which are sent by EJB's). No errors are getting thrown, so I suspect that the messages are being put on the local queues. If anyone has any examples of how to set this up, it would be greatly appreciated. Thanks, Steve ?xml version=1.0? !DOCTYPE jms-server PUBLIC Orion JMS server http://www.orionserver.com/dtds/jms-server.dtd; !-- jms-server port=9127 -- jms-server port=9127 xa-queue-connection-factory host=192.168.0.72 location=com.hrnexus.JMSFactory password=hrnexus username=user / !-- Queue bindings, these queues will be bound to their respective JNDI path for later retrieval -- queue name=RFP Release Queue location=com.hrnexus.RFPReleaseQueue host=192.168.0.72 password=hrnexus username=user descriptionRFP Processing/description /queue queue name=ImportJMSQueue location=com.hrnexus.ImportJMSQueue host=192.168.0.72 password=hrnexus username=user descriptionImporter Message Queue/description /queue queue name=CustomerSetupMessages location=com.hrnexus.CustSetupQueue host=192.168.0.72 password=hrnexus username=user descriptionCustomer Setup Information/description /queue !-- Topic bindings, these topic will be bound to their respective JNDI path for later retrieval -- !-- Not currently used topic name=Demo Topic location=jms/demoTopic descriptionA dummy topic/description /topic -- !-- path to the log-file where JMS-events/errors are stored -- log file path=../log/jms.log / /log /jms-server
Re: Clusters, JMS, and standalone applications
You should be able to keep one machine as JMS server and run different subscribers/publishers on different machines. This only gotcha is you can't run the subscribers as MessageListeners, I tried to run subscriber as a listener on different machine but some how the listener mode doesn't work. For subscribers instead of listener you have to use blocing method. i.e qsession.createReceiver().receive() method. You have to use this type of blocking subscribers. - Original Message - From: Stephen Davidson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, September 25, 2001 3:08 PM Subject: Clusters, JMS, and standalone applications Greetings. I am having difficulty with getting JMS working under Orion in a clustered environment. The general layout of the cluster is this, 1 (or more) Util machines, one of which is running the JMS server. -Run high-load utility programs that are listening on various Queues for new jobs (basically offline batch processes) 1 Load Balancer machine 2 (or more) Web/App Servers. Some applications will send messages to the Queues for execution offline by the listening utility programs. Initially when I tried to set this up, I tried to have the applications log into Queues in the cluster. This threw all kinds of weird exceptions, and also looked like I would have to have one instance of each utility program per running instance of Orion. So I tried moving all the Queues to the Utility server, and running the Utility programs from there. I set the jms.xml file (attached) to the IP address of the Util box. Unfortunately, the util apps are STILL not getting messages (which are sent by EJB's). No errors are getting thrown, so I suspect that the messages are being put on the local queues. If anyone has any examples of how to set this up, it would be greatly appreciated. Thanks, Steve ?xml version=1.0? !DOCTYPE jms-server PUBLIC Orion JMS server http://www.orionserver.com/dtds/jms-server.dtd; !-- jms-server port=9127 -- jms-server port=9127 xa-queue-connection-factory host=192.168.0.72 location=com.hrnexus.JMSFactory password=hrnexus username=user / !-- Queue bindings, these queues will be bound to their respective JNDI path for later retrieval -- queue name=RFP Release Queue location=com.hrnexus.RFPReleaseQueue host=192.168.0.72 password=hrnexus username=user descriptionRFP Processing/description /queue queue name=ImportJMSQueue location=com.hrnexus.ImportJMSQueue host=192.168.0.72 password=hrnexus username=user descriptionImporter Message Queue/description /queue queue name=CustomerSetupMessages location=com.hrnexus.CustSetupQueue host=192.168.0.72 password=hrnexus username=user descriptionCustomer Setup Information/description /queue !-- Topic bindings, these topic will be bound to their respective JNDI path for later retrieval -- !-- Not currently used topic name=Demo Topic location=jms/demoTopic descriptionA dummy topic/description /topic -- !-- path to the log-file where JMS-events/errors are stored -- log file path=../log/jms.log / /log /jms-server
JMS leaks !!!
Here's a very inane question ! Has anyone experienced memory leaks with the Orion JMS server ?? I hooked up OptimizeIt to an instance of Orion and I saw three instance types run amock: com.evermind._dvb,com.evermind._eg,com.evermind._et. Bruno Baloi
Re: Persistent JMS Queue
Darryl, OC4J 1.0.2.2 roughly corresponds with Orion 1.5.2. The 1.0.2.2.1 release has many bugfixes that will (according to what I know) be integrated back into the orion codebase. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Darryl Dieckman wrote: Thanks. We downloaded the latest orion server (1.5.2) and found that the problem had been fixed. We are using the Oracle OC4J, so I'm not really sure what version it truly is. It reports an Oracle version, but I can assume that it is certainly not 1.5.2. It says Oracle9iAS (1.0.2.2.1) Containers for J2EE Just out of curiosity, does anyone know what version this corresponds to? Darryl Dieckman
RE: Persistent JMS Queue
Thanks. We downloaded the latest orion server (1.5.2) and found that the problem had been fixed. We are using the Oracle OC4J, so I'm not really sure what version it truly is. It reports an Oracle version, but I can assume that it is certainly not 1.5.2. It says Oracle9iAS (1.0.2.2.1) Containers for J2EE Just out of curiosity, does anyone know what version this corresponds to? Darryl Dieckman
RE: Persistent JMS Queue
This is Orion 1.5.2 plus a few extra fixes. -mike Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Darryl Dieckman Sent: Monday, September 17, 2001 12:37 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: RE: Persistent JMS Queue Thanks. We downloaded the latest orion server (1.5.2) and found that the problem had been fixed. We are using the Oracle OC4J, so I'm not really sure what version it truly is. It reports an Oracle version, but I can assume that it is certainly not 1.5.2. It says Oracle9iAS (1.0.2.2.1) Containers for J2EE Just out of curiosity, does anyone know what version this corresponds to? Darryl Dieckman
Persistent JMS Queue
Hello, I've got an application setup using the Orion JMS Provider and some message driven beans. I turned on the persistence for the JMS queues in the JMS.xml. If I let messages get queued up in the queues by disabling my bean, and then shutdown the server, the messages in the queue are not delivered to my message driven bean the next time I start the server. There are definitely messages serialized in the queue, because I can see them by looking at the flat file. When I restart the server, my message driven bean successfully recieves new messages delivered to the queue. However, the messages persisted to the disk are never delivered. 1. Do I need to do something to cause the queues to be restored at startup? 2. Is there a bug in the JMS or message-driven bean that will not deliver messages that have been restored from a persistent queue? Darryl Dieckman
RE: Persistent JMS Queue
Title: RE: Persistent JMS Queue I think its been fixed in 1.5.2. What version of orion are you using? Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 10:45 AM To: Orion-Interest Subject: Persistent JMS Queue Hello, I've got an application setup using the Orion JMS Provider and some message driven beans. I turned on the persistence for the JMS queues in the JMS.xml. If I let messages get queued up in the queues by disabling my bean, and then shutdown the server, the messages in the queue are not delivered to my message driven bean the next time I start the server. There are definitely messages serialized in the queue, because I can see them by looking at the flat file. When I restart the server, my message driven bean successfully recieves new messages delivered to the queue. However, the messages persisted to the disk are never delivered. 1. Do I need to do something to cause the queues to be restored at startup? 2. Is there a bug in the JMS or message-driven bean that will not deliver messages that have been restored from a persistent queue? Darryl Dieckman
RE: Listening on a JMS Queue on another machine throws exception
Title: RE: Listening on a JMS Queue on another machine throws exception In your jms.xml on the machine where the jms server is running should contain host attribute like the following. In jms.xml jms-server port=9127 host=kesav /jms-server The host attribute should be present if you are trying to connect from different machine. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information -Original Message- From: Stephen Davidson [mailto:[EMAIL PROTECTED]] Sent: Monday, September 03, 2001 1:25 PM To: Orion-Interest Subject: Listening on a JMS Queue on another machine throws exception Greetings. I have been through the documentation, but I seem to be missing something. I am trying to listen on a queue that is not on a local machine. The server I am trying to listen on has an IP address of 192.168.1.50, and the Orion Server (with Queue) is running when I try to attach. The client is getting the context from the server in question, but when it tries to attach to the queue, it gets the following exception; javax.jms.JMSException: Unable to connect to JMSServer (www1/192.168.1.50:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._os(Unknown Source) at com.evermind._el._os(Unknown Source) at com.evermind._ecb.receive(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) Thanks, Steve
RE: Listening on a JMS Queue on another machine throws exception
Your mail has been forwarded to [EMAIL PROTECTED] On September 4, 2001, Marathon Innovations, Inc. changed its name to SmartPath, Inc. Please update your address book. SmartPath, Inc. 598 Airport Blvd., Ste. 600 Morrisville, NC 27560 (919) 462-1489 www.smartpathinc.com Thank you
Listening on a JMS Queue on another machine throws exception
Greetings. I have been through the documentation, but I seem to be missing something. I am trying to listen on a queue that is not on a local machine. The server I am trying to listen on has an IP address of 192.168.1.50, and the Orion Server (with Queue) is running when I try to attach. The client is getting the context from the server in question, but when it tries to attach to the queue, it gets the following exception; javax.jms.JMSException: Unable to connect to JMSServer (www1/192.168.1.50:9127) at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown Source) at com.evermind.server.jms.EvermindQueueConnection._os(Unknown Source) at com.evermind._el._os(Unknown Source) at com.evermind._ecb.receive(Unknown Source) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179) at com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20) at com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238) at java.lang.Thread.run(Thread.java:484) Thanks, Steve
Re: Orion and JMS: javax.naming.NameNotFoundException]
Hi Kesav, Thank you very much for your help, it was as simple as that. Thanks again, Dan Kesav Kumar wrote: If you want to get any resource in your Servlet/jsp you got define resource-ref in your web.xml. One basic information as long as you are in the same container you don't need any parameters to JDNI context. You need jndi.properties only when you try to access from outside the container. Your servlets/jsp/ejb/applicationclient are in the same orion container so in all these components you can directly get JNDI context by Context ctx = new InitialContext(); As long as you are in the same container there is no need for jndi.properties. Regarding the JMS you got define resource-ref in your web.xml. Any container resource of ejb resource you want to use in web tier i.e in servlets/jsp you have to define resource-ref and ejb-ref correspondingly. For JMS which is a resource so you have to declare resource-ref in your web.xml like the following. resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/myQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Inside your servlet/jsp for connection factory lookup for jms/theQueueConnectionFactory and for queue lookup for jms/myQueue. snip...
Re: Orion and JMS: javax.naming.NameNotFoundException]
Hi David, Thank you for your help, this example code might be very useful. What I'm trying to do is centralised login service, to allow a central authentication service to control acces to different web applications that can even be in different hosts. I already succesfully implemented the login part, but now I want to be able to logout from all the applications at once, and I also want to be able to trace in one place the user movements through the different applications. That's why I thought about using JMS to implement the communication between the different applications and the central authorization site. My concern is now whether JMS, specifically Orion's implementation, is mature enough as to have all my applications depending from it. Or are JMS implementations in general as inmature and buggy as Michel J. Cannon stated? Thank you again, D. From: David Libke [EMAIL PROTECTED] jue 16:47 Subject: RE: Orion and JMS: javax.naming.NameNotFoundException] To: Orion-Interest [EMAIL PROTECTED] Daniel, This my second reply to your question. Apperantly my first was lost since another reply submitted after yours appeared on the list yesterday but not yours. In addition, you might want to apply the following edits to jms.xml: .- Configure jms.xml with this content: jms-server port=9127 host= queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server This class might simplify your use of messaging: public class MessageSender implements Serializable { public MessageSender(String queueName, String topicName) throws MagnetException { this.queueName = queueName; this.topicName = topicName; initMessaging(); } private void initMessaging() { try { if (queueName == null topicName == null) { throw new IllegalArgumentException(MessageSender: initMessaging: No topic name or queue name); } InitialContext jndiEnc = new InitialContext(); if (queueName != null) { QueueConnectionFactory factory = (QueueConnectionFactory) jndiEnc.lookup(JNDINames.QUEUE_CONNECTION_FACTORY); qConnect = factory.createQueueConnection(); qConnect.start(); qSession = qConnect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); try { requestQ = (Queue)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + queueName); } catch (NameNotFoundException nnfex) { requestQ = qSession.createQueue(queueName); } qSender = qSession.createSender(requestQ); } if (topicName != null) { TopicConnectionFactory factory = (TopicConnectionFactory) jndiEnc.lookup(JNDINames.TOPIC_CONNECTION_FACTORY); System.out.println(MessageSender: initMessaging: got connection factory + factory); tConnect = factory.createTopicConnection(); tConnect.start(); tSession = tConnect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); try { requestT = (Topic)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + topicName); } catch (NameNotFoundException nnfex) { requestT = tSession.createTopic(queueName); } publisher = tSession.createPublisher(requestT); } } catch (JMSException jmsex) { throw new UndeclaredThrowableException(jmsex, MessageSender: initMessaging: + jmsex.getMessage()); } catch (NamingException nex) { throw new UndeclaredThrowableException(nex, MessageSender: initMessaging: Problem looking up JmsQueueConnectionFactory); } } protected void finalize() { try { if (qConnect != null) qConnect.close(); qConnect = null; qSession = null; qSender = null; requestQ = null; if (tConnect != null) tConnect.close(); tConnect = null; tSession = null; publisher = null; requestT = null; } catch (JMSException jex) { } } private void writeObject(java.io.ObjectOutputStream out) throws IOException { try { if (qConnect != null) qConnect.close
RE: Orion and JMS: javax.naming.NameNotFoundException]
Daniel, For the logout service I think I would use durable 'logout' topic which would guarantee delivery. If you believe you might run into high volume degradation, then look at SonicMQ messaging server. They wrote the book on JMS -- literally. Dave -Original Message- From: Daniel López [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 2:45 AM To: Orion-Interest Subject: Re: Orion and JMS: javax.naming.NameNotFoundException] Hi David, Thank you for your help, this example code might be very useful. What I'm trying to do is centralised login service, to allow a central authentication service to control acces to different web applications that can even be in different hosts. I already succesfully implemented the login part, but now I want to be able to logout from all the applications at once, and I also want to be able to trace in one place the user movements through the different applications. That's why I thought about using JMS to implement the communication between the different applications and the central authorization site. My concern is now whether JMS, specifically Orion's implementation, is mature enough as to have all my applications depending from it. Or are JMS implementations in general as inmature and buggy as Michel J. Cannon stated? Thank you again, D. From: David Libke [EMAIL PROTECTED] jue 16:47 Subject: RE: Orion and JMS: javax.naming.NameNotFoundException] To: Orion-Interest [EMAIL PROTECTED] Daniel, This my second reply to your question. Apperantly my first was lost since another reply submitted after yours appeared on the list yesterday but not yours. In addition, you might want to apply the following edits to jms.xml: .- Configure jms.xml with this content: jms-server port=9127 host= queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server This class might simplify your use of messaging: public class MessageSender implements Serializable { public MessageSender(String queueName, String topicName) throws MagnetException { this.queueName = queueName; this.topicName = topicName; initMessaging(); } private void initMessaging() { try { if (queueName == null topicName == null) { throw new IllegalArgumentException(MessageSender: initMessaging: No topic name or queue name); } InitialContext jndiEnc = new InitialContext(); if (queueName != null) { QueueConnectionFactory factory = (QueueConnectionFactory) jndiEnc.lookup(JNDINames.QUEUE_CONNECTION_FACTORY); qConnect = factory.createQueueConnection(); qConnect.start(); qSession = qConnect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); try { requestQ = (Queue)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + queueName); } catch (NameNotFoundException nnfex) { requestQ = qSession.createQueue(queueName); } qSender = qSession.createSender(requestQ); } if (topicName != null) { TopicConnectionFactory factory = (TopicConnectionFactory) jndiEnc.lookup(JNDINames.TOPIC_CONNECTION_FACTORY); System.out.println(MessageSender: initMessaging: got connection factory + factory); tConnect = factory.createTopicConnection(); tConnect.start(); tSession = tConnect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); try { requestT = (Topic)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + topicName); } catch (NameNotFoundException nnfex) { requestT = tSession.createTopic(queueName); } publisher = tSession.createPublisher(requestT); } } catch (JMSException jmsex) { throw new UndeclaredThrowableException(jmsex, MessageSender: initMessaging: + jmsex.getMessage()); } catch (NamingException nex) { throw new UndeclaredThrowableException(nex, MessageSender: initMessaging: Problem looking up JmsQueueConnectionFactory); } } protected void finalize() { try { if (qConnect != null) qConnect.close(); qConnect = null; qSession = null; qSender = null; requestQ = null
Re: Orion and JMS: javax.naming.NameNotFoundException]
Hi Michael, I apologize if any of the facts that I exposed on my mail seemed to you to be a complain. My intention was to explain that I had sent two messages to the list that I had not seen, just to warn people so if they got too copies, they would know it was not intentional. And the second part to let people know that I was not sure whether nobody was reading my messages, or no one was actually using Orion JMS. I the way I expressed it offended you, I apologize but I don't think it deserved such a harsh response. regards, D. Michael J. Cannon wrote: What browser/MTA? Alos check the Oracle knowledge bank on OTN.oracle.com The server is up, the server is down...so what? Your messages eventually make it here and you eventually get an answer. You didn't pay anything for your answer, so quit complaining, or go to a support company (or switch and get a slower server or pay upwards of USD$6000 minimum for it. Your problem is that JMS and the agents for it aren't yet mature and, besides commercial ISVs, few use the libs. Try the Sun and usenet lists, If you're having probs w/ Orion's JMS, perhaps you should try JBoss (slower) or Jakarta's or the Sun RI. Michael J. Cannon
RE: Orion and JMS: javax.naming.NameNotFoundException]
Title: RE: Orion and JMS: javax.naming.NameNotFoundException] Daniel, This my second reply to your question. Apperantly my first was lost since another reply submitted after yours appeared on the list yesterday but not yours. In addition, you might want to apply the following edits to jms.xml: .- Configure jms.xml with this content: jms-server port="9127" host="" queue name="Demo Queue" location="jms/demoQueue" descriptionA dummy queue/description /queue log file path="../logs/jms.log" / /log /jms-server This class might simplify your use of messaging: public class MessageSender implements Serializable{ public MessageSender(String queueName, String topicName) throws MagnetException { this.queueName = queueName; this.topicName = topicName; initMessaging(); } private void initMessaging() { try { if (queueName == null topicName == null) { throw new IllegalArgumentException("MessageSender: initMessaging: No topic name or queue name"); } InitialContext jndiEnc = new InitialContext();if (queueName != null) { QueueConnectionFactory factory = (QueueConnectionFactory) jndiEnc.lookup(JNDINames.QUEUE_CONNECTION_FACTORY);qConnect = factory.createQueueConnection(); qConnect.start(); qSession = qConnect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); try { requestQ = (Queue)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + queueName); } catch (NameNotFoundException nnfex) { requestQ = qSession.createQueue(queueName);} qSender = qSession.createSender(requestQ); } if (topicName != null) { TopicConnectionFactory factory = (TopicConnectionFactory) jndiEnc.lookup(JNDINames.TOPIC_CONNECTION_FACTORY); System.out.println("MessageSender: initMessaging: got connection factory " + factory); tConnect = factory.createTopicConnection(); tConnect.start(); tSession = tConnect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); try { requestT = (Topic)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + topicName); } catch (NameNotFoundException nnfex) { requestT = tSession.createTopic(queueName);} publisher = tSession.createPublisher(requestT); } } catch (JMSException jmsex) { throw new UndeclaredThrowableException(jmsex, "MessageSender: initMessaging: " + jmsex.getMessage()); } catch (NamingException nex) { throw new UndeclaredThrowableException(nex, "MessageSender: initMessaging: Problem looking up JmsQueueConnectionFactory"); } } protected void finalize() { try { if (qConnect != null) qConnect.close(); qConnect = null; qSession = null; qSender = null; requestQ = null; if (tConnect != null) tConnect.close(); tConnect = null; tSession = null; publisher = null; requestT = null; } catch (JMSException jex) { } } private void writeObject(java.io.ObjectOutputStream out) throws IOException { try { if (qConnect != null) qConnect.close(); qConnect = null; qSession = null; qSender = null; requestQ = null; if (tConnect != null) tConnect.close(); tConnect = null; tSession = null; publisher = null; requestT = null; } catch (JMSException jex) { throw new IOException("MessageSender: writeObject: " + jex.getMessage()); } } protected String queueName = null; protected transient QueueConnection qConnect = null; protected transient QueueSession qSession = null; protected transient QueueSender qSender = null; protected transient Queue requestQ = null; protected String topicName = null; protected transient TopicConnection tConnect = null; protected transient TopicSession tSession = null; protected transient TopicPublisher publisher = null; protected transient Topic requestT = null;} You will need to define the JNDINames interface with the appropriate values for its attributes. Then any class that needs to send messages can extend MessageSender and use the appropriate attributes This works for me. Let me know if you still have problems or questions Dave -Original Message-From: Kesav Kumar [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 3:17 PMTo: Orion-InterestSubject: RE: Orion and JMS: javax.naming.NameNotFoundException] If you want to get any resource in your Servlet/jsp you got define resource-ref in your web.xml. One basic information as long as you are in the same container you don't need any parameters to JDNI context. You need jndi.properties only when you try to access from outside the container. Your servlets/jsp/ejb/applicationclient are in the same orion container so in all these components you can directly get JNDI context by Context ctx = new InitialContext(); As long as you are in the same container there is no need for jndi.properties. Regarding the JMS you got define resource-ref in your web.xml. Any container resource of ejb resource you want to use in web tier i.e in servlet
[Fwd: Re: Orion and JMS: javax.naming.NameNotFoundException]
Hi (third try to the list, first ones didn't make it), I haven't got a single answer, so I'm wondering if nobody is using Orion JMS or this mailing list is playing funny with me. Has anybody configured and used Orion JMS? Could somebody please elaborate on the steps necessary to get this thing working? Thanks in advance, D. Daniel López wrote: Hi, I know this topic has been discussed a lot in here, but I haven't been able to find the answer in the archive or in the documentation. The problem is: I decided to have a go with JMS but I can't even start to play with it, as all I get is javax.naming.NameNotFoundException. These are the steps I have followed: .- Configure server.xml with the following line: ... jms-config path=./jms.xml / ... .- Configure jms.xml with this content: jms-server port=9127 host=localhost queue-connection-factory location=jms/QueueConnectionFactory/ queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server .- Add jndi.properties to my application's classes(WEB-INF/classes), with the following content: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin .- Then in my servlet, I just try to see if the objects are there: ... Context ctx = new InitialContext(); QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(java:comp/env/jms/QueueConnectionFactory); // Exception is thrown in the line above ... The facts: .- JMS Server seems to have been started, as I can see the jms.log file and reads (Date 1.4.5 Started) .- I have tried with various names, with and without java:comp/env, and with various methods (list, listBindings...) with no look. I cannot get a single object to be looked up. .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, Orion 1.4.5 (I also tried 1.5.2 with the same results) So, what have I forgotten to do? It seems like I just forgot to do some essential step. I tried to find the JMS how to by Kesav Kumar but I couldn't find it. Anybody, please? Thank you in advance, D. PD: On a side note, I have seen man people trying to use external JMS providers with Orion, is that so because Orion JMS is buggy? Would it be better to use some external tool like OpenJMS or so? I had thought it would be nice to have everything in the same place, this way you just have to take care of one server. Comments?
Message Listener ( JMS )
Hi everyone i am facing a problem in the message listener in my application. Is seems that is is not responding et all. Does anyone has a solution to this. Vikas * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
RE: Orion and JMS: javax.naming.NameNotFoundException]
Title: RE: Orion and JMS: javax.naming.NameNotFoundException] If you want to get any resource in your Servlet/jsp you got define resource-ref in your web.xml. One basic information as long as you are in the same container you don't need any parameters to JDNI context. You need jndi.properties only when you try to access from outside the container. Your servlets/jsp/ejb/applicationclient are in the same orion container so in all these components you can directly get JNDI context by Context ctx = new InitialContext(); As long as you are in the same container there is no need for jndi.properties. Regarding the JMS you got define resource-ref in your web.xml. Any container resource of ejb resource you want to use in web tier i.e in servlets/jsp you have to define resource-ref and ejb-ref correspondingly. For JMS which is a resource so you have to declare resource-ref in your web.xml like the following. resource-ref res-ref-namejms/theQueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/myQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref Inside your servlet/jsp for connection factory lookup for jms/theQueueConnectionFactory and for queue lookup for jms/myQueue. - Original Message - From: Daniel Lopez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 8:48 AM Subject: [Fwd: Re: Orion and JMS: javax.naming.NameNotFoundException] Hi (third try to the list, first ones didn't make it), I haven't got a single answer, so I'm wondering if nobody is using Orion JMS or this mailing list is playing funny with me. Has anybody configured and used Orion JMS? Could somebody please elaborate on the steps necessary to get this thing working? Thanks in advance, D. Daniel López wrote: Hi, I know this topic has been discussed a lot in here, but I haven't been able to find the answer in the archive or in the documentation. The problem is: I decided to have a go with JMS but I can't even start to play with it, as all I get is javax.naming.NameNotFoundException. These are the steps I have followed: .- Configure server.xml with the following line: ... jms-config path=./jms.xml / ... .- Configure jms.xml with this content: jms-server port=9127 host=localhost queue-connection-factory location=jms/QueueConnectionFactory/ queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server .- Add jndi.properties to my application's classes(WEB-INF/classes), with the following content: java.naming.factory.initial=com.evermind.server.ApplicationCli entInitialCont extFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin .- Then in my servlet, I just try to see if the objects are there: ... Context ctx = new InitialContext(); QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(java:comp/env/jms/QueueConnectionFactory); // Exception is thrown in the line above ... The facts: .- JMS Server seems to have been started, as I can see the jms.log file and reads (Date 1.4.5 Started) .- I have tried with various names, with and without java:comp/env, and with various methods (list, listBindings...) with no look. I cannot get a single object to be looked up. .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, Orion 1.4.5 (I also tried 1.5.2 with the same results) So, what have I forgotten to do? It seems like I just forgot to do some essential step. I tried to find the JMS how to by Kesav Kumar but I couldn't find it. Anybody, please? Thank you in advance, D. PD: On a side note, I have seen man people trying to use external JMS providers with Orion, is that so because Orion JMS is buggy? Would it be better to use some external tool like OpenJMS or so? I had thought it would be nice to have everything in the same place, this way you just have to take care of one server. Comments?
JMS error
Title: RE: JMS Client throwing error Hi everyone I know thatJMS has been discussed a lot before in the group but still i m facing some problems with it it seems that the message listener is not responding et all... please help me out with this.. Vikas - Original Message - From: Kesav Kumar To: Orion-Interest Sent: Tuesday, August 14, 2001 10:30 PM Subject: RE: JMS Client throwing error Just remove the queue-connection-factory from jms.xml and try. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information -Original Message- From: Vijay Pawar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 8:05 AM To: Orion-Interest Subject: JMS Client throwing error Here is description of my problem In my application I have changed port in rmi.xml to rmi-server port="" In default-web-site.xml I changed HTTP port to web-site port="" display-name="Default Oracle9iAS Containers for J2EE Web Site" My JMS entry is like jms-server host="10.5.4.47" port="9127" queue-connection-factory host="10.5.4.47" location="javax.jms.QueueConnectionFactory" / queue name="Micro Queue" location="MICROQUEUE" /queue log file path="./log/jms.log" / /log /jms-server I am using mailing application written on Queue funda. Messenge is sent successfully to queue and I can see it through OrionConsole but when I run client i.e. recceiver I get javax.jms.JMSException: Unable to connect to JMSServer (VPAWAR/10.5.4.47:9127) at com.evermind.server.jms.EvermindQueueConnection.connect(EvermindQueueConnection.java:144) at com.evermind.server.jms.EvermindQueueConnection.receive(EvermindQueueConnection.java:102) at com.evermind.server.jms.EvermindQueueSession.receive(EvermindQueueSession.java:241) at com.evermind.server.jms.EvermindQueueReceiver.receive(EvermindQueueReceiver.java:34) at CReceiveMail.run(CReceiveMail.java:91) at CReceiveMail.main(CReceiveMail.java:66) I had specify application-client.xml also correctly. Can you help me in this. regards, Vijay __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
transactional jms from a message bean
I'm having trouble enlisting a message sent from a message bean into that bean's transaction. Transaction attribute is set to Required. The code works in weblogic, so maybe i'm doing something dumb in my orion-specific setup? Has anyone seen this behavior before? Code at bottom. The bean responds to a message by sending a new message but then rolling it back. Each of the following cases seems to be broken: * Comment out the send, just do a rollback. The input message is consumed, when it should be rolled back and redelivered. * Send with session create parameters: true, AUTO_ACKNOWLEDGE. Same as first case (output message not sent, but input message not redelivered either). Orion crashes fairly often in this case, requiring me to kill the process. The client also hangs when that happens, even though it's doing a synchronous receive() with a timeout set. * Send with session create parameters: true, CLIENT_ACKNOWLEDGE. Same as the first case. * Send with session create parameters: false, AUTO_ACKNOWLEDGE. The message is sent, not rolled back. Sometimes i get this exception in the application log: Error rolling back transaction java.lang.IllegalStateException: Not active or marked for rollback at com.evermind.server.ApplicationServerTransaction._end(Unknown Source) at com.evermind.server.ApplicationServerTransaction.rollback(Unknown Source) at com.evermind.server.ThreadState._gh(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) My code essentially looks like this: QueueConnectionFactory factory = (QueueConnectionFactory) lookup(jms/QueueConnectionFactory); System.err.println(XA? + (factory instanceof XAQueueConnectionFactory)); // prints true QueueConnection connection = factory.createQueueConnection(); Queue queue = lookupQueue(queueName); connection.start(); QueueSession session = connection.createQueueSession(true, session.AUTO_ACKNOWLEDGE); QueueSender sender = session.createSender(queue); sender.send(message, DeliveryMode.PERSISTENT, Message.DEFAULT_PRIORITY, Jms.TTL_FOREVER); context.setRollbackOnly(); ... My ejb-jar looks like this: ejb-jar enterprise-beans message-driven display-nameTestModule/display-name ejb-nameTestModule/ejb-name ejb-classcom.swansystems.etc.TestModule/ejb-class transaction-typeContainer/transaction-type message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination resource-ref res-ref-namejms/QueueConnectionFactory/res-ref-name res-typejavax.jms.XAQueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/testQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref /message-driven /enterprise-beans assembly-descriptor container-transaction method ejb-nameTestModule/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar My orion-ejb-jar is essentially one line: message-driven-deployment name=TestModule destination-location=jms/testInputQueue connection-factory-location=jms/QueueConnectionFactory / Jms.xml looks like this: jms-server port=9127 xa-queue-connection-factory location=jms/QueueConnectionFactory username=admin password=foo/ queue name=testQueue location=jms/testQueue persistence-file=testQueue descriptionTest Queue/description /queue The client is a Java application which sends a message to the bean and synchronously waits for a response on its output queue.
Orion and JMS: javax.naming.NameNotFoundException
Hi, I know this topic has been discussed a lot in here, but I haven't been able to find the answer in the archive or in the documentation. The problem is: I decided to have a go with JMS but I can't even start to play with it, as all I get is javax.naming.NameNotFoundException. These are the steps I have followed: .- Configure server.xml with the following line: ... jms-config path=./jms.xml / ... .- Configure jms.xml with this content: jms-server port=9127 host=localhost queue-connection-factory location=jms/QueueConnectionFactory/ queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server .- Add jndi.properties to my application's classes(WEB-INF/classes), with the following content: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin .- Then in my servlet, I just try to see if the objects are there: ... Context ctx = new InitialContext(); QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(java:comp/env/jms/QueueConnectionFactory); // Exception is thrown in the line above ... The facts: .- JMS Server seems to have been started, as I can see the jms.log file and reads (Date 1.4.5 Started) .- I have tried with various names, with and without java:comp/env, and with various methods (list, listBindings...) with no look. I cannot get a single object to be looked up. .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, Orion 1.4.5 (I also tried 1.5.2 with the same results) So, what have I forgotten to do? It seems like I just forgot to do some essential step. I tried to find the JMS how to by Kesav Kumar but I couldn't find it. Anybody, please? Thank you in advance, D. PD: On a side note, I have seen man people trying to use external JMS providers with Orion, is that so because Orion JMS is buggy? Would it be better to use some external tool like OpenJMS or so? I had thought it would be nice to have everything in the same place, this way you just have to take care of one server. Comments? -- --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University ---
Re: Orion and JMS: javax.naming.NameNotFoundException
I am also facing similar problem please suggest. Vikas - Original Message - From: Daniel López [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, August 14, 2001 12:05 PM Subject: Orion and JMS: javax.naming.NameNotFoundException Hi, I know this topic has been discussed a lot in here, but I haven't been able to find the answer in the archive or in the documentation. The problem is: I decided to have a go with JMS but I can't even start to play with it, as all I get is javax.naming.NameNotFoundException. These are the steps I have followed: .- Configure server.xml with the following line: ... jms-config path=./jms.xml / ... .- Configure jms.xml with this content: jms-server port=9127 host=localhost queue-connection-factory location=jms/QueueConnectionFactory/ queue name=Demo Queue location=jms/demoQueue descriptionA dummy queue/description /queue log file path=../logs/jms.log / /log /jms-server .- Add jndi.properties to my application's classes(WEB-INF/classes), with the following content: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin .- Then in my servlet, I just try to see if the objects are there: ... Context ctx = new InitialContext(); QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(java:comp/env/jms/QueueConnectionFactory); // Exception is thrown in the line above ... The facts: .- JMS Server seems to have been started, as I can see the jms.log file and reads (Date 1.4.5 Started) .- I have tried with various names, with and without java:comp/env, and with various methods (list, listBindings...) with no look. I cannot get a single object to be looked up. .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, Orion 1.4.5 (I also tried 1.5.2 with the same results) So, what have I forgotten to do? It seems like I just forgot to do some essential step. I tried to find the JMS how to by Kesav Kumar but I couldn't find it. Anybody, please? Thank you in advance, D. PD: On a side note, I have seen man people trying to use external JMS providers with Orion, is that so because Orion JMS is buggy? Would it be better to use some external tool like OpenJMS or so? I had thought it would be nice to have everything in the same place, this way you just have to take care of one server. Comments? -- --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University --- * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
JMS Client throwing error
Here is description of my problem In my application I have changed port in rmi.xml to rmi-server port= In default-web-site.xml I changed HTTP port to web-site port= display-name=Default Oracle9iAS Containers for J2EE Web Site My JMS entry is like jms-server host=10.5.4.47 port=9127 queue-connection-factory host=10.5.4.47 location=javax.jms.QueueConnectionFactory / queue name=Micro Queue location=MICROQUEUE /queue log file path=./log/jms.log / /log /jms-server I am using mailing application written on Queue funda. Messenge is sent successfully to queue and I can see it through OrionConsole but when I run client i.e. recceiver I get javax.jms.JMSException: Unable to connect to JMSServer (VPAWAR/10.5.4.47:9127) at com.evermind.server.jms.EvermindQueueConnection.connect(EvermindQueueConnection.java:144) at com.evermind.server.jms.EvermindQueueConnection.receive(EvermindQueueConnection.java:102) at com.evermind.server.jms.EvermindQueueSession.receive(EvermindQueueSession.java:241) at com.evermind.server.jms.EvermindQueueReceiver.receive(EvermindQueueReceiver.java:34) at CReceiveMail.run(CReceiveMail.java:91) at CReceiveMail.main(CReceiveMail.java:66) I had specify application-client.xml also correctly. Can you help me in this. regards, Vijay __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: JMS Client throwing error
Title: RE: JMS Client throwing error Just remove the queue-connection-factory from jms.xml and try. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information -Original Message- From: Vijay Pawar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 8:05 AM To: Orion-Interest Subject: JMS Client throwing error Here is description of my problem In my application I have changed port in rmi.xml to rmi-server port= In default-web-site.xml I changed HTTP port to web-site port= display-name=Default Oracle9iAS Containers for J2EE Web Site My JMS entry is like jms-server host=10.5.4.47 port=9127 queue-connection-factory host=10.5.4.47 location=javax.jms.QueueConnectionFactory / queue name=Micro Queue location=MICROQUEUE /queue log file path=./log/jms.log / /log /jms-server I am using mailing application written on Queue funda. Messenge is sent successfully to queue and I can see it through OrionConsole but when I run client i.e. recceiver I get javax.jms.JMSException: Unable to connect to JMSServer (VPAWAR/10.5.4.47:9127) at com.evermind.server.jms.EvermindQueueConnection.connect(EvermindQueueConnection.java:144) at com.evermind.server.jms.EvermindQueueConnection.receive(EvermindQueueConnection.java:102) at com.evermind.server.jms.EvermindQueueSession.receive(EvermindQueueSession.java:241) at com.evermind.server.jms.EvermindQueueReceiver.receive(EvermindQueueReceiver.java:34) at CReceiveMail.run(CReceiveMail.java:91) at CReceiveMail.main(CReceiveMail.java:66) I had specify application-client.xml also correctly. Can you help me in this. regards, Vijay __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
JMS Problem
hi, can we specify any class as a startup class in Orion the same way we can do in Weblogic. Vikas * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
RE: JMS Problem
You have to create an executable jar file and configure it in the application.xml and orion-application.xml as a client application. The executable jar will be invoked at boot time by Orion. -Original Message-From: Vikas Malhotra [mailto:[EMAIL PROTECTED]]Sent: Friday, August 10, 2001 5:24 AMTo: Orion-InterestSubject: JMS Problem hi, can we specify any class as a startup class in Orion the same way we can do in Weblogic. Vikas*DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: JMS Problem
The start up class in weblogic is specific to that server. It is not part of the j2ee spec and there is no equivalent in orion. - Original Message - From: Vikas Malhotra To: Orion-Interest Sent: Friday, August 10, 2001 7:24 AM Subject: JMS Problem hi, can we specify any class as a startup class in Orion the same way we can do in Weblogic. Vikas*DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
RE: JMS Problem
Well, I can get classes to start up when Orion starts: Edit your orion-application.xml file orion-application ... client-module path=start-this-jar.jar auto-start=true user=who-should-start-it arguments argument value=argumentValue1/ /arguments /client-module /orion-application Notice the auto-start and user tags. The jar you want to start up will also need an appropriate manifest (with the Main-Class property set correctly). That should do the trick for you. And be sure to read the documentation the mailing-archives, as this topic (like most) has been discussed resolved before. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Pouyer Sent: Friday, August 10, 2001 1:27 PM To: Orion-Interest Subject: Re: JMS Problem The start up class in weblogic is specific to that server. It is not part of the j2ee spec and there is no equivalent in orion. - Original Message - From: Vikas Malhotra To: Orion-Interest Sent: Friday, August 10, 2001 7:24 AM Subject: JMS Problem hi, can we specify any class as a startup class in Orion the same way we can do in Weblogic. Vikas * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
Problem with JMS
Hi, I am facing a problem in my application i am tryiing to incorporate the JMS in the application. As i create a new login though it is created in the database but it is not mailed to me( which should have been ) the following exception is thrown. Please Suggest Thanx in advance Vikas ** javax.naming.NameNotFoundException: javax.jms.QueueConnectionFactory not foundat com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:121)at com.evermind.naming.SubFilterContext.lookup(SubFilterContext.java:56)at javax.naming.InitialContext.lookup(Unknown Source)at com.mbt.mp.util.MpSystem.sendMail(MpSystem.java:169)at CMpCustomerControl.addCustomer(CMpCustomerControl.java:503)at CMpCustomerControl.performAction(CMpCustomerControl.java:97)at CMpCustomerControl.doGet(CMpCustomerControl.java:69)at CMpCustomerControl.doPost(CMpCustomerControl.java:43)at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) ** * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
Re: Problem with JMS
make sure that queueConnectionFactory exits in your %orionRoot%\config\jms.xml file. - Original Message - From: Vikas Malhotra To: Orion-Interest Sent: Thursday, August 09, 2001 11:07 AM Subject: Problem with JMS Hi, I am facing a problem in my application i am tryiing to incorporate the JMS in the application. As i create a new login though it is created in the database but it is not mailed to me( which should have been ) the following exception is thrown. Please Suggest Thanx in advance Vikas ** javax.naming.NameNotFoundException: javax.jms.QueueConnectionFactory not foundat com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:121)at com.evermind.naming.SubFilterContext.lookup(SubFilterContext.java:56)at javax.naming.InitialContext.lookup(Unknown Source)at com.mbt.mp.util.MpSystem.sendMail(MpSystem.java:169)at CMpCustomerControl.addCustomer(CMpCustomerControl.java:503)at CMpCustomerControl.performAction(CMpCustomerControl.java:97)at CMpCustomerControl.doGet(CMpCustomerControl.java:69)at CMpCustomerControl.doPost(CMpCustomerControl.java:43)at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) ***DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
JMS and clustering
I've got 2 Orion servers in a cluster-island. I'd like tohave objects running in both serversbe able to communicate with each other using JMS. In order for this to work, does each Orion server still need to start up its own JMS server? Or do I somehow configure one Orion server to start up aJMS server, and have the other Orion server use the same JMS server?
Re[2]: JMS TopicSubscriber blocks on receive()
Once again. If there are no subscribers to a topic, Messages are removed by the provider. Start the subscriber before you publish any messages and your code will work. If you need topic messages to persist over multiple subscriber invocations you create a durable subscriber. Messages sent to a queue will persist until they are consumed or the TTL elapses. This is also the case with durable subscribers and topics. Messages sent to topics with no subscribers are deleted immediately.
Re: JMS TopicSubscriber blocks on receive()
It is quite obvious it is waiting for a message. So my advice is that you write a client / jsp page / whatever with a TopicBrowser(?) to make sure your message really is there. Johan - Original Message - From: Greg Matthews To: Orion-Interest Sent: Wednesday, July 25, 2001 2:49 AM Subject: JMS TopicSubscriber blocks on receive() dear all, i've having trouble with a subscriber blocking on a receive message call. for the time being i can use a Queue instead of a Topic but would like to know if anyone can spot any stupid error i'm making. --- code for publisher Topic t = (Topic)ServerUtil.get( "jms/configTopic" );TopicConnectionFactory tcf = (TopicConnectionFactory)ServerUtil.get( "jms/TopicConnectionFactory" );TopicConnection tc = tcf.createTopicConnection();TopicSession ts = tc.createTopicSession(false,TopicSession.AUTO_ACKNOWLEDGE); TopicPublisher tp = ts.createPublisher(t); Message m = ts.createTextMessage("hello world"); tp.publish(m); // create subscriber in a new thread. new Thread( new Listener(tc,ts,t)).start(); code for subscriber class Listener implements Runnable {TopicConnection tc;TopicSession ts;Topic t; Listener(TopicConnection tc, TopicSession ts, Topic t) throws Exception {this.tc= tc;this.ts = ts;this.t = t;}public void run() {try {TopicSubscriber sub = ts.createSubscriber(t,null,true);System.out.println("receiving message..." );tc.start();synchronized(this) {wait(5000);}System.out.println(sub.receive()); // this line blocks. why? } catch( Exception e ) { e.printStackTrace();}System.out.println("end");}} thanks, greg.
Re[2]: JMS TopicSubscriber blocks on receive()
You must start the recieve thread before you publish the message. If there are no subscribers when a message is published it will be thrown away.
Re: JMS TopicSubscriber blocks on receive()
johan, thanks for the response. As you can see from my code snippet, a message is created and posted, and there is a 5 second pause between publishing the message, and then attempting to receive it. In my experiments with a Queue, the message was available to a QueueReceiver almost straight away. Is there some difference between Queue and Topic based messaging where Topic messages take much longer to become available? regards, greg. - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Wednesday, July 25, 2001 5:20 PM Subject: Re: JMS TopicSubscriber blocks on receive() It is quite obvious it is waiting for a message. So my advice is that you write a client / jsp page / whatever with a TopicBrowser(?) to make sure your message really is there. Johan - Original Message - From: Greg Matthews To: Orion-Interest Sent: Wednesday, July 25, 2001 2:49 AM Subject: JMS TopicSubscriber blocks on receive() dear all, i've having trouble with a subscriber blocking on a receive message call. for the time being i can use a Queue instead of a Topic but would like to know if anyone can spot any stupid error i'm making. --- code for publisher Topic t = (Topic)ServerUtil.get( "jms/configTopic" );TopicConnectionFactory tcf = (TopicConnectionFactory)ServerUtil.get( "jms/TopicConnectionFactory" );TopicConnection tc = tcf.createTopicConnection();TopicSession ts = tc.createTopicSession(false,TopicSession.AUTO_ACKNOWLEDGE); TopicPublisher tp = ts.createPublisher(t); Message m = ts.createTextMessage("hello world"); tp.publish(m); // create subscriber in a new thread. new Thread( new Listener(tc,ts,t)).start(); code for subscriber class Listener implements Runnable {TopicConnection tc;TopicSession ts;Topic t; Listener(TopicConnection tc, TopicSession ts, Topic t) throws Exception {this.tc= tc;this.ts = ts;this.t = t;}public void run() {try {TopicSubscriber sub = ts.createSubscriber(t,null,true);System.out.println("receiving message..." );tc.start();synchronized(this) {wait(5000);}System.out.println(sub.receive()); // this line blocks. why? } catch( Exception e ) { e.printStackTrace();}System.out.println("end");}} thanks, greg.
JMS: Queue or Topic multicast?
dear all, are either of the Queue or Topic parts of the JMS multicast? i.e. once one subscriber pulls the message off the queue, can other subscribers see the message? since each of our clustered servers cache some info, i was thinking that a half-reasonable way of dealing with some stuff being updated on one server would be for the updated server to fire an "i've been updated" message, causing the other servers to refresh their cache. i know i could probably look at entity beans, etc, but would just like an answer to my question if anyone knows. thanks very much, greg.
JMS TopicSubscriber blocks on receive()
dear all, i've having trouble with a subscriber blocking on a receive message call. for the time being i can use a Queue instead of a Topic but would like to know if anyone can spot any stupid error i'm making. --- code for publisher Topic t = (Topic)ServerUtil.get( "jms/configTopic" );TopicConnectionFactory tcf = (TopicConnectionFactory)ServerUtil.get( "jms/TopicConnectionFactory" );TopicConnection tc = tcf.createTopicConnection();TopicSession ts = tc.createTopicSession(false,TopicSession.AUTO_ACKNOWLEDGE); TopicPublisher tp = ts.createPublisher(t); Message m = ts.createTextMessage("hello world"); tp.publish(m); // create subscriber in a new thread. new Thread( new Listener(tc,ts,t)).start(); code for subscriber class Listener implements Runnable {TopicConnection tc;TopicSession ts;Topic t; Listener(TopicConnection tc, TopicSession ts, Topic t) throws Exception {this.tc= tc;this.ts = ts;this.t = t;}public void run() {try {TopicSubscriber sub = ts.createSubscriber(t,null,true);System.out.println("receiving message..." );tc.start();synchronized(this) {wait(5000);}System.out.println(sub.receive()); // this line blocks. why? } catch( Exception e ) { e.printStackTrace();}System.out.println("end");}} thanks, greg.
JMS login failure
Hi all! When i try to run Orion, the following message appears: blah-blah-blah Authorization error for TheLogProxy: Invalid username/password for host:port (Login failed) java.lang.NullPointerException at com.evermind._hs._ehc(Unknown Source) at com.evermind._wr.run(Unknown Source) at com.evermind._if.run(Unknown Source) Orion/1.5.2 initialized I suppose, that it happens because of wrong username/password in JMS.XML, but where i can specify usernames and passwords for JMS server or for TopicConnectionFactories? Or maybe i do not specify username/password in orion-ejb-jar.xml for my MDB? Thanks. P.S. TheLogProxy is my MDB
Re: External JMS broker with Orion
I have had success in configuring my mdb's to publish to a topic on an external jms server but no luck in being able to subscribe the mdb's to a topic on external jms. In my expirence I think that this is not possible in the current version of orion 1.5.2. It appears that orion is not binding the resource-ref's that you describe in your orion specific ejb-jar files to orion's jndi tree until after the container has initialized the mdb. So it will throw a no destination found error when trying to set up your mdb to listen to one of those resource ref's that you have set up in your deployment descriptor. - Original Message - From: Chris Roffler [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, July 16, 2001 5:59 PM Subject: External JMS broker with Orion Hello, I am trying to use IMQ as the JMS Broker with Orion. I can't get my MDB to work. Has anybody been able to successfully integrate any external JMS Broker with Orion ? If so, can you share the jms.xml and ejb-jar.xml files ? Thanks Chris __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: External JMS broker with Orion
Tim, this sounds like a bug. Could you please post this bug in bugzilla? regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Pouyer Sent: Tuesday, July 17, 2001 9:09 AM To: Orion-Interest Subject: Re: External JMS broker with Orion I have had success in configuring my mdb's to publish to a topic on an external jms server but no luck in being able to subscribe the mdb's to a topic on external jms. In my expirence I think that this is not possible in the current version of orion 1.5.2. It appears that orion is not binding the resource-ref's that you describe in your orion specific ejb-jar files to orion's jndi tree until after the container has initialized the mdb. So it will throw a no destination found error when trying to set up your mdb to listen to one of those resource ref's that you have set up in your deployment descriptor. - Original Message - From: Chris Roffler [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, July 16, 2001 5:59 PM Subject: External JMS broker with Orion Hello, I am trying to use IMQ as the JMS Broker with Orion. I can't get my MDB to work. Has anybody been able to successfully integrate any external JMS Broker with Orion ? If so, can you share the jms.xml and ejb-jar.xml files ? Thanks Chris __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
External JMS broker with Orion
Hello, I am trying to use IMQ as the JMS Broker with Orion. I can't get my MDB to work. Has anybody been able to successfully integrate any external JMS Broker with Orion ? If so, can you share the jms.xml and ejb-jar.xml files ? Thanks Chris __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
JMS for non-java clients !!
hi, is it possible to use the JMS Server with non -java applications as JMS Clients? (both pub/sub p2p) Hadi
Re: JMS for non-java clients !!
is it possible to use the JMS Server with non -java applications as JMS Clients? (both pub/sub p2p) I'm not sure about the internal server in Orion, but if you use external jms provider, in this case swiftmq, its possible to write clients for it in c++