EJB 2.0
Hello, Does Orion group planning to support EJB2.0 specs,If yes when it will be ? Thank you, -- Elena Neroslavskaya Senior Software Developer NomadIQ Malcha Technology Park Jerusalem 91489,POB 45 Fax: 972-2-6490701 Phone:972-2-649-0720 HomePage: http://www.cs.huji.ac.il/~lenisha
RE: EJB 2.0
Title: RE: EJB 2.0 Hi. You have been able to use some of the EJB 2.0 specs for some time now. Although as the spec is still a draft, this has not been publically anounced, and will not be until Orion supports the full EJB 2.0 spec I guess.. Some things are still lacking, such as EJB QL.. But you can create EJB 2.0 entities, or-mapping (2.0 style), message driven beans etc. WR
Standalone client and SSL remote access
Does the following jndi.properties file enable SSL communication, between a standalone client and a remote orion server ? java.naming.factory.initial=com.everm ind.server.ApplicationClientInitialContextFactory java.naming.provider.url=https:ormi://linux1.sauterel.net/ldap java.naming.security.principal=admin java.naming.security.credentials=123 It work but I suspect SSL is not used. By the way is it possible to specify the port used by RMIHttpTunnelServlet ? Bernard Sauterel +--++ | Bernard Sauterel | sauterel.net | +--++ email | [EMAIL PROTECTED]
Re: EJB 2.0
The dev versions (1.1.37+ at the very least) have early EJB 2.0, although not EQL. On Mon, 14 Aug 2000, NomadIQ wrote: Hello, Does Orion group planning to support EJB2.0 specs,If yes when it will be ? Thank you, -- Elena Neroslavskaya Senior Software Developer NomadIQ Malcha Technology Park Jerusalem 91489,POB 45 Fax: 972-2-6490701 Phone:972-2-649-0720 HomePage: http://www.cs.huji.ac.il/~lenisha --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
http tunneling experience anyone?
hi, has anyone used orion's http-tunneling in more than a hello world kind of setup? I'm particularly interested in its robustness. any strange bugs you encountered? thanks, robert (-) 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
EJB Client
I am trying to access my EJB from a Unix command line client. I am on Solaris using JDK 1.2.2. When I create my initial context, I get this exception : java.lang.ClassFormatError: __Proxy1 (Repeative method name/signature) Exception in thread "main" java.lang.InstantiationError: No location specified for ejb-ref Response This is my code: try { InitialContext context = new InitialContext(); } catch ( Exception e ) { System.out.println(e) ; } This is my application-client.xml : ?xml version="1.0"? !DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd" application-client display-nameApplicantClient/display-name ejb-ref ejb-ref-nameResponse/ejb-ref-name homeResponseHome/home ejb-ref-typeEntity/ejb-ref-type /ejb-ref /application-client This is my jndi.properties: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://apsu.ocas.on.ca/bos java.naming.security.principal=admin java.naming.security.credentials=123 This is the full exception : java.lang.ClassFormatError: __Proxy1 (Repeative method name/signature) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass0(Compiled Code) at java.lang.ClassLoader.defineClass(Compiled Code) at java.lang.ClassLoader.defineClass(Compiled Code) at com.evermind.net.if.findClass(Compiled Code) at java.lang.ClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at com.evermind.reflect.Proxy.aks(JAX) at com.evermind.reflect.Proxy.akr(JAX) at com.evermind.reflect.Proxy.akp(JAX) at com.evermind.server.rmi.a8.f3(Compiled Code) at com.evermind.server.rmi.a5.resolveObject(JAX) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:383) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232) at com.evermind.server.rmi.a5.fi(JAX) at com.evermind.server.rmi.a8.gr(JAX) at com.evermind.server.rmi.a8.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Exception in thread "main" java.lang.InstantiationError: No location specified for ejb-ref Response at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Error.init(Error.java:50) at java.lang.LinkageError.init(LinkageError.java:43) at java.lang.IncompatibleClassChangeError.init(IncompatibleClassChangeError.j ava:43) at java.lang.InstantiationError.init(InstantiationError.java:47) at com.evermind.server.Application.akc(Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at ApplicantClient.init(ApplicantClient.java:16) at ApplicantClient.main(ApplicantClient.java:24)
RE: Clustering help..
Title: RE: Clustering help.. How does JMS factor into this? Is it load-balanced? Here is my scenario: I would like to deploy Orion across a number of servers (4 or so). Each server uses heavy caching of database objects, which in a few some cases need to be synchronized across all servers. I'm considering using lightweight JMS messages to achieve this, but I'm not entirely sure on what the best setup would be. Ideally, it'd be the same config files for every server, and within each instance of Orion, the caches would talk to ormi://localhost to publish and receive, with the servers themselves 'somehow' talking to each other. If the servers don't automagically talk to each other, then I'd have to put in all servers in every config file, and all the publishers would either publish to all servers/subscribe only to itself, or subscribe to all servers/publish only to itself. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bernard Sauterel Sent: Saturday, August 12, 2000 5:57 PM To: Orion-Interest Subject: Re: Clustering help.. I needs urgently more information on clustering features of Orion: - Session Beans Not clustered, can be used from multiple nodes and can be serviced from multiple nodes but there is no failover of data if one node goes down yet. - Entity beans Not clustered, must be serviced from one node but can be used from multiple nodes. - Servlets ServletContext and session data are replicated, the data (beans) must be serializable or EJB references or similar, this will be specified in detail in the Servlet 2.3 spec. - JNDI JNDI is clustered within a cluster so a lookup finds an instance if it resides in any of the nodes in the cluster. - Client applications Clients can have multiple ORMI urls specified in provider.url (comma separated) to try other hosts if one goes down. I readed on your http-clustering-howto.html, we needs an external (non-orion) IP dispatching solution for production use: - is it mandatory ? Yes. - if so, I plan to use RedHat High Availability Server - is it a right solution ? We havent tried that one so we dont know. If it forwards incoming socket requests in a round-robin or other manner then yes, it should work. On Sam, 12 aoû 2000, Keven Duffey [EMAIL PROTECTED] wrote: Hi, I have yet to figure out how to cluster Orion. The documentation still leaves a lot to be desired. If I have two separate machines, how do I get two Orion servers to talk with one another? Can I have one be the servlet engine, and one be th ejb engine? How about fail-over? Ideally I want two (or more) web server/servlet engine front-end boxes, and two or more EJB boxes. Can someone shed some light on how to get this to work. Initially I need the fail-over servlet engines, because I am not doing the EJB stuff yet. So how would I set up two boxes to be fail-over, scalable and load-balanced with Orion? How do I add more computers to one tier? Thanks. +--++ | Bernard Sauterel | sauterel.net | +--++ email | [EMAIL PROTECTED]
Re: Postgres and Orion
FWIW, we found major problems with postgresql. Running a test that created and deleted EBs caused index and data files to grow continuously. Recovering data space took a "vacuum" command, but the only way to recover deleted index file space was to copy tables. In addition every test run was slower than the one before it - from my notes when run 3 times each run took twice as long as the one before. The same tests took the same time every run when using Hypersonic or Sybase. This was several months ago, so perhaps it's been fixed. We deleted postgres and moved on... Our old data-sources.xml section is below, just in case it helps. I believe I had to edit the database-schema file to change null="null" to null="" also. Kirk Yarina At 05:58 PM 8/12/00 -0700, you wrote: Are the postgres drivers built in to orion? I want to make some changes to them. I'm trying to use postgres as my datasource in Orion. It sets up fine, but I need to make some changes to the driver implementation. I'm having a bunch of problems with the date and timestamp implementations. I found on the PostGres mailing lists that it's a pretty common problem and you just have to modifiy ResultSet for your setup. The problem I'm having is that I can't seem to override the drivers in orion. I've tried putting a jar of postgres drivers in the orion/lib directory, but it still seems to be using some other drivers. -Lkb /** * @author: Lorin Kobashigawa-Bates [EMAIL PROTECTED] * @title: CodeMonkey / COO - Robot6 Inc. * @phone: 415.345.8872 * @addr: 1177 Polk St. San Francisco, CA 94109 */ from datasources.xml: data-source name="Default data-source" class="com.evermind.sql.ConnectionDataSource" location="jdbc/DefaultDS" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:postgresql://ourhost/ejbtest" connection-driver="org.postgresql.Driver" username="admin" password="123" schema="database-schemas/postgresql.xml" / Kirk Yarina [EMAIL PROTECTED]
Re: Tieing http session to db connection in orion?!?
hi ! to put some oil into the fire: i got the idea of putting a db connection into the session from the book "Designing Enterprise Applications with the Java 2 Platform, Enterprise Edition" written by the Sun Enterprise Team (Rahul Sharma was the author of the specific chapfter) on page 156, in chapter 6.8 "Guidlines for Connection Management" rahul wrote: "A JSP page or servlet acquires and holds on to a JDBC connection in relation to the life cycle of its HTTP session. It can handle multiple HTTP requests across a single HTTP session from Web clients using the same JDBC connection" He did not mention any backdraws of that method. but one argument brought by some people in this list remains unbeaten: a user session usually lasts 30 min. within this time it is not unusual for a mid-sized Web-Site that several hundred people come to that page, which leads to several hundret concurrent db connections. my opinion is, that unless you find a way to seach and destroy the inactive connections, and unless you have an extreme strong and forgiving database you may get a problem (for example if db hangs because of too much connections, or license problems and so on) [not to mention the second argument with the non-serializability of db connections and the problems with server clusters] any comments? any explainations? joe keith kwiatek wrote: * some people say, it's best practice to put 1 connection into 1 user's http session and use it for all requests of that user This only works if you don't have a lot of users concurrently, say a small intranet application, that doesn't care scalibility. The reason is database connection can't be serialized for sure and connection in http session can't be replicated across your web server farm. Hence each user in a session requires to use the same machine in your web farm. This could be terrible if you intend to serve thousands of users concurrently. Secondly database licensing is an issue. Some database vendors charge you by concurrent opened connection. If your site has a thousand users concurrently, you will need to purchase a thousand licenses (That is the thing scares me most). Agreed with replier..you would NEVER want to do this. If you are not careful you can lose the connections which will ultimately crash the database and/or the web server. VERY bad design. Hello, With regards to the discussion above, and the "tieing of an http session to a single (or multiple) database connections", a lot of people downed this idea, BUT... I actually consider the "one http/db connection" to be a good way for small/medium intranet type applications to use the "transaction managment" of the database (ie oracle's "select for update", two phase commit). OTHERWISE, HOW would you handle the transaction management ?! If you use database connection pooling in an http sessionless environment, how do you handle the dirty read/write situation? What do you do if an http request fetches data for "update", but by the time the update is accomplished, the data has already changed (please don't tell me you you've coded a "check timestamp" for database rows!)? Or does everyone use optimistic locking? OR is this where the powers of EJB state + transaction managment comes in? Thanks, Keith ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
RE: Orion 1.2.0
Title: Orion 1.2.0 Were there any changes? I don't see anything different in this console compared to what I saw in the previous versions. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hani SuleimanSent: Monday, August 14, 2000 9:40 AMTo: Orion-InterestSubject: Orion 1.2.0 The consoleall I can say is WOW. Now, where do I start reporting bugs against it?!
Transaction rolled back error: but it shouldn't be in a transaction
I received the following exception in our log: com.evermind.server.DeadlockException: Transaction was rolled back: timed out, while waiting for 1296 (started at Mon Aug 14 11:29:51 GMT-07 :00 2000, terminated at Mon Aug 14 11:32:17 GMT-07:00 2000) at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) at Auction_EntityBeanWrapper1.getStatus(Auction_EntityBeanWrapper1.java:560) However, I don't specify a transaction demarcation for it--and I heard that the default was Supports. So this call should not be in a transaction. Is the default not Supports? Any other reason why it would have a Transaction when this was called directly from servlet code? Thanks, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781
RE: posting fourth time but did not got any answer
Title: RE: posting fourth time but did not got any answer I know it's not very robust. That's why I designated it a quick hack. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hani SuleimanSent: 14 August 2000 17:31To: Orion-InterestSubject: RE: posting fourth time but did not got any answer This isn't a very robust approach, because finalize is not guaranteed to be called. It might or might not. In fact in case of server shutdown, it's pretty unlikely to get called. For servlets, you should do your shutdown stuff in the destroy method, which the server will call before it terminates (assuming it's a graceful shutdown, of course). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting Sent: Sunday, August 13, 2000 9:32 AM To: Orion-Interest Subject: RE: posting fourth time but did not got any answer For server shutdown, a quick hack is to create a servlet that loads on server startup, has an empty init method, no service methods, and a finalize that does something. finalize will get called when the class instance (of which there is only one, of course) is garbage collected, which happens to be right before the JVM terminates ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Sunday, August 13, 2000 14:32 To: Orion-Interest Cc: Orion-Interest Subject: Re: posting fourth time but did not got any answer for server startup, the following should do: 1. specify load-on-startup for your servlet in web.xml 2. specify load-on-startup for your web application in web-site.xml for server shutdown, I have no idea Khan Kamran schrieb: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Pleaaa as he lp Thanks Kamran
Re: 1.20 Changelog
Hello Joe, When we release 1.2 as a "stable" (which is a few days away, if we don't find any serious errors that we can't fix immediately) we'll announce it and describe the main changes as well as update the documentation. Feel free to test it until then :) Regards, Karl Avedal Joe Walnes wrote: Can we have and update on the changes please? -Joe Walnes
Re: EJB 2.0
Hello Jim, Yeah, that's a safe assumption. More details will follow with the "official" release of it. It still does not support the EJB-QL though. Regards, Karl Avedal Jim Archer wrote: Its safe ti assume, then, that the 1.2.0 binary posted for DL on the web site has some 2.0 draft spec support? --On Monday, August 14, 2000 6:31 AM -0400 "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: The dev versions (1.1.37+ at the very least) have early EJB 2.0, although not EQL. On Mon, 14 Aug 2000, NomadIQ wrote: Hello, Does Orion group planning to support EJB2.0 specs,If yes when it will be ? Thank you, -- Elena Neroslavskaya Senior Software Developer NomadIQ Malcha Technology Park Jerusalem 91489,POB 45 Fax: 972-2-6490701 Phone:972-2-649-0720 HomePage: http://www.cs.huji.ac.il/~lenisha --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer
Re: Postgres and Orion
We are using Orion with Postgres v7 here and we have no such problem. On Mon, Aug 14, 2000 at 12:06:07PM -0400, KirkYarina wrote: FWIW, we found major problems with postgresql. Running a test that created and deleted EBs caused index and data files to grow continuously. Recovering data space took a "vacuum" command, but the only way to recover deleted index file space was to copy tables. In addition every test run was slower than the one before it - from my notes when run 3 times each run took twice as long as the one before. The same tests took the same time every run when using Hypersonic or Sybase. This was several months ago, so perhaps it's been fixed. We deleted postgres and moved on... Our old data-sources.xml section is below, just in case it helps. I believe I had to edit the database-schema file to change null="null" to null="" also. Kirk Yarina At 05:58 PM 8/12/00 -0700, you wrote: Are the postgres drivers built in to orion? I want to make some changes to them. I'm trying to use postgres as my datasource in Orion. It sets up fine, but I need to make some changes to the driver implementation. I'm having a bunch of problems with the date and timestamp implementations. I found on the PostGres mailing lists that it's a pretty common problem and you just have to modifiy ResultSet for your setup. The problem I'm having is that I can't seem to override the drivers in orion. I've tried putting a jar of postgres drivers in the orion/lib directory, but it still seems to be using some other drivers. -Lkb /** * @author: Lorin Kobashigawa-Bates [EMAIL PROTECTED] * @title: CodeMonkey / COO - Robot6 Inc. * @phone: 415.345.8872 * @addr: 1177 Polk St. San Francisco, CA 94109 */ from datasources.xml: data-source name="Default data-source" class="com.evermind.sql.ConnectionDataSource" location="jdbc/DefaultDS" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:postgresql://ourhost/ejbtest" connection-driver="org.postgresql.Driver" username="admin" password="123" schema="database-schemas/postgresql.xml" / Kirk Yarina [EMAIL PROTECTED] -- Adam Cassar Senior Web Developer ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9699 6099 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia