Re: WebLogic To Orion
There are many reasons to move to Orion from Weblogic: - Free developer license: You can have several developers in a project have their own installation of the server to do testing before committing their changes. - The price difference: With Orion you get a lot more functionality for the dollar. - The user community My experience is that answers on Orion-Interest are very often more to the point than the answers you would read on the different Weblogic newsgroups. This might have changed since I last was using weblogic about a year ago. There are probably good reasons going the other way as well depending on the specific requirements. Please list your reasons as this could enlighten the discussion. Your comment makes it look like this was an obvious decision and that would really surprise me. What other servers did you evaluate? I was part of a move from Weblogic 5.1 to Orion about 9 months ago. I think that we actually got in just after 1.3.8. That decision was based mainly on financial reasons since I was working at a startup having trouble to raise the amount of money needed to deploy clustered solutions using the more expensive alternatives. At that time our biggest problem were bugs in JMS and MDBs but those problems have gone away now as far as I know. Anyway I would really recommend anyone using older versions to move to 1.5.2 muthukumarasamy rajamanickam wrote: Why are you going to Orion from Weblogic? We are movin gto Weblogic from Orion hemmm Diffferent world? --- [EMAIL PROTECTED] wrote: Do you have a server certificate for or Orion server? Jonathan Bricker Lilly Research Labs Java ATG Greg Flores [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/11/01 09:18 AM Please respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: Subject:WebLogic To Orion We have migrated a current production application from Weblogic to Orion in an test to come up with an alternative platform and have come across some issues. Most of the issues we have been able to resolve except for one involving ssl and I.E. When we bring our application up in I.E. and https Orion invalidates the session within a minute. Our application security relies on certain objects within the session for enforcement which results in the user being kicked out of the application. We are evaluating V1.3.8., has this issue been resolved, is there a resolution or workaround? Thanks Greg Flores = Regards Muthu Rajamanickam e-mail:[EMAIL PROTECTED] Phone:832-567-7859 __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Re: WebLogic To Orion
Gartner say in August that people have been over-spending on Java application servers, purchasing features that they don't need. Many site (TheStreet.com) are migrating from high-end appserver (WLS, Websphere, Dynamo, etc) to (Orion, Resin, Rexip, JRun, etc.)... - Niles - Original Message - From: muthukumarasamy rajamanickam [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, October 12, 2001 9:55 AM Subject: Re: WebLogic To Orion Why are you going to Orion from Weblogic? We are movin gto Weblogic from Orion hemmm Diffferent world? --- [EMAIL PROTECTED] wrote: Do you have a server certificate for or Orion server? Jonathan Bricker Lilly Research Labs Java ATG Greg Flores [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/11/01 09:18 AM Please respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: Subject:WebLogic To Orion We have migrated a current production application from Weblogic to Orion in an test to come up with an alternative platform and have come across some issues. Most of the issues we have been able to resolve except for one involving ssl and I.E. When we bring our application up in I.E. and https Orion invalidates the session within a minute. Our application security relies on certain objects within the session for enforcement which results in the user being kicked out of the application. We are evaluating V1.3.8., has this issue been resolved, is there a resolution or workaround? Thanks Greg Flores = Regards Muthu Rajamanickam e-mail:[EMAIL PROTECTED] Phone:832-567-7859 __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Cached Row Set
Is anyone using Cached Row Set with Data Sources. I tried with ASA (Sybase) JDBC 5.5 and it does not work. Vic
RE: Syntax of distributable/ tag?
distributable / should be placed after the display name. What errors are you getting? All session context variables need to be serielizable is this the error you are getting? I've read on this list of folks configuring a commercial clustered architecture of 2 instances of Orion on a box (island) and 2 boxes. I'm headed the same direction. Is there an example of the DD's to do this on one of the orion / support sites? This would be very helpful and of little effort for someone to contribute their DD's zipped for folks to reverse engineer? Thanks to a great support list, curt
EntityBean Question
Title: EntityBean Question For all of you using entity beans I was wondering do u map the entity bean to 1 table. Or do u map it more to a view of a few tables??? I was just thinking it could be helpful to do that in many instances ... but i was just wondering if that is looked reallly frowned down upon or anything (i am the only ejb developer here so i have no one else to ask :) ) -Joseph Joseph Faisal Nusairat, Sr. Project Manager WorldCom tel: 614-723-4232 pager: 888-452-0399 textmsg: [EMAIL PROTECTED]
Re: problem using primary key class with orion
Jack, If you're using a user-defined primary key class, as opposed to a Java class like String or Integer, then you don't define the primkey-field in the ejb-jar.xml. From p.370 of O'reilly's Enterprise JavaBeans, 2nd Edition, describing the primkey-field entry in the ejb-jar.xml: It is not used if the bean has a custom primary key or if the entity bean manages its own persistence. Jeff. On Thu, 11 Oct 2001 16:31:58 -0500 (CDT) Jack C. Miller [EMAIL PROTECTED] wrote: I am having some difficulty getting orion to use my primary key class during deployment. I have an EJB AnyPerson with which I use a primary key class AnyPersonKey that has a public java.lang.String primaryKey field. During deployment, I get a compilation error that looks like the CMP isn't being generated properly. The orion-ejb-jar.xml file looks fine, as does the ejb-jar file. I get this error on deploy: Auto-deploying kwu-ejb.jar (Classes were updated)... Error compiling C:\orion\applications\kwu-phase-2\kwu-ejb.jar: Incompatible type for prim-key-class and type of the specified primkey-field: Cannot convert from class com.kw.kwu.model.AnyPerson.AnyPersonKey to class java.lang.String It doesn't seem to recognize that I'm using a primary key class at all, even though it is mapped in the orion-ejb-jar.xml file. Has anyone got a working example of this? I'm tired of tweaking the orion-ejb-jar to try and get it working. Here's a snippet from my orion-ejb-jar.xml: enterprise-beans entity-deployment name=AnyPerson location=AnyPerson wrapper=AnyPersonHome_EntityHomeWrapper45 max-tx-retries=3 table=AnyPerson data-source=jdbc/SQLServerDSCore primkey-mapping cmp-field-mapping fields cmp-field-mapping name=primaryKey persistence-name=primaryKey / /fields /cmp-field-mapping /primkey-mapping cmp-field-mapping name=FirstName persistence-name=FirstName / cmp-field-mapping name=LastName persistence-name=LastName / cmp-field-mapping name=Salutation persistence-name=Salutation / cmp-field-mapping name=Username persistence-name=Username / cmp-field-mapping name=Password persistence-name=Password / cmp-field-mapping name=Address1 persistence-name=Address1 / cmp-field-mapping name=Address2 persistence-name=Address2 / cmp-field-mapping name=City persistence-name=City / cmp-field-mapping name=StateProvId persistence-name=StateProvId / cmp-field-mapping name=PostalCd persistence-name=PostalCd / cmp-field-mapping name=Country persistence-name=Country / cmp-field-mapping name=HomePhone persistence-name=HomePhone / cmp-field-mapping name=Fax persistence-name=Fax / cmp-field-mapping name=Email persistence-name=Email / cmp-field-mapping name=LastModTime persistence-name=LastModTime / cmp-field-mapping name=ModifiedBy persistence-name=ModifiedBy / and the matching ejb-jar.xml file: ejb-jar descriptionGenerated deployment descriptors/description enterprise-beans entity ejb-nameAnyPerson/ejb-name homecom.kw.kwu.model.AnyPerson.AnyPersonHome/home remotecom.kw.kwu.model.AnyPerson.AnyPerson/remote ejb-classcom.kw.kwu.model.AnyPerson.AnyPersonBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.kw.kwu.model.AnyPerson.AnyPersonKey/prim-key-class reentrantfalse/reentrant cmp-fieldfield-nameprimaryKey/field-name cmp-fieldfield-nameFirstName/field-name/cmp-field cmp-fieldfield-nameLastName/field-name/cmp-field cmp-fieldfield-nameSalutation/field-name/cmp-field cmp-fieldfield-nameUsername/field-name/cmp-field cmp-fieldfield-namePassword/field-name/cmp-field cmp-fieldfield-nameAddress1/field-name/cmp-field cmp-fieldfield-nameAddress2/field-name/cmp-field cmp-fieldfield-nameCity/field-name/cmp-field cmp-fieldfield-nameStateProvId/field-name/cmp-field cmp-fieldfield-namePostalCd/field-name/cmp-field cmp-fieldfield-nameCountry/field-name/cmp-field cmp-fieldfield-nameHomePhone/field-name/cmp-field cmp-fieldfield-nameFax/field-name/cmp-field cmp-fieldfield-nameEmail/field-name/cmp-field cmp-fieldfield-nameLastModTime/field-name/cmp-field cmp-fieldfield-nameModifiedBy/field-name/cmp-field primkey-fieldprimaryKey/primkey-field /entity Thanks! Jack Miller
JSP Compilation Questions and More.
Hallo all! Recently I've been playing around with JSP compilation in Orion. I saw a couple of days ago a question about the out-of-the-server (stand-alone) compilation of JSPs. Quite some job :( I tried to find the compilator. Playing around I got some things. I don't really remember what was the JSP that helped me, but I guess it is either com.evermind._rj (and it's method _bb() ) or com.evermind._ah. Also the com.evermind.JspPage has a _bb() method, but it doesn't help a lot. Question 1: Is there a way to pre-compile the JSPs? I also saw that adding a parameter jsp_precompile=true to the request parameters will only try to compile the jsp. That however is not what I was thinking about. Question(BUG) 2: I noticed the following: It depends how the JSPs are compiled. If the Web-App is development=true it is compiled in one way with matching the JSP lines, and if development=false the lines are often mapped wrongly. Exa.: ALABALA.JSP: 1. html 2. head 3. titleTest for test/title 4. /head 5. body 6. form method=GET 7. input name=TEST_BEAN type=text size=20 value=Testbr 8. input type=submit%= new String((String)null)% 9. /form 10./body Obviously there is a NullPointerException on line 8 (7 if counted from 0). development = true: 500 Internal Server Error java.lang.NullPointerException at java.lang.String.init(String.java:193) at /Alabala.jsp._jspService(/Alabala.jsp.java:24) (JSP page line 7) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) .. development = false: 500 Internal Server Error java.lang.NullPointerException at java.lang.String.init(String.java:193) at /Alabala.jsp._jspService(/Alabala.jsp.java:27) (JSP page line 2) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) .. Obviously both cases differ. Why? Lachezar.
Re: Cached Row Set (On Vacation)
I will be on vacation from 10/15/2001 returning on 10/22/2001. If you have any question call Steve Huang at 727-572-7723 Ext 2210.
RE: WebLogic To Orion
Not all web applications are created equal and the application we are considering to deploy using Orion does not justify the cost of Weblogic. We are a small organization and I would be irresponsible in trying to convince my management in purchasing a Weblogic license for an application that does not require all the functionality the tool offers. Greg Flores -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik Lindgren Sent: Friday, October 12, 2001 1:10 AM To: Orion-Interest Subject: Re: WebLogic To Orion There are many reasons to move to Orion from Weblogic: - Free developer license: You can have several developers in a project have their own installation of the server to do testing before committing their changes. - The price difference: With Orion you get a lot more functionality for the dollar. - The user community My experience is that answers on Orion-Interest are very often more to the point than the answers you would read on the different Weblogic newsgroups. This might have changed since I last was using weblogic about a year ago. There are probably good reasons going the other way as well depending on the specific requirements. Please list your reasons as this could enlighten the discussion. Your comment makes it look like this was an obvious decision and that would really surprise me. What other servers did you evaluate? I was part of a move from Weblogic 5.1 to Orion about 9 months ago. I think that we actually got in just after 1.3.8. That decision was based mainly on financial reasons since I was working at a startup having trouble to raise the amount of money needed to deploy clustered solutions using the more expensive alternatives. At that time our biggest problem were bugs in JMS and MDBs but those problems have gone away now as far as I know. Anyway I would really recommend anyone using older versions to move to 1.5.2 muthukumarasamy rajamanickam wrote: Why are you going to Orion from Weblogic? We are movin gto Weblogic from Orion hemmm Diffferent world? --- [EMAIL PROTECTED] wrote: Do you have a server certificate for or Orion server? Jonathan Bricker Lilly Research Labs Java ATG Greg Flores [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/11/01 09:18 AM Please respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: Subject:WebLogic To Orion We have migrated a current production application from Weblogic to Orion in an test to come up with an alternative platform and have come across some issues. Most of the issues we have been able to resolve except for one involving ssl and I.E. When we bring our application up in I.E. and https Orion invalidates the session within a minute. Our application security relies on certain objects within the session for enforcement which results in the user being kicked out of the application. We are evaluating V1.3.8., has this issue been resolved, is there a resolution or workaround? Thanks Greg Flores = Regards Muthu Rajamanickam e-mail:[EMAIL PROTECTED] Phone:832-567-7859 __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Take me off your list
Far too many emails to worry about Thank You Tom Dalton Abacus Technology Corp 2701 Liberty PKY, Suite 302 Midwest City, OK 73110 [EMAIL PROTECTED] Voice: 405-733-2297 Fax: 405-737-4574
RE: EntityBean Question
Title: EntityBean Question I thought that for a while, but in many instances, you don't have to do that. You could end up in trouble trying to maintain updatable views. Part of the reason we were thinking this is because we wanted to create entity beans on top of an existing complex database schema. In many instances, you don't need to map all the stuff in the database to beans, and more often than not, the result of complex queries are really the objects in the system. You can create finders on some existing EBs that return the results of those views you wanted to create as new EBs. J.D -Original Message-From: Nusairat, Joseph F. [mailto:[EMAIL PROTECTED]]Sent: Friday, October 12, 2001 9:49 AMTo: Orion-InterestSubject: EntityBean Question For all of you using entity beans I was wondering do u map the entity bean to 1 table. Or do u map it more to a view of a few tables??? I was just thinking it could be helpful to do that in many instances ... but i was just wondering if that is looked reallly frowned down upon or anything (i am the only ejb developer here so i have no one else to ask :) ) -Joseph Joseph Faisal Nusairat, Sr. Project Manager WorldCom tel: 614-723-4232 pager: 888-452-0399 textmsg: [EMAIL PROTECTED]
Re: problem using primary key class with orion
I'm using EJBMaker 2.0, and it inserts the primkey-field in there. I figured this out this morning, everything seems to be working smoothly now. Thanks Jack Jack, If you're using a user-defined primary key class, as opposed to a Java class like String or Integer, then you don't define the primkey-field in the ejb-jar.xml. From p.370 of O'reilly's Enterprise JavaBeans, 2nd Edition, describing the primkey-field entry in the ejb-jar.xml: It is not used if the bean has a custom primary key or if the entity bean manages its own persistence. Jeff. On Thu, 11 Oct 2001 16:31:58 -0500 (CDT) Jack C. Miller [EMAIL PROTECTED] wrote: I am having some difficulty getting orion to use my primary key class during deployment. I have an EJB AnyPerson with which I use a primary key class AnyPersonKey that has a public java.lang.String primaryKey field. During deployment, I get a compilation error that looks like the CMP isn't being generated properly. The orion-ejb-jar.xml file looks fine, as does the ejb-jar file. I get this error on deploy: Auto-deploying kwu-ejb.jar (Classes were updated)... Error compiling C:\orion\applications\kwu-phase-2\kwu-ejb.jar: Incompatible type for prim-key-class and type of the specified primkey-field: Cannot convert from class com.kw.kwu.model.AnyPerson.AnyPersonKey to class java.lang.String It doesn't seem to recognize that I'm using a primary key class at all, even though it is mapped in the orion-ejb-jar.xml file. Has anyone got a working example of this? I'm tired of tweaking the orion-ejb-jar to try and get it working. Here's a snippet from my orion-ejb-jar.xml: enterprise-beans entity-deployment name=AnyPerson location=AnyPerson wrapper=AnyPersonHome_EntityHomeWrapper45 max-tx-retries=3 table=AnyPerson data-source=jdbc/SQLServerDSCore primkey-mapping cmp-field-mapping fields cmp-field-mapping name=primaryKey persistence-name=primaryKey / /fields /cmp-field-mapping /primkey-mapping cmp-field-mapping name=FirstName persistence-name=FirstName / cmp-field-mapping name=LastName persistence-name=LastName / cmp-field-mapping name=Salutation persistence-name=Salutation / cmp-field-mapping name=Username persistence-name=Username / cmp-field-mapping name=Password persistence-name=Password / cmp-field-mapping name=Address1 persistence-name=Address1 / cmp-field-mapping name=Address2 persistence-name=Address2 / cmp-field-mapping name=City persistence-name=City / cmp-field-mapping name=StateProvId persistence-name=StateProvId / cmp-field-mapping name=PostalCd persistence-name=PostalCd / cmp-field-mapping name=Country persistence-name=Country / cmp-field-mapping name=HomePhone persistence-name=HomePhone / cmp-field-mapping name=Fax persistence-name=Fax / cmp-field-mapping name=Email persistence-name=Email / cmp-field-mapping name=LastModTime persistence-name=LastModTime / cmp-field-mapping name=ModifiedBy persistence-name=ModifiedBy / and the matching ejb-jar.xml file: ejb-jar descriptionGenerated deployment descriptors/description enterprise-beans entity ejb-nameAnyPerson/ejb-name homecom.kw.kwu.model.AnyPerson.AnyPersonHome/home remotecom.kw.kwu.model.AnyPerson.AnyPerson/remote ejb-classcom.kw.kwu.model.AnyPerson.AnyPersonBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.kw.kwu.model.AnyPerson.AnyPersonKey/prim-key-class reentrantfalse/reentrant cmp-fieldfield-nameprimaryKey/field-name cmp-fieldfield-nameFirstName/field-name/cmp-field cmp-fieldfield-nameLastName/field-name/cmp-field cmp-fieldfield-nameSalutation/field-name/cmp-field cmp-fieldfield-nameUsername/field-name/cmp-field cmp-fieldfield-namePassword/field-name/cmp-field cmp-fieldfield-nameAddress1/field-name/cmp-field cmp-fieldfield-nameAddress2/field-name/cmp-field cmp-fieldfield-nameCity/field-name/cmp-field cmp-fieldfield-nameStateProvId/field-name/cmp-field cmp-fieldfield-namePostalCd/field-name/cmp-field cmp-fieldfield-nameCountry/field-name/cmp-field cmp-fieldfield-nameHomePhone/field-name/cmp-field cmp-fieldfield-nameFax/field-name/cmp-field cmp-fieldfield-nameEmail/field-name/cmp-field
just making sure it's not orion
I have some jdbc code in a servlet: The Isolation Level for my Connection is TRANSACTION_READ_COMMITTED // set no autocommit try { conn.setAutoCommit (false); } catch (Exception e) { out.println (setAC no workie); } // it claims no auto when I run it :) if (conn.getAutoCommit()) { out.println (crap it's autocommiting); } else { out.println (it's claiming no auto ); } // update a row in the table (all rows, but in this case there's only 1 PreparedStatement ps = conn.prepareStatement (update lim set cap = cap + 10 ); // execute int n = ps.executeUpdate (); // rollback conn.rollback(); Too bad the cap column increments by 10 anyways... did I miss anything? Well if it's not orion and I messed up my java code just let me know. Much thanks. Jeff
RE: Orion on Linux, Follow-up Question
I've been to orionsupport, and actually their ipchains information is outdated. I used this to reroute packets from port 80 to 10080: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 10080 I am pretty sure this is working, because I am having Orion listen on port 10080, but I am not specifying that port in the browser--and it is working from the linux machine, and also another machine on my network. Some more information: I am on DSL right now, with a router configured so that my linux box is a DMZ. From another machine in my network, I can put in the outside IP address and Orion works. From anywhere else (outside my network) I cannot connect, although curiously enough, I can get 404 and 400 errors--it will not load pages, however. I wonder if this is a problem with my iptables? I know basically nothing about iptables, but I see that in my filter table the following rules are there: Chain INPUT (policy ACCEPT) target - prot --- opt --- source - destination DROP all ... -- [my outside ip] .. 0.0.0.0/0 There are actually a couple lines, with some of my recent IP addresses (they are dynamic). I have no idea what this means, but I wonder if iptables is only providing my local IPs with access. possibly? I'm really at a loss here, as I don't know linux very well. Any insight would be appreciated. From: Montebove Luciano [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: Orion on Linux, Follow-up Question Date: Thu, 11 Oct 2001 16:41:43 +0200 Hi Jimbo, You can find some responses here http://www.orionsupport.com/articles/unixprocess.html Luciano -Original Message- From: Jimbo Jones [mailto:[EMAIL PROTECTED]] Sent: giovedì 11 ottobre 2001 15.34 To: Orion-Interest Subject: Orion on Linux, Follow-up Question My previous problem, starting Orion on linux, was due to the fact that I was calling upon the wrong JVM (even though I thought I had my path set correctly). That is resolved. Now I have another problem that seems more linux-related than Orion-related, but perhaps some of you know the solution. I have Orion running on linux, and from that machine I can access Orion-served pages. But I cannot do so from outside that machine. What's more, I am unable to run it on a user account. For now, I'm running under root. But like I said, I cannot connect to it from another machine. Upon doing some investigating, I have discoverd that when I try to connect from another machine, Orion is sending the HTTP headers only and then freezes without sending anything else. The page never loads, it just hangs indefinitely. I strongly suspect this has something to do with linux and not Orion. I cannot run Orion on a user account because it tells me I don't have permission to run an HTTP server. I don't get that message as root, but I wonder if there is some linux mechanism at work blocking my attempts to transmit data via HTTP. Your help in resolving this issue is greatly appreciated. -James _ 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
Auto Class Reloading
i have read, and re-read, all of the postings on class (re)loading in relation to deployed applications inside orion. yet, i still have some unanswered questions. in my past experience, compiling classes to the ./WEB-INF/classes directory and touching either the web.xml or application.xml file will cause the new classes to be picked up and used. all objects that are in session are serialized and available after the application is re-deployed without having to re-start orion. however, i am now experiencing a situation wherein i'm losing my session information and being forced to re-login to my application to continue development. is there a set of criteria or implemenation details i'm missing. all objects are obviously serializable or they would not be able to be stored in a session. yet, my latest encounters with class reloading makes me doubt this assertion. any ideas/paths i can explore to making my development life less hell-like? thanks, ted rice
Orion + IBM DB2 JDBC Bug?
Hi guys, I found this really cool bug dealing with Orion Server 1.5.2 and IBM DB2's JDBC implementation. I don't know if it's a) me (likely) b) orion (perhaps) c) ibm's jdbc implementation (wouldn't doubt it) I BCC'ed a IBM dude, so for his info, orion server is found at www.orionserver.com but here it goes... Remember that transaction problem I had? Well I solved it. I'm going to include some messy source code because I want to make sure the problem has the best chance of being replicated... but of course there might be differing opinions. ;) The bug is this. I set autocommit to false... but then I update this table: create table lim (cap int); insert into lim values (600); Then I run this program which increments the value of cap by 10, then rolls it back. If I include the statement: DatabaseMetaData dbmd = conn.getMetaData(); ** and/or the statement ** out.println (isolation: + conn.getTransactionIsolation()); In my code... it seems to turn autocommit back on. If I throw that statement back into the comment section, things work fine again. Neat isn't it? Now can any one tell me where the problem might lie? I mean it's cool if you can't... but it should be noted for future reference should you run into the same problem as I have. Alright then, enjoy the code... Jeff Here goes... import java.util.Map; import java.util.Hashtable; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.naming.InitialContext; import javax.rmi.PortableRemoteObject; import java.sql.*; import javax.sql.DataSource; public class XTest extends HttpServlet { public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { log (Start XTest); PrintWriter out = res.getWriter(); out.println (XTest start); out.println (here we go...); Connection conn = null; try { InitialContext ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup (jdbc/THEDS); conn = ds.getConnection(); /* DatabaseMetaData dbmd = conn.getMetaData(); out.println (isolation: + conn.getTransactionIsolatio n()); out.println (tx_none: + Connection.TRANSACTION_NONE); if (dbmd.supportsTransactionIsolationLevel(Connection.TR ANSACTION_NONE)) out.println (Supports TX_none); else out.println (NO suuport for TX_NONE); out.println (tx_rd_com: + Connection.TRANSACTION_READ _COMMITTED); if (dbmd.supportsTransactionIsolationLevel(Connection.TR ANSACTION_READ_COMMITTED)) out.println (Supports TX_rd_com); out.println (tx_rd_uncom: + Connection.TRANSACTION_RE AD_UNCOMMITTED); if (dbmd.supportsTransactionIsolationLevel(Connection.TR ANSACTION_READ_UNCOMMITTED)) out.println (Supports TX_rd_uncom); out.println (tx_rpt_rd: + Connection.TRANSACTION_REPE ATABLE_READ); if (dbmd.supportsTransactionIsolationLevel(Connection.TR ANSACTION_REPEATABLE_READ)) out.println (Supports TX_rpt_rd); out.println (tx_ser: + Connection.TRANSACTION_SERIALI ZABLE); if (dbmd.supportsTransactionIsolationLevel(Connection.TR ANSACTION_SERIALIZABLE)) out.println (Supports TX_ser); */ try { conn.setAutoCommit (false); } catch (Exception e) { out.println (setAC no workie); } if (conn.getAutoCommit()) { out.println (crap it's autocommiting); } else { out.println (it's claiming no auto ); } PreparedStatement ps = conn.prepareStatement (update lim set cap = cap + 10 ); int n = ps.executeUpdate (); conn.rollback(); out.println (yeah ok + n + changes); /* int done = 0; ps = conn.prepareStatement (select * from flag); //ps.setQueryTimeout (60); while (done == 0) { ResultSet rs = ps.executeQuery(); while (rs.next()) {
Clustering with Hw Load Balaner
Hi all. Is it possible to cluster orion (2 servers with one instance each) without using loadbalancer.jar? I have a hardware loadbalaner which handles the traffic. I thought the primary reason for clustering was to be able to provide continuos support if a server goes down. If loadbalancer.jar is required, isn't the server running loadbalancer.jar a potential failure point? I like orion and so far it seems very stable. Is loadbalancer.jar just as stable? Can it handle traffic in the neighborhood of 1000 concurrent users? This is my first post and I hope the questions are helpful to everyone else as well. Any replies are greatly appreciated.
Re: JSP Compilation Questions and More.
Try Resin (www.caucho.com) or Rexip (www.rexip.com), they have great auto compliation and reloading. EJB container has been released though. - Niles - Original Message - From: Lachezar Dobrev [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, October 12, 2001 11:50 PM Subject: JSP Compilation Questions and More. Hallo all! Recently I've been playing around with JSP compilation in Orion. I saw a couple of days ago a question about the out-of-the-server (stand-alone) compilation of JSPs. Quite some job :( I tried to find the compilator. Playing around I got some things. I don't really remember what was the JSP that helped me, but I guess it is either com.evermind._rj (and it's method _bb() ) or com.evermind._ah. Also the com.evermind.JspPage has a _bb() method, but it doesn't help a lot. Question 1: Is there a way to pre-compile the JSPs? I also saw that adding a parameter jsp_precompile=true to the request parameters will only try to compile the jsp. That however is not what I was thinking about. Question(BUG) 2: I noticed the following: It depends how the JSPs are compiled. If the Web-App is development=true it is compiled in one way with matching the JSP lines, and if development=false the lines are often mapped wrongly. Exa.: ALABALA.JSP: 1. html 2. head 3. titleTest for test/title 4. /head 5. body 6. form method=GET 7. input name=TEST_BEAN type=text size=20 value=Testbr 8. input type=submit%= new String((String)null)% 9. /form 10./body Obviously there is a NullPointerException on line 8 (7 if counted from 0). development = true: 500 Internal Server Error java.lang.NullPointerException at java.lang.String.init(String.java:193) at /Alabala.jsp._jspService(/Alabala.jsp.java:24) (JSP page line 7) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) .. development = false: 500 Internal Server Error java.lang.NullPointerException at java.lang.String.init(String.java:193) at /Alabala.jsp._jspService(/Alabala.jsp.java:27) (JSP page line 2) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) .. Obviously both cases differ. Why? Lachezar.
Re: Clustering with Hw Load Balaner
So does it mean we need any other layer of load-balancing failover, like at the Web Server farm? - NH - Original Message - From: Patel, Atul [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, October 13, 2001 9:39 AM Subject: Clustering with Hw Load Balaner Hi all. Is it possible to cluster orion (2 servers with one instance each) without using loadbalancer.jar? I have a hardware loadbalaner which handles the traffic. I thought the primary reason for clustering was to be able to provide continuos support if a server goes down. If loadbalancer.jar is required, isn't the server running loadbalancer.jar a potential failure point? I like orion and so far it seems very stable. Is loadbalancer.jar just as stable? Can it handle traffic in the neighborhood of 1000 concurrent users? This is my first post and I hope the questions are helpful to everyone else as well. Any replies are greatly appreciated.
Please take me off this list
I tried many many times by following the unsubscribe instruction but I am still on the list. Please remove me from the list asap. Thank you. Jeffrey __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com