Re: What documentation?
Thanks Gary! It does help. Danut At 06:41 PM 2/26/2001 -0700, Gary Shea wrote: The same thing was bothering me, because having to modify orion's deployment descriptors was getting old. It turns out that you can make the orion web, ejb, and application deployment documents be part of your distribution. I create simplified versions that have just the stuff I care about in them, for instance: orion-application autocreate-tables="false" treat-zero-as-null="false" /orion-application By putting these into the appropriate places in your .ear or directory heirarchy, orion will find them and incorporate the information you specify in them into the final deployment descriptor that lives in the application-deployment directory. It's pretty slick. Hope that's useful. Gary _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: jsp form-based authentication
Go inside "orion.jar" and extract "EJBUser*.class" files then use reverse engeneering to get the java code and you will see exactly what you need to implement. Then go into "orion-application.xml" file and add user-manager class="com.acme.security.CustomUserManager" property name="blah" value="blah" / /user-manager You also have to pack into a jar all the files (the equivalent of EJBUser* files) needed to the security and copy it into the lib folder. Then go into web.xml and set the proper role names, login-config, the constrains, etc. I hope it helps. Danut At 08:02 AM 2/27/2001 -0500, Ernie Phelps wrote: Roland, Hope you are asking what I think you are. :) If this is about setting up your own user manager and calling it from role manager, keep reading. I am still trying to work out all the kinks on this for myself, but there is a message in the archives by Chris Miller, "Re: custom user management" on Oct 17, 2000 that really got me started on this. He explains what to implement and override, with notes on methods that require special attention. There are a few things missing, be careful to implement shells of all the methods instead of just the ones he lists as needing special attention, but otherwise it is very concise. HTH, - Ernie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roland Dong Sent: Tuesday, February 27, 2001 3:07 AM To: Orion-Interest Subject: RE: jsp form-based authentication Has anyone responded to this message? I am also interested in that... Roland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin Kissoyan Sent: Friday, February 23, 2001 10:46 AM To: Orion-Interest Subject: jsp form-based authentication I need a good example of looking up username/password in a database, how do you override the security so that it checks a database instead of checking the internal web.xml file and principals.xml? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: How can I use Application session?
I would add: * how can I retrieve the session ID while I am inside an EJB method so I can figure out on each server in the cluster what client is served? * how can I get rid of the session ID that appears in the URL? Thank you! Danut At 01:48 PM 2/20/2001 +0330, Hamid Abbasi wrote: Hi , I want to know , How many clients are connecting to my apllication at now. I want to know , How many sessions (not session bean) are active for my application. Thanks _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Can not find load-balancer.xml !!!
Yes you have to create it by yourself. Here is the one I currently use load-balancer host="MyHost" debug="true" selection-type="first" use-session-id="false" use-ip="false" island id="1" /load-balancer Danut At 05:51 PM 2/13/2001 +0530, Mohit Palhan wrote: Hi! there, I am trying my hands on load balancing in Orion ver 1.3.8 and cannot find the load-balancer,xml -config - path to the load-balancer.xml config file, the default is config/load- balancer.xml. Did anyone face this problem?Or do I have to write this file ? Thanks Mohit Have a nice day :-) -- * The information contained in this message (including any attachments) is confidential and may be legally privileged. If you are not the intended recipient, please delete it from your system immediately - any disclosure, copying or distribution thereof or any action taken or omitted to be taken in reliance thereon is prohibited and may be unlawful.AITPL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained herein or for the transmission, reception, storage or use of such information in any way whatsoever. Any opinions expressed in this message are those of the author and do not necessarily reflect the opinions of AITPL. * _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: Any news from Orion yet??
I just played a little bit with WebSphere and I have to agree with Konstantin: it does not work very well. I was expecting a better tool from IBM and I am really dissapointed. Danut At 01:56 PM 2/13/2001 +0100, Konstantin Polyzois wrote: "Weblogic (and the high priced products like Websphere) are great..." Speaking as someone who has done development using Websphere (3.0 3.02): It sucks! Don't use it for anything but JSP or servlets. It has so many flaws that I don't even want to get in to them!! /korre -Original Message- From: Kemp Randy-W18971 To: Orion-Interest Sent: 2001-02-12 13:58 Subject: RE: Any news from Orion yet?? Weblogic (and the high priced products like Websphere) are great, if you want to pay the price. They come with nice tools like front end gui's, good documentation, paid support, etc. But if you look for the opinions of developers who have used these products, and compared them to Orion, jboss, etc., they would say the EJB capacies are no better then the other high priced products. In order of ranking, here's how I look at the other products. 1 Orion -- This product is ready now, but I haven't seen anyone from this list run a Sears store on it. 2. Jboss (www.jboss.org) -- The founders are very bright, have five hundred developers on the projects, have EJB heavies contributing to the list, and it's a very easy to use product. Personally, even though it is ready for production now, I would wait for it to mature a bit more. It's like a fine wine -- drink it now, and it is OK, or allow it to age a bit then drink it (like jboss 3.0 final). 3. Openejb (www.openejb.org) - this project has a very bright and well known person heading it, and it is slated to be intergrated with Tomcat and Apache. It has yet to prove itself, as it is not yet ready for production release. But it has good future promise. 4. Jonas (www.evidian.com/jonas) - This is a good product, but it is not as advanced as the other two open source products and I don't think they have as many people behind them. 5. Enhydra enterprise (www.enhydra.org). If you like the enhydra application server, this product has potential. But it is not production ready yet and it intergrates with the jonas server. In summary, Orion is here now but can it run Sears? Jboss is ready but I would let it mature a bit more for production environments. Openejb and Enhydra have great potential, but they are not ready yet and have to prove themselves. Jonas is OK but I prefer the other open source alternatives. -Original Message- From: Anthony W. Marino To: Orion-Interest Sent: 2/11/01 9:06 AM Subject: Re: Any news from Orion yet?? On another note, can you and/or someone, qualify/quantify what you mean by the following previously made statement : "For the most part, Orion is still very much ahead of the pack, and the speed is stil EXCELLENT." ? In the Apache Tomcat list I asked the following question: "Can someone suggest to me what Apache and/or other OpenSource products could be integrated to compete with functionally and/or considered in the same category as BEA WebLogic? I don't necessarily need all of what BEA has to offer at this time, however, I would like to know, generally, what it would take to get there without the big $ price tag." Thank You, Anthony On Monday 15 January 2001 15:20, you wrote: On Mon, 15 Jan 2001, Jason Boehle wrote: WL6 has support for EARs. They also support all of the EJB 2.0 spec except for dependent objects. In fact, I am currently using WL6 for development instead of Orion, due to the apparent lack of development going on in the Orion team on EJB 2.0. I had suggested to my boss that we use Orion, as I had been lurking and following it for several months, and saw that it always met the latest specs first, etc. - now I feel dumb for doing so, as they haven't had a new release in several months... Of course, this is a little unfair - weblogic hadn't had a new release for several months, either. They've just had a major release recently, which makes it seem like they're more active than Orion, when that's not necessarily the case. It might be, but that's not implied by the situation at present. For the most part, Orion is still very much ahead of the pack, and the speed is stil EXCELLENT. While I'm very much looking forward to a new round of released bug fixes, I'm still waiting for some things to shake out before I abandon ship. -Original Message- From: Santosh Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 12:57 AM To: Orion-Interest Subject: Re: Any news from Orion yet?? Hi kevin, As far as i have known WL5.1 or , there is no concept of ear files, does 6.0 include that. Doesn't the J2EE mandate (I am not sure!) the use of EAR = WAR + JAR + CAR(or JAR)? To deploy the JPS1.1.1 on Orion, it is a piece of cake, while deploying on WLS, i have to
Scalability of struts on Orion
Did anyone try to play with struts and see if it scales on Orion? I have built a cluster that runs fine ( 3 machines, one is the loadbalancer and the other 2 form one island) but the pages that use a lot of struts simply do not scale. I am using a testing tool that is able to run multiple virtual users in the same time and many of these VUs simply fail on the logon page. If I have only one Orion server everything works fine. Thank you! Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Too much caching? - the database has changed
Thanks for the help Tim. I am not sure I like this solution. Why do I have to go and change this in the application-deployments folder? The same question applies to the table name for the CMP Beans. How do I choose a table name different than the default one without touvhign the application-deployments folder? Wouldn't make more sense if I can change these things in the "ejb-jar.xml" that is part of the EJB package? Danut At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: Check the docs. There is a flag that you need to set to tell Orion that is does not have "exclusive" access to the database, and that it needs to recognize when a record is updated by a program other than Orion. I believe you need to look at the "exclusive-write-access" attribute of the entity-deployment element in orion-ejb-jar.xml. tim. Two more things. 1. On the server side I get the following CMPSelectTestEJB() setEntityContext ejbCreate( 10, Name 10, Address 10 ) Entity 10 passivated java.lang.Throwable at com.evermind.server.ejb.EntityEJBHome.ail(JAX) at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) at CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity HomeWrapper19.java:377) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bc.do(JAX) at com.evermind.util.f.run(JAX) ejbPassivate( 10, Name 10, Address 10 ) There is no record with ID = 10, name = "Name 10" and address = "Address 10". 2. The exactly same code for EJB, client and the same database work fine on WebLogic. I am using Orion 1.4.5. Danut I am having a problem. I am creating some records using some BMP and CMP EJBs. While Orion is still running I am deleting the records using a simple JDBC client. When I try to ccreate the same records again I get an exception that says javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) at SelectTestClient.CreateRecords(SelectTestClient.java:102) at SelectTestClient.TestOrion(SelectTestClient.java:264) at SelectTestClient.main(SelectTestClient.java:319) How can I make Orion aware that the database has changed? Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Too much caching? - the database has changed
Thank you again for your very helpful advices! It saves me a lot of time. Danut At 12:55 PM 2/6/2001 -0500, Tim Endres wrote: You should not be changing the deployment folder files directly, except to check to see if something works. You should create your own orion-ejb-jar.xml file in your own EAR (or build directory if you deploy directly). Orion will then pickup your version of orion-ejb-jar.xml and add anything else that it needs, and place the result into application-deployments. tim. Thanks for the help Tim. I am not sure I like this solution. Why do I have to go and change this in the application-deployments folder? The same question applies to the table name for the CMP Beans. How do I choose a table name different than the default one without touvhign the application-deployments folder? Wouldn't make more sense if I can change these things in the "ejb-jar.xml" that is part of the EJB package? Danut At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: Check the docs. There is a flag that you need to set to tell Orion that is does not have "exclusive" access to the database, and that it needs to recognize when a record is updated by a program other than Orion. I believe you need to look at the "exclusive-write-access" attribute of the entity-deployment element in orion-ejb-jar.xml. tim. Two more things. 1. On the server side I get the following CMPSelectTestEJB() setEntityContext ejbCreate( 10, Name 10, Address 10 ) Entity 10 passivated java.lang.Throwable at com.evermind.server.ejb.EntityEJBHome.ail(JAX) at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) at CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity HomeWrapper19.java:377) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bc.do(JAX) at com.evermind.util.f.run(JAX) ejbPassivate( 10, Name 10, Address 10 ) There is no record with ID = 10, name = "Name 10" and address = "Address 10". 2. The exactly same code for EJB, client and the same database work fine on WebLogic. I am using Orion 1.4.5. Danut I am having a problem. I am creating some records using some BMP and CMP EJBs. While Orion is still running I am deleting the records using a simple JDBC client. When I try to ccreate the same records again I get an exception that says javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) at SelectTestClient.CreateRecords(SelectTestClient.java:102) at SelectTestClient.TestOrion(SelectTestClient.java:264) at SelectTestClient.main(SelectTestClient.java:319) How can I make Orion aware that the database has changed? Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Too much caching? - the database has changed
I am having a problem. I am creating some records using some BMP and CMP EJBs. While Orion is still running I am deleting the records using a simple JDBC client. When I try to ccreate the same records again I get an exception that says javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) at SelectTestClient.CreateRecords(SelectTestClient.java:102) at SelectTestClient.TestOrion(SelectTestClient.java:264) at SelectTestClient.main(SelectTestClient.java:319) How can I make Orion aware that the database has changed? Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Oracle database and connection pooling
Hi, I am new to EJBs so I apologize if my question sounds silly. I am trying to configure Orion to use Oracle 8 and pooled connections. This is how my data-source looks like: data-source class="com.evermind.sql.ConnectionDataSource" ejb-location="jdbc/MyApollo" location="jdbc/OracleCoreDS" pooled-location="jdbc/OraclePooledDS" name="Oracle" schema="database-schemas/oracle.xml" xa-location="jdbc/xa/OracleXADS" connection-driver="oracle.jdbc.driver.OracleDriver" username="system" password="manager" url="jdbc:oracle:oci8:@APOLLO" inactivity-timeout="30" / I am trying to implement a BMP and here is the code I am using to get the connection: public void setEntityContext(EntityContext ec) { ... Context initialContext = new InitialContext(); ConnectionPoolDataSource dataSource = (ConnectionPoolDataSource) initialContext.lookup( "jdbc/OraclePooledDS" ); } and later on public Connection getConnection() throws SQLException { ... return dataSource.getPooledConnection().getConnection(); } I get the folowing exception in my client code when I create the bean javax.ejb.EJBException: com.evermind.sql.OrionPooledDataSource at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy2.create(Unknown Source) at SelectTestClient.main(SelectTestClient.java:117) that seems to be thrown when the execution reaches the following line of code: ConnectionPoolDataSource dataSource = (ConnectionPoolDataSource) initialContext.lookup( "jdbc/OraclePooledDS" ); Thanks! Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
How to configure Orion to use Oracle
I am trying to use Oracle database with Orion. In the "data-source.xml" file I have added: data-source class="com.evermind.sql.DriverManagerDataSource" name="Oracle" schema="database-schemas/oracle.xml" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/Myapollo" connection-driver="oracle.jdbc.driver.OracleDriver" username="system" password="manager" url="jdbc:oracle:oci8:@APOLLO" inactivity-timeout="30" / I have set the correct class path to the Oracle class files CLASSPATH=c:\java\orion\jrb.jar;c:\java\orion\jndi.jar;.;c:\java\orion\orion.jar;C:\Java\Oracle;.;C:\Java\orion\orion.jar;C:\Java\orion\ejb.jar;C:\Java\orion\jndi.jar;C:\Java\j2sdkee1.2.1\lib\j2ee.jar; but when I launch Orion server I get the following message: C:\Java\orionjava -jar orion.jar Error initializing server: DriverManagerDataSource driver 'oracle.jdbc.driver.OracleDriver' not found Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: How to configure Orion to use Oracle
At 09:20 AM 1/17/2001 -0700, Gary Shea wrote: I believe you will need to copy the oracle jar classes111.zip or (if you have it) classes12.zip to the orion lib dir. That at least is how I did it. You are right Gary. It just happen that I figured the solution few minutes ago by seeing that the "hsql.jar" file is under the Lib folder too. I'm not sure if you can use the CLASSPATH to accomplish the same thing, but frankly I'm not clear on how orion decides where to find things! I agree. Why do I have to copy the file(s) there instead of using the CLASSPATH? Shouldn't I be able to point to where Oracle installed the driver files? Do I need to have two copies of the driver files on my machine? Maybe this is an idea for a future improvement for Orion(?) Gary Danut Danut Prisacaru ([EMAIL PROTECTED]) wrote: I am trying to use Oracle database with Orion. In the "data-source.xml" file I have added: data-source class="com.evermind.sql.DriverManagerDataSource" name="Oracle" schema="database-schemas/oracle.xml" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/Myapollo" connection-driver="oracle.jdbc.driver.OracleDriver" username="system" password="manager" url="jdbc:oracle:oci8:@APOLLO" inactivity-timeout="30" / I have set the correct class path to the Oracle class files CLASSPATH=c:\java\orion\jrb.jar;c:\java\orion\jndi.jar;.;c:\java\orion\orion.jar;C:\Java\Oracle;.;C:\Java\orion\orion.jar;C:\Java\orion\ejb.jar;C:\Java\orion\jndi.jar;C:\Java\j2sdkee1.2.1\lib\j2ee.jar; but when I launch Orion server I get the following message: C:\Java\orionjava -jar orion.jar Error initializing server: DriverManagerDataSource driver 'oracle.jdbc.driver.OracleDriver' not found Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com