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-name>jms/theQueueConnectionFactory</res-ref-name>
> <res-type>javax.jms.QueueConnectionFactory</res-type>
> <res-auth>Container</res-auth>
></resource-ref>
><resource-ref>
> <res-ref-name>jms/processQueue</res-ref-name>
> <res-type>javax.jms.Queue</res-type>
> <res-auth>Container</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