Re: onMessage()
At 11:53 05.12.00 , you wrote: Hi! I'm testing Orion 1.4 JMS coffeemaker demo. The demo runs fine. I modified it to use onMessage() instead of pooling using QueueReceiver.receive() method. This however, renders this demo useless. onMessage() is not triggered. It is my logic fault or Orion doesn't support onMessage() trigger? Please refer to file provided. check the archive for problems with JMS. there were many reports indicating that the JMS implementation still has a number of rough spots. If the problem you're having is not described there, please take the time and file your report including your test code in bugzilla (first check if it's already been reported) so evermind can look at it and fix it. thanks, robert thank you. /lim/ (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: How to use EJBUserManager?
IIRC, you shouldn't extend EJBUserHome, just specify all method signatures (with findByPrimaryKey returning Account) in your AccountHome interface. Regards, Markus. On Mon, Dec 04, 2000 at 07:15:46PM +0100, Alexander Sparkowsky wrote: Hi, I want to use the EJBUserManager to lookup the accounts and created an extended version of the EJBUser because I need more infos for the account to hold. I created Account which extends the EJBUser and an AccountHome which extends EJBUserHome so I'm not able to overwrite the findByPrimaryKey Method to return Account insteat of EJBUserHome. When starting the orion it gives me an error that findByPrimaryKey() should return Account insteat of EJBUserHome. Can anybody help? Alexander Sparkowsky LambdaLogic Informationssysteme GmbH, Berlin, Germany Tel: +49-30-2936385-0, Fax: +49-30-2936385-0 E-Mail: [EMAIL PROTECTED] -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
Few Important Questions
Just got few imporant questions for you folks : 1. On which OS/Harware Orion runs best ? Sparc/Solaris , Intel/Solaris, Intel/Linux, Intel/Windows ? I know apps made with Java run anywhere but they certainly don't perform equally well 'every where'. 2. Is the Orion version obtained with license any different from the one available for dowload on their site ? I mean to say is there an limitation like only 2 concurrent users can access it on a non-licensed version ? Thanks. Faisal Khan. www.stardeveloper.com
Re: application client and EJB: TX was null
Dario Dorigo wrote: Hi, I'm testing Orion 1.3.8 with another EJB based application developed with weblogic. After a bit of pain I was able to connect to the ejb and to call the ejbs. But when I try to get the data from the ejb I've found what was the problem: in the ejb-jar.xml of the ejb there were: container-transaction method ejb-nameModuleManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor And that seems that is not accepted from an external client. bye (the method signature is: public String [] getListOfModules(); ) I got this error: java.lang.InternalError: TX was null at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) at com.evermind.server.ApplicationServerTransaction.aob(JAX) at com.evermind.server.ApplicationServerTransaction.commit(JAX) at com.evermind.server.ApplicationServerTransaction.end(JAX) at ModuleManager_StatefulSessionBeanWrapper4.getListOfModules(ModuleManager_StatefulSessionBeanWrapper4.java:1062) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bd.run(JAX) at com.evermind.server.rmi.bb.hy(JAX) at com.evermind.server.rmi.bb.run(JAX) at com.evermind.util.f.run(JAX) at connection to pii/192.168.10.55 at com.evermind.server.rmi.OrionRemoteException.h2(JAX) at com.evermind.server.rmi.bb.hw(JAX) at com.evermind.server.rmi.bb.run(JAX) at java.lang.Thread.run(Thread.java:484) On the server side the ejb is a session bean that get (succesfully) the data from another entity bean. (I printed out the array just before the return) Has anybody an idea of what is happening? Thanks a lot Dario -- Dario Dorigo Software Developer [EMAIL PROTECTED] __ Itrade AG Net Market Systems Nymphenburger Str. 86 D - 80636 Muenchen Tel: +49/(0)89/18951-0, Fax: -199 Email: [EMAIL PROTECTED] http://www.itrade.ag _ -- Dario Dorigo Software Developer [EMAIL PROTECTED] __ Itrade AG Net Market Systems Nymphenburger Str. 86 D - 80636 Muenchen Tel: +49/(0)89/18951-0, Fax: -199 Email: [EMAIL PROTECTED] http://www.itrade.ag _
RE: How to set Session-Time out
Servlet sessions (and JSP sessions, too, since they're the same thing) have a timeout period controlled by a node in web.xml, in the following format: session-config session-timeout60/session-timeout /session-config This represents the number of minutes since the session was last used, so each page that affects or accesses the session will reset this timer. Note that some J2EE containers use wildly different definitions for this behavior. Thanks and regards Kishre Babu Tanety -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Santosh Kumar Sent: Tuesday, December 05, 2000 11:35 AM To: Orion-Interest Subject: How to set Session-Time out globally for orion and not just for individual web components? Regards, Santosh. Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products.
R: Few Important Questions
Just got few imporant questions for you folks : . 2. Is the Orion version obtained with license any different from the one available for dowload on their site ? I mean to say is there an limitation like only 2 concurrent users can access it on a non-licensed version ? No, it's the full version. Thanks. Faisal Khan. www.stardeveloper.com ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø Luciano Montebove - Software Architect - Finsiel S.p.a E-mail: [EMAIL PROTECTED] Phone: (+39) 06-4142-7663 "If you don't fail now and again, it's a sign you're playing it safe" -W. Allen ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
SV: Few Important Questions
The licence dont matter on features, only legality when deploying in a prod environment when you are running a commercial site... Klaus Myrseth -Opprinnelig melding- Fra: Espen Kolstad [mailto:[EMAIL PROTECTED]] Sendt: 5. desember 2000 11:56 Til: Orion-Interest Emne: RE: Few Important Questions 1. On which OS/Harware Orion runs best ? Sparc/Solaris , Intel/Solaris, Intel/Linux, Intel/Windows ? I know apps made with Java run anywhere but they certainly don't perform equally well 'every where'. None of the above, but Alpha/Tru64 and Alpha/Linux 2. Is the Orion version obtained with license any different from the one available for dowload on their site ? I mean to say is there an limitation like only 2 concurrent users can access it on a non-licensed version ? Sorry don't know Thanks. Faisal Khan. www.stardeveloper.com Espen
RE: cache-control problem
I see these couple lines in the Orion Primer. // Make sure this page will not be cached by the browser response.addHeader("Pragma", "no-cache"); response.addHeader("Cache-Control", "no-store"); I'm not sure if this is what you want. Thanks, Joe Knudsen -Original Message- From: Christian Fernandes [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 4:25 AM To: Orion-Interest Subject: cache-control problem Hi! Does anyone know how to configure orionserver's HTTP-response for cache-control. I would like to change it from the default value "private" to "no-cache" and "expire date" to 0, so that the pages are not cached on a proxy. thanks... Christian
Re: Traversing JNDI namespace
hi tony can u tell me where is the transaction-isolation comes into ejb-jar.xml - Original Message - From: Luong, Tony S322 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 6:50 PM Subject: RE: Traversing JNDI namespace java:comp/env entries are defined by the developer for each bean in ejb-jar.xml under the env-entry tag. -Original Message- From: Gary Shea [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 8:58 PM To: Orion-Interest Subject: Re: Traversing JNDI namespace On Today, Nick Newman ([EMAIL PROTECTED]) wrote: Hi, How can I find what's in an entity bean's java:comp/env namespace? If I ask the InitialContext for a list of what is in it (using initialcontext.list("") ) I get a list of things (mainly home interfaces) plus entries for "java:comp" and "ejb" which are both Contexts. If I ask for what's in "java:comp" I get a few strange entries, but NOT one for "env", which is the one I would have expected. If I ask for what's in "java:comp/env" I get nothing back (empty context). Just wanted to report that I've had exactly the same experience, assumed I must be doing something wrong given my slight experience with JNDI. I sure hope someone knows the answer! Gary However, lookups for entries named java:comp/env/foo succeed where they should. Any ideas? Thanks, Nick -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
tx timeout
Hello, is it possible to change transaction timeout in orion? Regards, Savotchkin Egor SoftPro company web-site: http://www.cboss.ru tel: (+7-095) 755-5655 (3135) eMail: [EMAIL PROTECTED] Web-technologies department
Re: tx timeout
At 20:43 05.12.00 , you wrote: Hello, is it possible to change transaction timeout in orion? Regards, Savotchkin Egor application-server transaction-config timeout="6000" / if that's what you're looking for. just take a look at the dtds in the docs. It takes you no more than 2 hours to browse through them and once you're done you get a pretty good idea of what you can configure in orion as that is the authoritative resource (except for some undocumented features :-( ) HTH robert SoftPro company web-site: http://www.cboss.ru tel: (+7-095) 755-5655 (3135) eMail: [EMAIL PROTECTED] Web-technologies department (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Running beans on separate box from webserver
I'm trying to set Orion up to run my jsp pages on one box and my beans on another box. Where does the jndi.properties file go so that my default InitialContext correctly points to the other box? I'm deploying to a directory instead of a .war file. I've tried putting under my web-root directory, but that did not seem to work. Is there some special place to put it change the default InitialContext? Another question: The url in the jndi.properties files under the orion/demo directory all have "ormi://localhost/ejbsamples" Is ejbsamples the application name as defined in the server.xml file? Thanks, John
Orionserver.com down??
What's up with www.orionserver.com? It's been down all day. Scott Stirling West Newton, MA
RE: cache-control problem
The following works well for me response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate"); Basically it seems to use the cache for images/javascript etc (which is good) and re-requests a URL from the webserver when the user requests it again or hits the back/forward buttons -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Fernandes Sent: Tuesday, 5 December 2000 8:25 PM To: Orion-Interest Subject: cache-control problem Hi! Does anyone know how to configure orionserver's HTTP-response for cache-control. I would like to change it from the default value "private" to "no-cache" and "expire date" to 0, so that the pages are not cached on a proxy. thanks... Christian
RE: Orionserver.com down??
Scotty, Up for me. -mike PS I love it when vendors jump on each other's backs *grin* -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Stirling Sent: Wednesday, December 06, 2000 3:18 PM To: Orion-Interest Subject: Orionserver.com down?? What's up with www.orionserver.com? It's been down all day. Scott Stirling West Newton, MA
RE: FORM login with FRAMES
Title: RE: FORM login with FRAMES theo, The issue of getting the login page to appear in the top frame only is nothing to do with orion. I had the same problem. and the only way to get around it was to put the following javascript code in the login page itself. script language=javascript if (parent.frames[1]) parent.location.href = self.location.href; /script [This code is from page 170 of the Wrox book, Professional Javascript. I know very little javascript myself as I avoid it like the plague] You should put this in the head tag of any jsp that should only ever appear by itself. This would usually apply to the login page and the main FrameSet page itself (otherwise you get those zany concentric frames!) This works in IE5. I haven't checked it against anything else, but the point is that it is easier to put the code in the page being called than try and manage all the frame references in each and every other jsp that might call it, including servlets in an MVC implementation. Hope that helps, Grant Doran Principle Architect iLaunch inc. (02) 89257055 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: theo van niekerk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 05 December, 2000 1:45 AM To: Orion-Interest Subject: FORM login with FRAMES Hi there We would like to use FORM login/authentication with our web app that uses FRAMES and JavaScript extensively - example one frame will call a dynamically generated FRAMESET that loads different documents depending on the situation, while Onload events reloads contents of other frames. Out problem is when the session expires or for some other reason the webapp wants to re-authenticate the browsing user. So what happens.. a login page gets loaded into each and every frame window. We've tried redirects, forwards and some javascript. But it seems like orion likes to keep everything to only one frameless page. What can we do? Kind regards Theo van Niekerk
Content-Length errors thrown when attempting to forward to a page
Our development team has been occasionally seeing the following error (listed below) thrown from Orion. This happens when our application running under Orion throws an error and attempts to forward to our custom error JSP page. The error happens sporadically and cannot be recreated consistently, but tends to bring the server down (i.e. accepts no more connections/requests). Also, the browser never gets a response back from the server. This has also been reported by some other users in the orion-interest archives. Any ideas as to what could cause this problem? Root cause is; java.lang.IllegalArgumentException: Attempted to write longer than Content-Length (5316 + 3607 / 5316) at com.evermind.server.http.ez.write(JAX) at com.evermind.server.http.EvermindJSPWriter.r2(JAX) at com.evermind.server.http.EvermindJSPWriter.flush(JAX) at com.evermind.server.http.EvermindJSPWriter.close(JAX) at __jspPage12_JSP_include_error_std_jsp._jspService(__jspPage12_JSP_include_er ror_std_jsp.java:102) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.tta.checkpoint.servlet.CPBaseServlet.forward(CPBaseServlet.java:262) at com.tta.checkpoint.servlet.CPBaseServlet.forwardError(CPBaseServlet.java:232 ) at com.tta.checkpoint.servlet.CPBaseServlet.service(CPBaseServlet.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Thanks, Jaideep Roy
RE: Traversing JNDI namespace
transactions are managed by the container, and you can assign the support level for each method of a bean, in ejb-jar.xml assembly-descriptor container-transaction trans-attribute -Original Message- From: umesh sonavane [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 10:47 AM To: Orion-Interest Subject: Re: Traversing JNDI namespace hi tony can u tell me where is the transaction-isolation comes into ejb-jar.xml - Original Message - From: Luong, Tony S322 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 6:50 PM Subject: RE: Traversing JNDI namespace java:comp/env entries are defined by the developer for each bean in ejb-jar.xml under the env-entry tag. -Original Message- From: Gary Shea [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 8:58 PM To: Orion-Interest Subject: Re: Traversing JNDI namespace On Today, Nick Newman ([EMAIL PROTECTED]) wrote: Hi, How can I find what's in an entity bean's java:comp/env namespace? If I ask the InitialContext for a list of what is in it (using initialcontext.list("") ) I get a list of things (mainly home interfaces) plus entries for "java:comp" and "ejb" which are both Contexts. If I ask for what's in "java:comp" I get a few strange entries, but NOT one for "env", which is the one I would have expected. If I ask for what's in "java:comp/env" I get nothing back (empty context). Just wanted to report that I've had exactly the same experience, assumed I must be doing something wrong given my slight experience with JNDI. I sure hope someone knows the answer! Gary However, lookups for entries named java:comp/env/foo succeed where they should. Any ideas? Thanks, Nick -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
Re: Content-Length errors thrown when attempting to forward to a page
[Roy, Jaideep] Our development team has been occasionally seeing the following error (listed below) thrown from Orion. This happens when our application running under Orion throws an error and attempts to forward to our custom error JSP page. The error happens sporadically and cannot be recreated consistently, but tends to bring the server down (i.e. accepts no more connections/requests). Also, the browser never gets a response back from the server. This has also been reported by some other users in the orion-interest archives. warning: most likely irrelevant. My experience with tomcat has shown a similar situation with forwarding whenever the attempted forward occurs (in runtime) after the point where the jsp engine has hit the buffer size and had to flush out the http headers and the first buffer of content. Solutions were to do forwarding logic earlier (before most of the html), or make the buffer size bigger (%@ page buffer=64KB % or something similar) Any ideas as to what could cause this problem? Root cause is; java.lang.IllegalArgumentException: Attempted to write longer than Content-Length (5316 + 3607 / 5316) The issue is that once you hit the buffer, the headers have to get committed, and you can't do a Location: 302 (or whatever it is) for the redirection. What's more interesting is that it looks like the forward may have completed here (in some sense) but the content-length header had already been committed, and when you resulting page is longer, an exception is thrown. Wish I could be of more help... I'd love to hear what the answer is :) James -- James Manning [EMAIL PROTECTED] GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4
RE: Few Important Questions
1. On which OS/Harware Orion runs best ? Sparc/Solaris , Intel/Solaris, Intel/Linux, Intel/Windows ? I know apps made with Java run anywhere but they certainly don't perform equally well 'every where'. None of the above, but Alpha/Tru64 and Alpha/Linux 2. Is the Orion version obtained with license any different from the one available for dowload on their site ? I mean to say is there an limitation like only 2 concurrent users can access it on a non-licensed version ? Sorry don't know Thanks. Faisal Khan. www.stardeveloper.com Espen
RE: onMessage()
try use setMessageListener on the QueueSession instead of the QueueReceive. -Original Message- From: TH Lim [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 10:54 PM To: Orion-Interest Subject: onMessage() Hi! I'm testing Orion 1.4 JMS coffeemaker demo. The demo runs fine. I modified it to use onMessage() instead of pooling using QueueReceiver.receive() method. This however, renders this demo useless. onMessage() is not triggered. It is my logic fault or Orion doesn't support onMessage() trigger? Please refer to file provided. thank you. /lim/ File: CoffeeMaker.java -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
Re: Running beans on separate box from webserver
I'm trying to set Orion up to run my jsp pages on one box and my beans on another box. Where does the jndi.properties file go so that my default InitialContext correctly points to the other box? I'm deploying to a directory instead of a .war file. I've tried putting under my web-root directory, but that did not seem to work. Is there some special place to put it change the default InitialContext? In theory, you put the file in WEB-INF/classes. However, this does not work for my servlets, so I do not know if it will work for JSP's, which are also servlets. It is not clear to me if this is a bug in Orion. However it makes sense to me that the JNDI package is trying to locate the file with a ClassLoader that is "above" the servlet's ClassLoader (which correctly has WEB-INF/classes as a path), and thus is not seeing the file. Yet, I have tried to place the file on a classpath of parent ClassLoaders, but this did not seem to help. Another question: The url in the jndi.properties files under the orion/demo directory all have "ormi://localhost/ejbsamples" Is ejbsamples the application name as defined in the server.xml file? Yes. tim.