RE: Concurrent calls to Session bean methods
Please respond to Orion-Interest Vani, You can use the petstore trick. Use a facade class which sychronizes each call to your session bean. That should do the trick. This is a _famous_ problem with session beans. regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vani H.S. Sent: Wednesday, March 20, 2002 12:04 AM To: Orion-Interest Subject: Concurrent calls to Session bean methods Hello All, I have been trying to deploy an application consisting of session beans and mdbs onto orion1.5.4. But I seem to run into deadlocks, because my session bean gets called concurrently. Please can anybody can tell me if there is a setting to allow concurrent calls so that, when a session bean method is called at one time, the EJB container blocks the concurrent method call and allows it to proceed when the previous call has completed? If not, how should this problem of concurrent calls be handled in orion? Please help. Thanks, Vani The allow-concurrent-calls element specifies whether a stateful session bean instance allows concurrent method calls. By default, allows-concurrent-calls is false. However, when this value is set to true, the EJB container blocks the concurrent method call and allows it to proceed when the previous call has completed. _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Some more help with SwiftMQ and Orion
Hello All, My earlier message on the same topic got lost, I think. Anyways, I have successfully integrated SwiftMQ with Orion 1.5.4 I have been able to create queues and I am even able to deploy MDBs. I am facing a strange problem. For my MDB, in the orion-ejb-jar.xml, I have given the following settings. message-driven-deployment name=SystemMessageEJB destination-location=java:comp/resource/SwiftMQ/SystemQueue connection-factory-location=java:comp/resource/SwiftMQ/QueueConnectionFactory max-instances=1 min-instances=1 cache-timeout=never / But somehow, when my application runs, I see that the SystemMessageBean's ejbCreate is called once again in the code. I don't know why this is happening. Please can anybody suggest any solution to this problem? Now I am really confused as to whether MDBs are getting created in Orion or SwiftMQ. Why is the setting my orion-ejb-jar.xml getting ignored? Please help. Thanks, Vani _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
RE: Concurrent calls to Session bean methods
Thanks for the suggestion, Elephantwalker. Will look into the facade class used in pet store application. Regards, Vani From: The elephantwalker [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: Concurrent calls to Session bean methods Date: Tue, 19 Mar 2002 20:31:38 -0800 Vani, You can use the petstore trick. Use a facade class which sychronizes each call to your session bean. That should do the trick. This is a _famous_ problem with session beans. regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vani H.S. Sent: Wednesday, March 20, 2002 12:04 AM To: Orion-Interest Subject: Concurrent calls to Session bean methods Hello All, I have been trying to deploy an application consisting of session beans and mdbs onto orion1.5.4. But I seem to run into deadlocks, because my session bean gets called concurrently. Please can anybody can tell me if there is a setting to allow concurrent calls so that, when a session bean method is called at one time, the EJB container blocks the concurrent method call and allows it to proceed when the previous call has completed? If not, how should this problem of concurrent calls be handled in orion? Please help. Thanks, Vani The allow-concurrent-calls element specifies whether a stateful session bean instance allows concurrent method calls. By default, allows-concurrent-calls is false. However, when this value is set to true, the EJB container blocks the concurrent method call and allows it to proceed when the previous call has completed. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com _ Chat with friends online, try MSN Messenger: http://messenger.msn.com
SwiftMQ with Orion response time
Hi All, I am using SwiftMQ with Orion 1.5.4. I have an application containing an MDB deployed on Orion. I send a message to a queue from a client application. But, the time from when I send the message, to the time the server recieves the message( i.e. the onMessage() function in the MDB being called ), is almost 15 seconds. This is a long delay. Could anybody please tell me if this delay is normal or it is due to some configuration, in orion? Thanks, Vani _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
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
SwiftMQ wth Orion
Hi All, After days of trial with Open JMS I decided to give a try with SwiftMQ. I want to deploy my MDB on Orion1.5.4, and I want to use SwiftMQ JMS provider. The document I referred to is the one available at http://kb.atlassian.com/content/orion/docs/resource-providers/resource-providers.html After following the steps in that document, I tried to deploy my application onto Orion and it fails with the following Exception. Error updating application OrionMDB: Error creating naming context instance: javax.naming.NoInitialContextException: Cannot instantiate class: com.swiftmq.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.swiftmq.jndi.InitialContextFactoryImpl] Please if any of you have got Orion working with SwiftMQ, let me know how you did it. I don't seem to have any clue as to what is going on. I have included the swiftmq.jar, which contains com.swiftmq.jndi.InitialContextFactoryImpl.class in the classpath of orion server. Please help me. Thanks, Vani _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Does Orion 1.5.2 support creation of temporary queues?
Hello All, I have an application which creates temporary queues. But when I deploy this application on Orion, it gives an exception javax.jms.InvalidDestinationException: Invalid queue Can anybody please tell me if Orion 1.5.2 supports creation of temporary queues? Thanks, Vani _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
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: How to run an existing j2ee application on orion
Herman, Thanks for your reply. You are right. There was some tag mismatch and after fixing it Orion successfully deployed the application. Thanks for your reply. Bets regards, Vani From: Herman Jansson [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: How to run an existing j2ee application on orion Date: Tue, 13 Nov 2001 09:56:24 +0100 I also got an error when I deployed my ear from Sun's J2EE server but I got a pretty detailed description of what orion didnt like in the XML files. With this information I could unpack my ear and fix the XML file and succeed to redeploy it. Some SUN specific information is stored in a sun...something...xml file for each bean. I think this information is ignored by Orion!?? Though you can deploy your bean but it will use the orion default settings. A typical thing that is put in these files is the name of the data source for an entity bean. /Herman -Original Message- From: Vani H.S. [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 9:04 PM To: Orion-Interest Subject: How to run an existing j2ee application on orion Hi All, I have a J2EE application build using Sun's J2EE server. Now, I want to deploy it on Orion. But it gives me some errors. I realized that there is some Orion Specific Information that needs to be a part of the EAR. Please can anybody tell me how I should go about making the Orion Specific information part of the ear? I am building the ears using ANT 1.4. Thanks, Vani _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
How to run an existing j2ee application on orion
Hi All, I have a J2EE application build using Sun's J2EE server. Now, I want to deploy it on Orion. But it gives me some errors. I realized that there is some Orion Specific Information that needs to be a part of the EAR. Please can anybody tell me how I should go about making the Orion Specific information part of the ear? I am building the ears using ANT 1.4. Thanks, Vani _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
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