RE: How can I start Orion Server as a service in Windows NT/2000 ?

2001-11-12 Thread Mike Cannon-Brookes

Vu,

As always please check the knowledge base before asking questions such as
this - it saves everyone time!

A query for NT service

http://kb.atlassian.com/search.jsp?query=NT+service

yields

http://kb.atlassian.com/content/orionsupport/articles/orserv.html

which looks like exactly what you're asking ;)

Cheers,
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 Vu Le Hung
Sent: Monday, November 12, 2001 3:38 PM
To: Orion-Interest
Subject: How can I start Orion Server as a service in Windows NT/2000 ?


Dear all,
I'm trying to find a way to start Orion Server as a service in
WindowsNT/2000( i.e. Orion will be started automatically when my computer
startup without any user interaction).
Any one know how to do this ?
I tried this as below but it failed :
1. Write an small  Win32 application startorion.exe that calls
java -jar orion.jar
2. Register it as a automatic service (named MyService) with Win2000
using Service Installation Wizard tool in the Windows 2000 Server Resource
Kit.
3. Restart my computer.
Then I can find item MyService  in the list of all available services in
my computer. But this service can not be start.
Any idea ??? Thanks in advance.

Vu Le Hung









after create the bean the server was halt

2001-11-12 Thread Derek Lee




  Hi
  All,
   I am moving my weblogic6.1 EJBs to
  my orion 1.5.2 server. Ican deploy thoseEJB in Orion1.5.2 server
  on NT platform.I use a test program to invoke that bean. It works fine
  at the first time. However, I lookup again. The orion was halt ever I use the
  control C. The server seemsholding some service or background jobs. Is
  that because of Weblogic6.1 using ejb2.0 and orion using ejb1.0? Any expert
  can give me some clue?
  
  Thanks in advance
  Derek
__This transmission and the information it contains including any attachment, is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, disclose or copy this transmission. If you have received this transmission (or any copy) in error, please notify us immediately by reply e-mail to [EMAIL PROTECTED] Please delete the original transmission(including any attachment) and its contents and destroy or return to us any hard copy. Please note that any electronically transmitted material that purports to commit Sun Hung Kai & Co. Ltd., or any of its subsidiaries or associates, to any obligation or in any other way whatsoever, unless subsequently confirmed by  fax or letter signed (in either case) by our duly authorized officer(s) may not be relied on. Material transmitted to you should also be checked by reference to the hard copy of the material printed directly by us. 

Ad: How can I start Orion Server as a service in Windows NT/2000 ?

2001-11-12 Thread tore-velle . nilsen


Download JVMI2 from this site :  http://www.kcmultimedia.com/jvmi/

Copy the jvmi-folder  to the hotspot directory of the installed JRE
Set an environment variable (PATH) to point to the bin-folder: e.g. C:
\jdk1.3.1_01\jre\bin\hotspot\jvmi2\bin
detatch the service-description file (runAsService.xml) to Orion directory,
edit the file
Start a command editor, set current directory to Orion (C:\orion)
test the application from command line by typing: jvmi2 -cp c:
\orion\orion.jar com.evermind.server.ApplicationServer

To install Orion as a service
 jvmi2 -f runAsService.xml

To remove Orion service:
from the Orion directory, run : jvmi -r orion (orion is the service-name
from the xml install description)

(See attached file: runAsService.xml)

-- Tore Velle o)
[EMAIL PROTECTED]
Phone: +4790911252



runAsService.xml
Description: Binary data


ejb soap

2001-11-12 Thread Ramin Heidari

hi,

how can i deploy ejb Apache soap hello sample in 
orion ?

Thanks,
Ramin


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com




Re: Urgent :: How to access JMS service from Servlet/JSP

2001-11-12 Thread Kesav Kumar

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: How can I start Orion Server as a service in Windows NT/2000 ?

2001-11-12 Thread Justin Crosbie



Hi 
Vu,

You 
need the JNT application from http://www.eworksmart.com/JNT/

Install 
this and type a command similar to the following, from where you installed 
Orion:
 
jnt "/InstallAsService:Orion Application Server" "/SD[ORION_HOME]" -jar 
orion.jar

where 
[ORION_HOME] is where you installed Orion. Worked for me, anyway. I had a job 
getting other java apps to run using this tool though :(


This 
has come up in the list before, so do a search on the archive for more 
info.

One 
thing I have noticed is that Orion runs slower this way than if you start it 
from a command prompt. Anyone know anything about this? I've asked this 
before.

Cheers,
Justin

  -Original Message-From: Vu Le Hung 
  [mailto:[EMAIL PROTECTED]]Sent: 12 November 2001 
  04:38To: Orion-InterestSubject: How can I start Orion 
  Server as a service in Windows NT/2000 ?
  Dear all,
  I'm trying to find a way to start Orion Server as 
  a service in WindowsNT/2000( i.e.Orion will be started automatically 
  when my computer startup without any user interaction).
  Any one know how to do this ?
  I tried this as below but it failed 
:
   1. Write an small Win32 
  application "startorion.exe" that calls "java -jar orion.jar"
  2. Register it as a 
  automatic service (named MyService) with Win2000 using "Service Installation 
  Wizard" tool in the Windows 2000 Server Resource Kit.
   3. Restart my computer. 
  
  Then I can find item "MyService" 
  inthe list of all available services in 
  my computer. But this service can not be start.
  Any idea ??? Thanks in advance.
   
  Vu Le Hung
  
   
  
  
   



Please remove me from the list

2001-11-12 Thread Niles Ho

I tried the Unsubscribe function at your site already.  It doesn't work.
Please remove me from the list.
- Niles


- Original Message -
From: Mike Cannon-Brookes [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 4:00 PM
Subject: RE: How can I start Orion Server as a service in Windows NT/2000 ?


 Vu,

 As always please check the knowledge base before asking questions such as
 this - it saves everyone time!

 A query for NT service

 http://kb.atlassian.com/search.jsp?query=NT+service

 yields

 http://kb.atlassian.com/content/orionsupport/articles/orserv.html

 which looks like exactly what you're asking ;)

 Cheers,
 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 Vu Le Hung
 Sent: Monday, November 12, 2001 3:38 PM
 To: Orion-Interest
 Subject: How can I start Orion Server as a service in Windows NT/2000 ?


 Dear all,
 I'm trying to find a way to start Orion Server as a service in
 WindowsNT/2000( i.e. Orion will be started automatically when my computer
 startup without any user interaction).
 Any one know how to do this ?
 I tried this as below but it failed :
 1. Write an small  Win32 application startorion.exe that calls
 java -jar orion.jar
 2. Register it as a automatic service (named MyService) with Win2000
 using Service Installation Wizard tool in the Windows 2000 Server
Resource
 Kit.
 3. Restart my computer.
 Then I can find item MyService  in the list of all available services in
 my computer. But this service can not be start.
 Any idea ??? Thanks in advance.

 Vu Le Hung










Login from client and retrieving info thru Ldap

2001-11-12 Thread Thomas Saxtoft

I have worked for some time on the subj. To make it very clear I will
start telling in  a few words about the system.

On the client side we are going to use Swing, connecting to a Orion
server. We will just use simple authentication based on the
System.getProperty(user.name);
The server should then look up the user in Active Directory, and get the
groups he is a member of. Based on these groups and the roles in
ejb-jar.xml the server should administer access to the application.
That's very short the application.

Now my problem is implementing all this. I can not find any
documentation telling me how to do it. Matthew Porter has been so kind
to send me an implementation he has made called LdapUserManager.

Based on this Manager I have the following questions:

Firstly I would like to know how the client identifies to the
UserMAnager/Orion who he is. It needs just to give the user.name of
the user.

Secondly, how do I tell the UserManager which attributes to take from
the Active Directory in order to find out which groups he is a member
of?

How do I inform Orion on using LdapUserManager, and other classes from
the com.linjafoo package?

Reaching this point I believe that the server should do the rest by
itself. The rest I reffer to adminestring the roles and access to the
application. Please, correct me if I'm wrong.

Now what I _think_ Orion will do, is that it will manage the access to
methods and beans using the LdapUserManager. In my program code I will
then also be able to ask isCallerInRole(role).

One last thing is: Does there exits an independent implementation
instead of using something based on the Orion model. I mean, is roles
and grouips not part of the J2EE? I would prefer a independent way -
write once run anywhere.

That was many questions but I hope someone out their has been thru all
this, and just knows how to do it :-)

Thanks for any kind of help or comments.

Thomas Saxtoft

--
Thomas Saxtoft
EDB afdelingen
Søndagsavisen A/S
Tlf.: 3957 7531
Fax: 3957 7597




Re: ejb soap

2001-11-12 Thread Scott Farquhar

Ramin,

Don't forget to check out our knowledge base for these type of examples!

 http://kb.atlassian.com

A simple search returns a few results that may be of interest to you:

 http://kb.atlassian.com/search.jsp?query=SOAP

Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World



Ramin Heidari wrote:

 hi,
 
 how can i deploy ejb Apache soap hello sample in 
 orion ?
 
 Thanks,
 Ramin
 
 
 __
 Do You Yahoo!?
 Find a job, post your resume.
 http://careers.yahoo.com
 
 
 






Re: Monitoring web apps

2001-11-12 Thread Daniel López

Hi David,

We don't have a sophisticated system, but it works well for us. What we
do is put an Apache web server, acting as a proxy, in front of the orion
server. Then, in the proxy configuration you can specify a redirect page
in case something goes wrong, and we use it to redirect to a SSI script
that determines which application is down and which page should be shown
as an error message. This way you show automatically an error message,
just by shutting down orion or by returning a 500 code from your
application.
I hope it helps,
D.


David Pérez Villanueva wrote:
 
 Hi!
 
 We have several applications running  in  an Orion web server. Our
 server is allocated in a hosting corporation. They have a program that
 queries our PCs with an url , calling us if there is the word 'error'
 (or similar) in response.
 
 What is the problem? We need something that will check our applications
 and will build a html page (or plain text, or anything) with the check
 result. Does anybody know any good software to do this? (We have two
 PCs: one with Windows 2000 server and  another with Linux).
 
 Thankyou for your support.




Re: ejb soap

2001-11-12 Thread Venkat

Refer the attachment for installing soap in orion.You need to download
soap.zip from apache site

venkat
- Original Message -
From: Ramin Heidari [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 3:00 PM
Subject: ejb soap


 hi,

 how can i deploy ejb Apache soap hello sample in
 orion ?

 Thanks,
 Ramin


 __
 Do You Yahoo!?
 Find a job, post your resume.
 http://careers.yahoo.com


Title: Apache SOAP Installation Instructions


Apache-SOAP Version 2.0: Installing the Server-Side Under Orion

First, make the SOAP web application to follow orion style by creating a path-to-soap/webapps/META-INF/application.xml 
  that contains:

?xml version="1.0"?
!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd"

application
	display-nameSOAP/display-name
	description/description
	module
		web
			web-urisoap/web-uri
			context-root/soap/context-root
		/web
	/module
/application

Then, add new application to orion config/server.xml:
	application name="soap" path="path-to-soap/webapps/" auto-start="true" /

and add new web-app to orion config/default-web-site.xml:
	web-app application="soap" name="soap" root="/soap" / 
Then run orion and deploy the web app by pointing a browser to http://hostname:port/soap 
  with hostname is the hostname of your server and port is the port your orion 
  is listening to. Orion will automatically deploy the SOAP application. Then, 
  open the orion application-deployments/soap/soap/orion-web.xml and add this 
  line between the orion-web-app and /orion-web-app:
	classpath path="path-to-soap/lib/soap.jar;path-to-soap/" /
Now you should be able to deploy services by pointing a browser to


http://hostname:port/soap


where hostname is the host on which Orion is running and port is the port. 
  See the User's Guide for details on the aministration tool. The SOAP end-point 
  for invoking services on this server is:


http://hostname:port/soap/servlet/rpcrouter


Happy SOAP-ing!

Several Error pages

2001-11-12 Thread Juan Fuentes

Hi all,

I'd like to set up more than one error page for a exception, depending
on the URL of the jsp/servlet where the exception has been throwned.

As an example:
- If url=/app1/dir1/*.jsp - Error page = /app1/dir1/error.jsp
- If url=/app1/dir2/*.jsp - Error page = /app1/dir2/error.jsp

As you can see there is only one web application, so there is one
web.xml

Thanks in advance

-- 
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··




How to run an existing j2ee application on orion

2001-11-12 Thread Vani H.S.

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: Several Error pages

2001-11-12 Thread Martin J. Wells

 Hi all,
 
 I'd like to set up more than one error page for a exception, depending
 on the URL of the jsp/servlet where the exception has been throwned.
 
 As an example:
 - If url=/app1/dir1/*.jsp - Error page = /app1/dir1/error.jsp
 - If url=/app1/dir2/*.jsp - Error page = /app1/dir2/error.jsp
 
 As you can see there is only one web application, so there is one
 web.xml
 

Use

%@ page errorPage=error.jsp %

inside each jsp.





Re: Monitoring web apps

2001-11-12 Thread Eddie

Daniel,

The way you do this with Apache sounds very nice.
I like to know how you configure Apache to redirect to another page when
something goes wrong.
Could you submit a little example please ?

Eddie

- Original Message -
From: Daniel López [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 2:23 PM
Subject: Re: Monitoring web apps


 Hi David,

 We don't have a sophisticated system, but it works well for us. What we
 do is put an Apache web server, acting as a proxy, in front of the orion
 server. Then, in the proxy configuration you can specify a redirect page
 in case something goes wrong, and we use it to redirect to a SSI script
 that determines which application is down and which page should be shown
 as an error message. This way you show automatically an error message,
 just by shutting down orion or by returning a 500 code from your
 application.
 I hope it helps,
 D.


 David Pérez Villanueva wrote:
 
  Hi!
 
  We have several applications running  in  an Orion web server. Our
  server is allocated in a hosting corporation. They have a program that
  queries our PCs with an url , calling us if there is the word 'error'
  (or similar) in response.
 
  What is the problem? We need something that will check our applications
  and will build a html page (or plain text, or anything) with the check
  result. Does anybody know any good software to do this? (We have two
  PCs: one with Windows 2000 server and  another with Linux).
 
  Thankyou for your support.






BodyTagSupport

2001-11-12 Thread Namor Taror

Has anybody had any problems with the iterative tag execution? Even my 
simplest 'test' tag does not execute its body. doStartTag and doEndTag are 
executing fine but the doIntBody and doAfterBody are not execiting at all.

taglib.tld:

tag
namegetCalendarList/name
tagclasscom.taror.schedule.taglib.calendar.CalendarList/tagclass
bodycontentjsp/bodycontent
infoList.../info


Class code:

public class LoopTag extends BodyTagSupport
{
private int count;
private int pos;

public void setCount(int count)
{
this.count = count;
}

public int doStartTag()
{
if(count  0)
  return EVAL_BODY_TAG;
else
  return SKIP_BODY;
}

public int doAfterBody() throws JspException
{
// Iterate until the count's up
if(++pos  count)
return EVAL_BODY_TAG;
else
return SKIP_BODY;
}

public int doEndTag() throws JspException
{
pos = 0;

try
{
if(bodyContent != null) // Check if we even entered the body
bodyContent.writeOut(bodyContent.getEnclosingWriter());
}
catch(java.io.IOException e)
{
throw new JspException(IO Error:  + e.getMessage());
}

return EVAL_PAGE;
}
}

JSP:

%@ page session=false %
%@ taglib uri=ScheduleUtil prefix=schedule %
html
head
titleCalendar List/title
/head
body
table
schedule:getCalendarList
tr
tdlksdjhg /td
/tr
/schedule:getCalendarList
/table
/body
/html





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





Re: Urgent :: How to access JMS service from Servlet/JSP

2001-11-12 Thread Vani H.S.

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





Unsubsribe

2001-11-12 Thread venkat



Even i tried to unsubscribe at the specifed 
address.It did not work.Please remove my name from the list.

Thanks in advance
venkat


Re[2]: Urgent :: How to access JMS service from Servlet/JSP

2001-11-12 Thread Sergey G. Aslanov

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]





Re: Monitoring web apps

2001-11-12 Thread Daniel López

Hi Eddie,

Here it goes:

.- Environment - An apache web server configured with mod_proxy and
SSI, running in port 80. Several orion instances with applications
running in other ports.
.- in httpd.conf -
...
VirtualHost _default_:80
ProxyVia On
# Proxy configuration for the different applications

# Application X
ProxyPass /nameX http://hostx.com:portX/nameX
ProxyPassReverse /nameX http://hostx.com:portX/nameX

# Application Y
ProxyPass /nameY http://hostx.com:portY/nameY
ProxyPassReverse /nameY http://hostx.com:portY/nameY

# Error configuration for the Cannot establish connection case
ErrorDocument 502 /SSIErrorHandler.shtml
/VirtualHost
...
.- Then the SSIErrorHandler.shtml looks like -
!-- Define application paths --
!-- Define the path for application X --
!--#set var=appX value=/^\/nameX/ --
!-- Define the path for application Y --
!--#set var=appY value=/^\/nameY/ --
...
!-- 
 Check which was the redirected path and include the appropriate
 error page
--
!-- If the original url was from application X --
!--#if expr=$REDIRECT_URL=$appX --
!-- Include the app X is not running, sorry error page --
!--#include file=localApacheDirX/index.html --
!-- If the original url was from application Y --
!--#elif expr=$REDIRECT_URL=$appY --
!-- Include the app Y is not running, sorry error page --
!--#include file=localApacheDirY/index.html --
!-- Error in an application with no specific message defined --
!--#else --
!-- Include the this app is not running, sorry error page --
!--#include file=localApacheDirCommon/index.html --
!--#endif --

And that's pretty much all. Just some catches:
.- In the Error pages, ALL the links have to be absolute and start with
a different name than the proxied path. Otherwise you get an infinite
loop between the proxied page and the error page. So make sure that
nameX and localApacheDirX are ALWAYS different and that all links in
localApacheDirX/index.html start with /localApacheDirX or http://.
.- If inside the applications you want to get the real remote IP instead
of the proxy one, then you can use, for example, the mod_proxy patch
written by Bjoern Hansen which includes the original IP in an http
header (X-Forwarded-For). We used it because we needed to implement IP
based security restrictions, which are not defined in the JSDK spec. We
also used this IP based security restrictions to prevent acces to the
applications by-passing the proxy, which is very important with SSL
protected applications.
.- It also works with ssl.
.- To improve performance, you can also use the apache proxy as
proxy-cache, to get the static content faster, but then be careful not
to allow it to cache the dynamic pages you don't want to be cached. And
make sure you have enough disk space ;).
.- We haven't specified and ErrorDocument directive for the code 500
(internal server error) because we wanted to be able to see this kind of
messages, but you can put it later on to show more graceful messages.
.- We use SSI to define the error hanlding page, but you could use a JSP
if you wished. We just did it to have a light weight proxy with no
special add ons.

I hope it helps,
D.




Eddie wrote:
 
 Daniel,
 
 The way you do this with Apache sounds very nice.
 I like to know how you configure Apache to redirect to another page when
 something goes wrong.
 Could you submit a little example please ?
 
 Eddie
 
 - Original Message -
 From: Daniel López [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Monday, November 12, 2001 2:23 PM
 Subject: Re: Monitoring web apps
 
  Hi David,
 
  We don't have a sophisticated system, but it works well for us. What we
  do is put an Apache web server, acting as a proxy, in front of the orion
  server. Then, in the proxy configuration you can specify a redirect page
  in case something goes wrong, and we use it to redirect to a SSI script
  that determines which application is down and which page should be shown
  as an error message. This way you show automatically an error message,
  just by shutting down orion or by returning a 500 code from your
  application.
  I hope it helps,
  D.
 
 
  David Pérez Villanueva wrote:
  
   Hi!
  
   We have several applications running  in  an Orion web server. Our
   server is allocated in a hosting corporation. They have a program that
   queries our PCs with an url , calling us if there is the word 'error'
   (or similar) in response.
  
   What is the problem? We need something that will check our applications
   and will build a html page (or plain text, or anything) with the check
   result. Does anybody know any good software to do this? (We have two
   PCs: one with Windows 2000 server and  another with Linux).
  
   Thankyou for your support.