Using two RMI configurations for a single server
Hello, I am running two instances of Orion on my backend segment. Both servers run their own EJB applications. They are not clustered, shared or anything like that and they accept RMI connections to separate ports. Then I have one instance of Orion running on front-end. This instance is deployed with two web applications. The setup I'am trying to accomblish is therefore following: front-end back-end +--+ | EJB 1 | +---+--+--+ |WebApp1|---/ | | |WebApp2|---+--+ +---+ \ | EJB 2 | --+--+ The problem is that I haven't found any way to specify RMI configuration per-application. As I understood it, it can only be done per-server. A path to rmi.xml is specified in server.xml. JNDI can be easily setup per application in many ways but is there way to do the same for RMI configuration? If not, I think I have to split up the frontend server instance too? Thanx! -- Joni [EMAIL PROTECTED] http://www.shiftcontrol.com
Pooling connections with PostgreSQL
Hi! Sorry for my English, I hope you understand me. We are using PostgreSQL with orion. We are logging the connections to the database, and we found there is only one connection. The data source is: data-source name=eurovipshotelDS class=com.evermind.sql.ConnectionDataSource location=jdbc/eurovipshotelDS pooled-location=jdbc/AzorHotelPooledDS xa-location=jdbc/xa/eurovipshotelXADS ejb-location=jdbc/eurovipshotelEJBDS schema=database-schemas/postgresql.xml url=jdbc:postgresql://localhost/azorhotel connection-driver=org.postgresql.Driver username=xx password=xx min-connections=20 max-connections=100 max-connect-attempts=3 inactivity-time=30 / What's the problem? Why it does not open 20 connections? Thanks.
Problem with user manager
I've implemented a user manager class and it works well. I've configured this user manager class in orion-application.xml. This user manager works with the webs applications. I've implemented a client application and I want to connect remotetly. I've configured a context and I've put a user and password defined in principals.xml. My problem is that the remote connection doesn't work and the messager is : Invalid username/password for application login If I comment the user manager tag the client application cant connect but the autentication of web application doesn't work. What can I do? Could you help me?
automatic invocation of servlet as the root-service
Hello everybody! I hope someone can give me a hint for my problem: I want to try to use a servlet as the root of my web-application, so I want the servlet/com.company.mystuff.MyServlet - servlet called, when I do not specify any file in my http-request. So I want to map my servlet to the root of the web-application; if I call www.mycompany.com I want to get to my servlet, rather than receiving default.jsp or index.html (or a directory-browsing not allowed - message). Thanks in advance for your help!!! best regards, Robert Virkus Director Mobile Solutions -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de
problem with database connection
Hi you all, i have a question. I have an oracle data-source configured on a 1.5.2 orion server. Here you are: data-sources data-source class=com.evermind.sql.DriverManagerDataSource name=IMS location=jdbc/IMSCoreDS xa-location=jdbc/xa/IMSXADS ejb-location=jdbc/IMSDS schema=database-schemas/oracle.xml connection-driver=oracle.jdbc.driver.OracleDriver username=user password=password url=jdbc:oracle:thin:@10.3.1.6:port:SID inactivity-timeout=30 / /data-sources It works fine. But the problem comes when i have a network problem to connect to the data-base. Then orion isn't able to make a connection and instead of giving up connecting after 3 attemps(as i read this is the default value for the max-connect-attempts) it gets hanged up trying to connect. is there any way to tell orion a connection timeout for oracle connections? Thank u.
RE: Integrating LOG4J into Orion...
Well I've followed all these instructions but have fallen over on a couple of counts: 1- Using a BasicConfigurator, which is initialised within a singleton, nothing is displayed, it's as if log4j has gobbled up all my messages :-( 2- If I try and use a DOMConfigurator it can't find the config file. Help anyone? Thanks, Guy :-( -Original Message- From: Scott Farquhar [mailto:[EMAIL PROTECTED]] Sent: 22 January 2002 01:28 To: Orion-Interest Subject: Re: Integrating LOG4J into Orion... Further to what Mike has said, I'll just give you a little update on the status of the Log4j 1.2 release. The 1.2 code base is largely different to the 1.1 base, and has features that when finished, will be useful for using in application servers, and make it a lot easier to configure. The features that I talk about are: - Different LogManagers. This will allow Orion to provide a logmanager *per application*, or if it can't find one, use the default logmanager. This means that you will be able to specify a configuration file per application, and not have to manually configure it. - Configuration files will be reloaded The watchers code is being rewritten. When it is finished, you will most likely have code that allows you to configure how often the config files are reloaded (and stop / restart the watcher thread). So what does this mean for you, if you are using log4j in your application now? - Use the 1.2 code. Although in alpha, it is quite stable. - If you have specific requirements (apart from the above two), suggest them on the log4j email list, or email me with your suggestions. Lastly - congratulations on using log4j. Logging is very important in enterprise applications! Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Mike Cannon-Brookes wrote: This is one possible scenario - but as Jeff says it's server specific logging (not application specific) - which can often be non-optimal. We have a document coming out on this (check http://kb.atlassian.com) soon, but until it's finished here's what we usually do: - use the latest log4j from CVS (which has the capability to define which is the default log loading class - there is now one which loads log4j.xml from classpath, and watches it) - I believe it's done via system properties (selecting automated file loader and watch time) - add a library path=config / to your orion-application.xml for each application - add config/log4j.xml to your application You're done! this means you now have : - automatic log configuration (no more need for servlet listeners, application clients or servlets to configure logging!) - dynamic logging (you can just change the log4j.xml file and your changes are picked up without redeployment) - logging _per application_ (rather than per server) As I said, see if the above directions work for you and please email me off list if they don't (so we can adjust the document in progress). Watch this space for the doco coming soon ;) Hope this helps! Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world Now just configure log4j.xml On 19/1/02 4:40 AM, Jeff Schnitzer ([EMAIL PROTECTED]) penned the words: I put the log4j.jar in orion's lib directory, and use -Dlog4j.configuration=file:path/to/log4j.properties to initialize log4j. I'm pretty happy with this approach. I control logging on a server-wide basis, so I can use the same ear file for both testing and deployment. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 5:35 PM To: Orion-Interest Subject: FW: Integrating LOG4J into Orion... One more time, the last one did not show up -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 11:09 AM To: Orion-Interest Subject: Integrating LOG4J into Orion... I have a full EJB/JSP application running with Orion. Is there a preferred method of initializing LOG4J in this situation? Looking at the LOG4J documentation, they mention using a startup servlet to do the initialization. I am concerned as to how this would work with the CLASSLOADER hierarchy. If I initialize my LOG4J at the servlet (WEB) layer, will the EJB's be able to see the initialized LOG4J or will they attempt to re-initialize due to the different classloader? Thanks. -AP_
servlet-mapping
_ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Re[2]: Integrating LOG4J into Orion...
Hallo Guy, we have developed a servlet which is loaded at the startup of orion (via the load-on-startup1/load-on-startup in the servlet-definition in web.xml) and initialises the log4j-framework according to a properties-file. This will set up the loging-configuration globally, though... greetings Rob -SOURCE AHEAD- package com.scaraboo.logging; import javax.servlet.http.*; import org.apache.log4j.*; /** * Title:Log4jInitServlet initializes log4j-logging for JSP. * Description: This servlet should be loaded at startup, definition in * /WEB-INF/web.xml: * pre *lt;?xml version=1.0?gt; *lt;!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtdgt; * *lt;web-appgt; * lt;servletgt; *lt;servlet-namegt;log4j-initlt;/servlet-namegt; *lt;servlet-classgt;com.scaraboo.logging.Log4jInitServletlt;/servlet-classgt; *lt;init-paramgt; * lt;param-namegt;cfg_filelt;/param-namegt; * lt;param-valuegt;logging.cfglt;/param-valuegt; *lt;/init-paramgt; *lt;load-on-startupgt;1lt;/load-on-startupgt; * lt;/servletgt; *lt;/web-appgt; * /pre * Copyright:Copyright (c) 2001 * Company: scaraboo GmbH * @author Robert Virkus, [EMAIL PROTECTED] * @version 1.0 * @see a href=http://jakarta.apache.org/log4j/docs/documentation.html;http://jakarta.apache.org/log4j/a */ public class Log4jInitServlet extends HttpServlet { private static Category LOG = Category.getInstance( Log4jInitServlet.class.getName() ); public void init() { String cfgpath = logging.cfg; if (getInitParameter( cfg_file ) != null) cfgpath = getInitParameter( cfg_file ); PropertyConfigurator.configure( cfgpath ); LOG.info(logging configuration is set according to configuration-file [ + cfgpath + ]. ); } public void doGet( HttpServletRequest req, HttpServletResponse resp ) { // do nothing, servlet should just be loaded at startup } } Thursday, January 31, 2002, 7:15:09 PM, you wrote: DGTL Well I've followed all these instructions but have fallen over on a couple DGTL of counts: DGTL 1- Using a BasicConfigurator, which is initialised within a singleton, DGTL nothing is displayed, it's as if log4j has gobbled up all my messages :-( DGTL 2- If I try and use a DOMConfigurator it can't find the config file. DGTL Help anyone? DGTL Thanks, DGTL Guy :-( DGTL -Original Message- DGTL From: Scott Farquhar [mailto:[EMAIL PROTECTED]] DGTL Sent: 22 January 2002 01:28 DGTL To: Orion-Interest DGTL Subject: Re: Integrating LOG4J into Orion... DGTL Further to what Mike has said, I'll just give you a little update on the DGTL status of the Log4j 1.2 release. DGTL The 1.2 code base is largely different to the 1.1 base, and has features DGTL that when finished, will be useful for using in application servers, and DGTL make it a lot easier to configure. DGTL The features that I talk about are: DGTL - Different LogManagers. DGTL This will allow Orion to provide a logmanager *per application*, or if DGTL it can't find one, use the default logmanager. This means that you will DGTL be able to specify a configuration file per application, and not have to DGTL manually configure it. DGTL - Configuration files will be reloaded DGTL The watchers code is being rewritten. When it is finished, you will DGTL most likely have code that allows you to configure how often the config DGTL files are reloaded (and stop / restart the watcher thread). DGTL So what does this mean for you, if you are using log4j in your DGTL application now? DGTL - Use the 1.2 code. Although in alpha, it is quite stable. DGTL - If you have specific requirements (apart from the above two), suggest DGTL them on the log4j email list, or email me with your suggestions. DGTL Lastly - congratulations on using log4j. Logging is very important in DGTL enterprise applications! DGTL Cheers, DGTL Scott Mit freundlichen Grüßen, Robert Virkus Director Mobile Solutions -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene
Re: automatic invocation of servlet as the root-service
Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
servlet-mapping (again)
Ok, I've tried to add a servlet-mapping with a url-pattern/test/url-pattern to web.xml for all my servlets, but I cannot get it to work - how do you specify a different URL for your servlets to be accessed?!?! I just want to say http://localhost/test/MyServlet I've tried setting the web-dir value in the global-web-application.xml file and that does nothing. Is there any file I am forgetting about? Do I have to move my servlets to another directory?? Please help! thanks, Dan _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
RE: long sessions
| I don't believe Orion (or other J2EE containers) distribute | changes to the ServletContext object to other VM/Cluster | members? According to Servlet Spec the ServletContext exists per VM only - and it states that this is even true in a distributed environment. For global data you should use EJB or DB instead. So no automatic sharing there. | To address these requirements, you'd need to persist the user's | access date state on a shared resource in your cluster. | Serialized UserState objects on a shared file system, or a DB table. Well - I am still not confident which works best. Anyone else any experiences in implementing a clustered global application context which allows sharing? In my current issue DB and file system aren't an option - so we currently run an experiment with http servlets listing to JMS (and write information in the app context and synch them via JMS). Depending on the app server you run into issues because of non clusterable JMS Server ... Recommendations? Jens
RE: automatic invocation of servlet as the root-service
Hi Here is what I would try. Setup a context for your app (Servlet) Setup a defautl/welcome type pages for the root of your web server, say redir.html. Have that page do a redirect to the servlet resource using the standard HTML meta tag. meta http-equiv=refresh content = 0; url=http://your-site/your-servlet-resource Becarefull with your servlet mapping, so you dont get stuck in a loop -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. ** THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE, IT MAY CONTAIN PRIVILEGED OR CONFIDENTIAL INFORMATION. ANY UNAUTHORISED DISCLOSURE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT OUR INTERNAL RECORDS. PLEASE THEN DELETE THE ORIGINAL EMAIL. THANK YOU **
Client execution...
I am wondering if Orion executes the application clients stated as auto-start in orion-application.xml in separate threads? one for each client? I have three clients in my application, one initclient which populates the db first time the app is started, one schedular and one client listening on port 25 for incomming smtp. The trouble is that the two first clients are started just as expected but when Orion is trying to start the third it just hangs. I´ve tried to launch the third client from a servlet with the -userThread switch and then it starts. Maybe Im wrong but shouldn´t it be possible to launch a client who acts like a server? Maybe I should add that Im using Orion 1.5.2 on macos X. /Linus
RE: automatic invocation of servlet as the root-service
Create a default.jsp with either: jsp:forward page=your/servlet/path/ or % response.sendRedirect(your/servlet/path); % depending on which fits your preference best. I find that the redirect is a bit better for debugging because jsp:forward munges any errors. I never managed to configure Orion to use a servlet as the context root. Nothing in the Servlet specification seems to require this be possible, either. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created IC YourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
Re: long sessions
hi people I posted the original thread on this just to clarify, there is just one app server, no clusters. the site works fine, no problems with sessions at all I was just wondering what would happen if the server had to hold on to these session objects for a much much longer period of time cheers Jens Schumann wrote: | I don't believe Orion (or other J2EE containers) distribute | changes to the ServletContext object to other VM/Cluster | members? According to Servlet Spec the ServletContext exists per VM only - and it states that this is even true in a distributed environment. For global data you should use EJB or DB instead. So no automatic sharing there. | To address these requirements, you'd need to persist the user's | access date state on a shared resource in your cluster. | Serialized UserState objects on a shared file system, or a DB table. Well - I am still not confident which works best. Anyone else any experiences in implementing a clustered global application context which allows sharing? In my current issue DB and file system aren't an option - so we currently run an experiment with http servlets listing to JMS (and write information in the app context and synch them via JMS). Depending on the app server you run into issues because of non clusterable JMS Server ... Recommendations? Jens
RE: automatic invocation of servlet as the root-service
Sounds like you should use a filter! Check out the filter tutorials at orionserver.com. /Jason -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 9:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.