RE: Back to basics
Title: RE: Back to basics This list is full of references to the Orion Primer and Orion CMP Primer, check it out. -Original Message- From: Duwayne [mailto:[EMAIL PROTECTED]] Sent: den 27 september 2000 01:03 To: Orion-Interest Subject: Back to basics I am just getting started to with ejb and basically I have Orion as an ejb server (middle) and Resin as jsp/servlet server (front). I want to know the basic requirements of Orion for deployment. What files it needs etc. So far I know I need the home/remote/class + META-INF/ejb-jar.xml files. All will be in a JAR file which I put in a EAR file and leave in application/ directory. I also change the server.xml and default-website.xml. Can someone write up a detailed tutorial for this? Its rather important to beginners started asap so they spend more time coding. Thanks for this great software! = Duwayne Sy Sign up now for FREE DSL http://in.winfire.com/s/isapiEng.dll/wf.exe?cmd=rl&452,30005499 __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
SV: Cascade Delete
Cascading delete is something that some database servers support, so far i havent seen anywhere that Orion is to support that in the buissiness layer. What you can do is make your own ejbRemove implementation that will do a cascading delete in a beanmanaged Entity bean. Klaus Myrseth -Opprinnelig melding- Fra: Reddy Krishnan [mailto:[EMAIL PROTECTED]] Sendt: 27. september 2000 01:54 Til: Orion-Interest Emne: Cascade Delete Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
Orionserver and RMI Over IIOP support
We are going to evaluate some application server (J2EE Compliant). We have a question . What about the RMI Over IIOP support of orionserver ? Thank's in advance ! Giorgino e Silvietta (A.K.A. Giorgio Angiolini and Silvia Sartoris) Ciao !
Re: Cascade Delete
Take a look at the ejb2.0-Specification(e.g. http://www.sdmagazine.com/uml/thinking/s0010to.shtml): Things like Dependent Objects have become a little bit clearer, and so it became clearer, what a cascading delete on the object-level means. greetings Stefan Frank - Original Message - From: [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, September 27, 2000 9:16 AM Subject: SV: Cascade Delete Cascading delete is something that some database servers support, so far i havent seen anywhere that Orion is to support that in the buissiness layer. What you can do is make your own ejbRemove implementation that will do a cascading delete in a beanmanaged Entity bean. Klaus Myrseth -Opprinnelig melding- Fra: Reddy Krishnan [mailto:[EMAIL PROTECTED]] Sendt: 27. september 2000 01:54 Til: Orion-Interest Emne: Cascade Delete Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
Where to put orion-ejb-jar.xml in the jar file
Hello, I have been able to successfully deploy some CMP EJBs on Orion server. The issue is that I have to copy the orion-ejb-jar.xml file to the application-deployments directory if I change this file. Is it possible to include this file in the jar file for EJBs. I tried adding this file to these directories in the jar file: META-INF, orion, META-INF\orion and it didn't work. I'll appreciate any help on how to do this. Thanks, Deepak
Caching and object pooling in Orion
Hello everyone, This question has been asked before in this mailing list but there has been no answer yet. I hope that there is some response this time. The questions are: 1. Does Orion implement EJB object caching? If yes, I'll appreciate some details on what has been implemented. 2. I want to find out specifically about CMP based EJB caching. When are these beans cached and what evicts them from cache? I have implemented some CMP EJBs and I see that anytime I want to access these beans, a database call is made. To clarify, my client starts up and instantiates these beans and then exits. When I restart the client, when it accesses the same beans leads to database calls. 3. Some details about session beans caching will also be appreciated. Does Orion allow that some number of session bean instances be pre-created? If yes, how can this be specified? Thanks, Deepak
FW: Primary Key problem
Hi Amir, I'm interested in finding how were you able to make Orion work with JDBC-ODBC layer. I was able to do it but I keep on getting error from the ODBC driver "Connection is busy with results from the previous statement". This I have seen to be a limitation of SQL Server driver, not of Orion or any other software. I'll appreciate if you can share your solution. Thanks, Deepak -Original Message- From: Amir Peivandi [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 1:26 PM To: Orion-Interest Subject: RE: Primary Key problem Yes I did, bug #64 -Original Message- From: Ernst de Haan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 2:06 PM To: Orion-Interest Subject: Re: Primary Key problem Hi Amir, Have you added this to the Bugzilla bug database ? This way you will get the attention of the Orion development team and you (and the rest of us) will be able to track the status. :) Ernst Amir Peivandi wrote: Hi, I had a problem and it took me about five hours to find and fix it. I though it could be useful for everybody to know and maybe it's a bug in Orion. When you have a CMP Entity bean which maps to a table with a certain condition as I explain here, the remove method fails with a message which says the object is being used and is locked by another active connection. This happens when you have a table with one, two or more fields and the primary key is a multi field key, consist of all the fields in the table. It also happens when there is only one field in the table which is the primary key. To resolve this issue you need to add at least a field to the table which is not part of the primary key! I'm using SQL server with ODBC/JDBC connection. Regards, Amir
Hashtable mapping
Hi, I have a little trouble using OR-mapping for fields of type java.util.Hashtable. I'm using the fieldname_keyType... trick to give Orion clues about the stored values, which are just simple strings. Orion initially seems to generate the intermediate code ok, but a little later on it starts spewing out Invalid cast from java.util.Hashtable to com.evermind.server.ejb.ORMap. and similar errors. //Mikko Kurki-Suonio Neus Lab Inc.
Re: Where to put orion-ejb-jar.xml in the jar file
Hello, I have been able to successfully deploy some CMP EJBs on Orion server. The issue is that I have to copy the orion-ejb-jar.xml file to the application-deployments directory if I change this file. Is it possible to include this file in the jar file for EJBs. I tried adding this file to these directories in the jar file: META-INF, orion, META-INF\orion and it didn't work. ejb-jar.jar: --+ /META-INF |ejb-jar.xml + /orion orion-ejb-jar.xml webapp.war: --+ /WEB-INF web.xml orion-web.xml hope that helps klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
RE: Cascade Delete
-Mensaje original- De: Stefan Frank [SMTP:[EMAIL PROTECTED]] Enviado el: Miércoles, 27 de Septiembre de 2000 06:29 a.m. Para: Orion-Interest Asunto: Re: Cascade Delete Take a look at the ejb2.0-Specification(e.g. http://www.sdmagazine.com/uml/thinking/s0010to.shtml): Things like Dependent Objects have become a little bit clearer, and so it became clearer, what a cascading delete on the object-level means. greetings Stefan Frank - Original Message - From: [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, September 27, 2000 9:16 AM Subject: SV: Cascade Delete Cascading delete is something that some database servers support, so far i havent seen anywhere that Orion is to support that in the buissiness layer. What you can do is make your own ejbRemove implementation that will do a cascading delete in a beanmanaged Entity bean. Klaus Myrseth -Opprinnelig melding- Fra: Reddy Krishnan [mailto:[EMAIL PROTECTED]] Sendt: 27. september 2000 01:54 Til: Orion-Interest Emne: Cascade Delete Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
File permissions
Hi All I have a servlet that uses a class to read a property file, I am using a BASIC logging for my web application and I can't read the property file because I don't have read permission. The server throws the follow exception: 500 Internal Server Error java.security.AccessControlException: access denied (java.io.FilePermission pidesteban.prop read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.init(Unknown Source) at nec.ar.sol.servlet.hcd.Pid.pid(Pid.java:47) at nec.ar.sol.servlet.hcd.MainMenu2.init(MainMenu2.java:35) at com.evermind.server.http.HttpApplication.vt(JAX) at com.evermind.server.http.HttpApplication.vc(JAX) at com.evermind.server.http.HttpApplication.tp(JAX) at com.evermind.server.http.d5.rx(JAX) at com.evermind.server.http.d5.rw(JAX) at com.evermind.util.f.run(JAX) The questions are: How I can read the property file? What is the java.policy file that Orion use? Thank you so much, Esteban Lopez
Associating SSL certs with appropriate site
To any SSL guru's: I have two (servlet/jsp) web sites set up (CompanyA and CompanyB), with each site capable of being accessed normally and via SSL. I have a certificate for each site, and both certificates are contained in a common "keystore". I am unable to persuade the Orion server to associate the correct SSL certificate with the appropriate site. When I attempt to access either site via SSL, I always get the certificate for CompanyB - which was the last one imported into the keystore. (I don't know if that's significant or not.) The locations of significant files: CompanyA is at: orion/applications/CompA/CompA-web/WEB-INF/web-site.xml orion/applications/CompA/CompA-web/WEB-INF/secure-web-site.xml CompanyB is at: orion/applications/CompB/CompB-web/WEB-INF/web-site.xml orion/applications/CompB/CompB-web/WEB-INF/secure-web-site.xml The Keystore is at: orion/keystore (The CN for each certificate matched the domain name of each site - i.e. www.companya.com, and www.companyb.com) Orion configuration file: orion/config/server.xml The file contents (minus the dtd header info): CompanyA web-site.xml: web-site host="[ALL]" port="80" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / /web-site CompanyA secure-web-site.xml: web-site host="[ALL]" secure="true" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / ssl-config keystore="../../../../keystore" keystore-password="123456" / /web-site (CompanyB files look the same - except CompA is CompB etc.) Orion server.xml configuration file: application-server application-directory="../applications" deployment-directory="../application-deployments" library path="../lib" / rmi-config path="./rmi.xml" / principals path="./principals.xml" / log file path="../log/server.log" / /log global-application name="default" path="application.xml" / global-web-app-config path="global-web-application.xml" / web-site path="./default-web-site.xml" / application name="CompA" path="../applications/CompA/" / web-site path="../applications/CompA/CompA-web/WEB-INF/web-site.xml" / web-site path="../applications/CompA/CompA-web/WEB-INF/secure-web-site.xml" / application name="CompB" path="../applications/CompB/" / web-site path="../applications/CompB/CompB-web/WEB-INF/web-site.xml" / web-site path="../applications/CompB/CompB-web/WEB-INF/secure-web-site.xml" / /application-server When I attempt to access either https://www.companya.com or https://www.companyb.com, I gain access to the appropriate site, BUT always using the certificate for www.companyb.com. Thanks in advance for any help or insight into what I am doing wrong! -Dale
RE: EJB example needed
Title: Hi Magnus Thanks for your valuable reply. But Orion only teaches how to deply the ATM app,not how to build it. I've tried to search the mail list archive, too. Thousands of them are EJB-related. I'll try to figure it out, anyway. But including the steps of building such an app in the document, like that for taglib, will definitely help. -Original Message-From: Magnus Rydin [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 27, 2000 PM 03:00To: Orion-InterestSubject: RE: EJB example needed Hi Lynch. There is an example called ATM thta is shipped with Orion. Then you have the Orion Primer and Orion CMP Primer (referenced to from *multiple* postings on this list) WR
RE: EJB example needed
Title: Sorry. Guess it's www.znerd.demon.nl/orion-primer
RE: EJB example needed
Title: Hi again, the Orion Primer and CMP Primer is just that. The ATM will be fully documented in the future, but will never have the purpose of showing how to develop applications. It will be aimed at showing the latest additions to Servlets/JSP/EJB as they come along. Check out the Primers, they are great. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: den 27 september 2000 14:18To: Orion-InterestSubject: RE: EJB example needed Hi Magnus Thanks for your valuable reply. But Orion only teaches how to deply the ATM app,not how to build it. I've tried to search the mail list archive, too. Thousands of them are EJB-related. I'll try to figure it out, anyway. But including the steps of building such an app in the document, like that for taglib, will definitely help. -Original Message-From: Magnus Rydin [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 27, 2000 PM 03:00To: Orion-InterestSubject: RE: EJB example needed Hi Lynch. There is an example called ATM thta is shipped with Orion. Then you have the Orion Primer and Orion CMP Primer (referenced to from *multiple* postings on this list) WR
methodException
Stumbled across Yet Another Obscure Error Message. Does anybody has any idea what this error message means, and what can be done about it? It seems to me that a variable is used that is not defined, but since this is generated code, I don't understand why the variable is not defined... Any help is much appreciated E:\orionjava -jar orion.jar Copying default deployment descriptor from archive at E:\orion\applications\isho p\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory E:\orion\application -deployments\ishop\ishop-ejb... Auto-deploying ishop-ejb (No previous deployment found)... CustomerManagerEJB_St atefulSessionBeanWrapper3.java:68: Undefined variable: created methodException = EJBUtils.getUserException(e, !created); ^ CustomerManagerEJB_StatefulSessionBeanWrapper3.java:137: Undefined variable: cre ated methodException = EJBUtils.getUserException(e, !created); ^ CustomerManagerEJB_StatefulSessionBeanWrapper3.java:210: Undefined variable: cre ated methodException = EJBUtils.getUserException(e, !created); ^ CustomerManagerEJB_StatefulSessionBeanWrapper3.java:277: Undefined variable: cre ated methodException = EJBUtils.getUserException(e, !created); ^ 4 errors Error compiling file:/E:/orion/applications/ishop/ishop-ejb/: Syntax error in source Orion/1.2.9 initialized E:\orion ~ Tom Klaasen Software Engineer The E-corporation http://www.the-ecorp.com +32 (0)9 272 22 00 ~
Re: Caching and object pooling in Orion
I'm also like to hear the answers - we're also seeing an apparent database write per CMP bean reference. At this point our test programs (not our real application...) are clients that access entity beans directly, rather than going through a session bean facade. We've speculated that the individual database writes somehow result from the direct client accesses, but we're only guessing. Changing transaction attributes doesn't make any difference, and (for now) we have exclusive-write-access="true" on every table. I have to periodically justify CMP vs BMP, not to mention Orion, and it's a problem when I can't explain why caching doesn't seem to be working... Come on guys, share some details. You don't have to delve into proprietary information, but the 5 minute overview would make life a lot easier for those of us who have to justify Orion to our investors - and ourselves - when it comes time to bet our business on it. We'd appreciate it. Kirk Yarina At 06:21 AM 9/27/00 -0400, you wrote: Hello everyone, This question has been asked before in this mailing list but there has been no answer yet. I hope that there is some response this time. The questions are: 1. Does Orion implement EJB object caching? If yes, I'll appreciate some details on what has been implemented. 2. I want to find out specifically about CMP based EJB caching. When are these beans cached and what evicts them from cache? I have implemented some CMP EJBs and I see that anytime I want to access these beans, a database call is made. To clarify, my client starts up and instantiates these beans and then exits. When I restart the client, when it accesses the same beans leads to database calls. 3. Some details about session beans caching will also be appreciated. Does Orion allow that some number of session bean instances be pre-created? If yes, how can this be specified? Thanks, Deepak Kirk Yarina [EMAIL PROTECTED]
Re: Associating SSL certs with appropriate site
Hi Dale, Well I have a similar problem where in I have incorporated global server certificate which comes in two part( two certificates) but it just takes up the private key in CSR rather than the trusted certificates . contact Orion people (not by mail but by phone as they dont response fast on mail) cheers Sanjay - Original Message - From: "Dale M. Boresz" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, September 27, 2000 1:02 PM Subject: Associating SSL certs with appropriate site To any SSL guru's: I have two (servlet/jsp) web sites set up (CompanyA and CompanyB), with each site capable of being accessed normally and via SSL. I have a certificate for each site, and both certificates are contained in a common "keystore". I am unable to persuade the Orion server to associate the correct SSL certificate with the appropriate site. When I attempt to access either site via SSL, I always get the certificate for CompanyB - which was the last one imported into the keystore. (I don't know if that's significant or not.) The locations of significant files: CompanyA is at: orion/applications/CompA/CompA-web/WEB-INF/web-site.xml orion/applications/CompA/CompA-web/WEB-INF/secure-web-site.xml CompanyB is at: orion/applications/CompB/CompB-web/WEB-INF/web-site.xml orion/applications/CompB/CompB-web/WEB-INF/secure-web-site.xml The Keystore is at: orion/keystore (The CN for each certificate matched the domain name of each site - i.e. www.companya.com, and www.companyb.com) Orion configuration file: orion/config/server.xml The file contents (minus the dtd header info): CompanyA web-site.xml: web-site host="[ALL]" port="80" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / /web-site CompanyA secure-web-site.xml: web-site host="[ALL]" secure="true" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / ssl-config keystore="../../../../keystore" keystore-password="123456" / /web-site (CompanyB files look the same - except CompA is CompB etc.) Orion server.xml configuration file: application-server application-directory="../applications" deployment-directory="../application-deployments" library path="../lib" / rmi-config path="./rmi.xml" / principals path="./principals.xml" / log file path="../log/server.log" / /log global-application name="default" path="application.xml" / global-web-app-config path="global-web-application.xml" / web-site path="./default-web-site.xml" / application name="CompA" path="../applications/CompA/" / web-site path="../applications/CompA/CompA-web/WEB-INF/web-site.xml" / web-site path="../applications/CompA/CompA-web/WEB-INF/secure-web-site.xml" / application name="CompB" path="../applications/CompB/" / web-site path="../applications/CompB/CompB-web/WEB-INF/web-site.xml" / web-site path="../applications/CompB/CompB-web/WEB-INF/secure-web-site.xml" / /application-server When I attempt to access either https://www.companya.com or https://www.companyb.com, I gain access to the appropriate site, BUT always using the certificate for www.companyb.com. Thanks in advance for any help or insight into what I am doing wrong! -Dale
Re: referencing Counter in counter.jar - how?
On Wed, Sep 27, 2000 at 03:26:07PM +0200, Stefan Arentz wrote: I'm stuck with the following error: javax.ejb.CreateException: Naming Exception: Counter not found in Photo Bean From PhotoBean.java I do: newId = CounterUtils.getNextID("java:comp/env/Counter","Photo"); Nevermind! This should be "java:comp/env/ejb/Counter" of course. Too much code early in the morning .. my mistake :-/ Stefan
Can't set QueueReceiver for TemporaryQueue - Invalid Queue Exception
Help - I am stuck! Has anyone used a TemporaryQueue on Orion? I get an Invalid Queue Exception when trying to create a QueueReceiver for a TemporaryQueue. The exception and the QueueTestSender and QueueTestReceiver classes are attached below. The error occurs when I run the QueueTestSender, which creates the TemporaryQueue and then attempts to create a QueueReceiver for the TemporaryQueue. I am using Orion 1.2.9 on Windows NT. This code works fine on the Weblogic application server. I reported it as a bug to Bugzilla today. C:\Orion\orion\applications\OrionTempQueue\lib\javajava OrionTempQueue.OrionTestSender Sender: The temporary queue was assigned this name: com.evermind.server.jms.cq@4cb029 javax.jms.InvalidDestinationException: Invalid queue at com.evermind.server.jms.cv.createReceiver(JAX) at com.evermind.server.jms.cv.createReceiver(JAX) at OrionTempQueue.OrionTestSender.initJMS(OrionTestSender.java:79) at OrionTempQueue.OrionTestSender.init(OrionTestSender.java:46) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:176) Receiver: Ready to receive messages javax.jms.JMSException: QueueConnection not started at com.evermind.server.jms.cw.send(JAX) at com.evermind.server.jms.cw.send(JAX) at com.evermind.server.jms.cw.send(JAX) at OrionTempQueue.OrionTestSender.sendRequest(OrionTestSender.java:103) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:181) Exception in thread "main" java.lang.NullPointerException at OrionTempQueue.OrionTestSender.closeJMS(OrionTestSender.java:160) at OrionTempQueue.OrionTestSender.sendRequest(OrionTestSender.java:109) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:181) * * OrionTestSender.java * * Created on July 7, 2000, 2:02 PM * */ package OrionTempQueue; import javax.jms.*; import javax.naming.*; import java.util.*; import java.util.Properties; /** QueueTestSender sends a request message to a * permanent queue, and receives a response message on a temporary queue. * p * It creates a temporary queue for the response, then * creates a request message with that temporary queue in the JMSReplyTo field, * then writes the request message to a permanent queue, and listens for the * response message on the temporary queue. * p * Start the Orion server first, then run QueueTestSender. * * @author cdull * @version %I%, %G% */ public class OrionTestSender implements MessageListener{ //private boolean messageReceived; private int messageReceived; private Queue queue; private QueueSender msgSender; private QueueReceiver responseReceiver; private QueueSession writeSession; private QueueSession readSession; private QueueConnection conn; private TemporaryQueue responseQueue; private Context ctx; private OrionTestReceiver myReceiver; /** Creates new QueueTestSender*/ public OrionTestSender() { messageReceived = 0; try { ctx = getInitialContext(); initJMS(); } catch (Exception e) { e.printStackTrace(); } myReceiver = new OrionTestReceiver(); } /**Sets up all of the JMS stuff: connections, sessions, queues, sender, * and receiver, creates a temporary queue for the response messages, puts the * name of the temporary queue in the JMSReplyTo field of the request * message, and sends the request message on the permanent queue */ private void initJMS () { try { QueueConnectionFactory factory = (QueueConnectionFactory)ctx.lookup("jms/QueueConnectionFactory"); Queue requestQueue = (Queue)ctx.lookup("jms/sampleQueue"); conn = factory.createQueueConnection(); //establish separate write and read sessions readSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); //writeSession = secondConn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); writeSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); //create a MessageSender for the permanent requestQueue msgSender = writeSession.createSender(requestQueue); //create a temporary queue for responses, and try to print it's name responseQueue = readSession.createTemporaryQueue(); System.out.println("Sender: The temporary queue was assigned this name: " + responseQueue.toString()); //create a receiver for the temporary response queue responseReceiver = readSession.createReceiver(responseQueue); responseReceiver.setMessageListener(this); //start the read connection conn.start(); } catch (Exception e) { e.printStackTrace(); // closeJMS(); } } public void sendRequest (String str) { try {
Re: FW: Primary Key problem
AFAIK the JDBC-ODBC bridge is single threaded - that's probably what you were running into... -t On Wed, Sep 27, 2000 at 06:20:48AM -0400, Goel, Deepak wrote: Hi Amir, I'm interested in finding how were you able to make Orion work with JDBC-ODBC layer. I was able to do it but I keep on getting error from the ODBC driver "Connection is busy with results from the previous statement". This I have seen to be a limitation of SQL Server driver, not of Orion or any other software. I'll appreciate if you can share your solution. Thanks, Deepak -Original Message- From: Amir Peivandi [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 1:26 PM To: Orion-Interest Subject: RE: Primary Key problem Yes I did, bug #64 -Original Message- From: Ernst de Haan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 2:06 PM To: Orion-Interest Subject: Re: Primary Key problem Hi Amir, Have you added this to the Bugzilla bug database ? This way you will get the attention of the Orion development team and you (and the rest of us) will be able to track the status. :) Ernst Amir Peivandi wrote: Hi, I had a problem and it took me about five hours to find and fix it. I though it could be useful for everybody to know and maybe it's a bug in Orion. When you have a CMP Entity bean which maps to a table with a certain condition as I explain here, the remove method fails with a message which says the object is being used and is locked by another active connection. This happens when you have a table with one, two or more fields and the primary key is a multi field key, consist of all the fields in the table. It also happens when there is only one field in the table which is the primary key. To resolve this issue you need to add at least a field to the table which is not part of the primary key! I'm using SQL server with ODBC/JDBC connection. Regards, Amir -- Tony Abbott [EMAIL PROTECTED]
Re: ONe - one dependent relation - orion bug?
I reported this in Bugzilla as #45, #46. (I don't know how it got there twice!) Nick At 04:07 PM 9/26/00 -0700, you wrote: Hi, whenever i try to persist a 1-1 relationship between a bean and dependent class i get the following exception during deployment Auto-deploying Cart (ejb-jar.xml had been touched since the previous deployment) ... CartEJB_PersistenceManager2.java:87: Incompatible type for =. Explicit cast needed to convert cart.CartItem to CartItem_Dependent0. this.cartItem = value; ^ 1 error Is this an Orion Bug. THe same classes work fine if i use 1-many relationship? Thanks much Krishnan
Re: referencing Counter in counter.jar - how?
HI, newId = CounterUtils.getNextID("java:comp/env/Counter","Photo"); should be newId = CounterUtils.getNextID("java:comp/env/ejb/Counter","Photo"); You have even defined it right in your descriptor :).. Alex. :) - Original Message - From: Stefan Arentz [EMAIL PROTECTED] Date: Wednesday, September 27, 2000 11:26 pm Subject: referencing Counter in counter.jar - how? I'm stuck with the following error: javax.ejb.CreateException: Naming Exception: Counter not found in Photo Bean From PhotoBean.java I do: newId = CounterUtils.getNextID("java:comp/env/Counter","Photo"); application.xml contains: module ejbcounter.jar/ejb /module ejb-jar contains: entity descriptionPhoto/description display-namePhoto Entity Bean/display-name ... ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote ejb-linkcom.evermind.ejb.Counter/ejb-link /ejb-ref /entity And counter.jar is in the root of the application directory: drwxr-xr-x 4 stefan staff92 Sep 27 03:10 META-INF -rw-r--r-- 1 stefan staff 6865 Sep 27 03:09 counter.jar drwxr-xr-x 4 stefan staff 264 Sep 27 01:13 photos-ejb drwxr-xr-x 32 stefan staff 1044 Sep 27 12:23 photos-web So what's going on here? I can't figure ou why this doesn't work. This is Orion 1.3.8. Stefan
Re: Cascade Delete
Hi, If you are using EJB 2.0 then (according to the draft specs) it is up to you to decide if dependent objects are deleted or not. However, if you are using EJB 1.1 and are storing a Collection of things in an Entity bean, then IMHO the container MUST delete the dependent objects along with the entity. I have reported this as bugzilla # 52. See that for further details. Nick At 04:53 PM 9/26/00 -0700, you wrote: Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
Re: Caching and object pooling in Orion
I'd also like to know a bit more about how the caching works. As for all those "unnecessary" database writes - I guess they're there to help ensure data integrity in the event of a crash... You can eliminate many of them though - from the FAQ: Q: I am using CMP Entity beans and call many methods on it that do not modify the state of the bean. How can I help Orion figure out that I am not changing the state and that it does not need to talk to the database? A: Implement the method "public boolean isModified()" in your bean to return a boolean flag that you set each time you modify your bean and clear in ejbStore(). If isModified() returns false, Orion knows that it doesn't need to talk to the database Weblogic (I think - one of the "big" appservers anyway) does the same sort of thing. -t On Wed, Sep 27, 2000 at 10:52:34AM -0400, KirkYarina wrote: I'm also like to hear the answers - we're also seeing an apparent database write per CMP bean reference. At this point our test programs (not our real application...) are clients that access entity beans directly, rather than going through a session bean facade. We've speculated that the individual database writes somehow result from the direct client accesses, but we're only guessing. Changing transaction attributes doesn't make any difference, and (for now) we have exclusive-write-access="true" on every table. I have to periodically justify CMP vs BMP, not to mention Orion, and it's a problem when I can't explain why caching doesn't seem to be working... Come on guys, share some details. You don't have to delve into proprietary information, but the 5 minute overview would make life a lot easier for those of us who have to justify Orion to our investors - and ourselves - when it comes time to bet our business on it. We'd appreciate it. Kirk Yarina At 06:21 AM 9/27/00 -0400, you wrote: Hello everyone, This question has been asked before in this mailing list but there has been no answer yet. I hope that there is some response this time. The questions are: 1. Does Orion implement EJB object caching? If yes, I'll appreciate some details on what has been implemented. 2. I want to find out specifically about CMP based EJB caching. When are these beans cached and what evicts them from cache? I have implemented some CMP EJBs and I see that anytime I want to access these beans, a database call is made. To clarify, my client starts up and instantiates these beans and then exits. When I restart the client, when it accesses the same beans leads to database calls. 3. Some details about session beans caching will also be appreciated. Does Orion allow that some number of session bean instances be pre-created? If yes, how can this be specified? Thanks, Deepak Kirk Yarina [EMAIL PROTECTED] -- Tony Abbott [EMAIL PROTECTED]
Re: Caching and object pooling in Orion
I have experienced the same thing too. Would be very helpful if someone from orion team could provide some info on this.
RE: Cascade Delete
Hi Klaus, Thanks for the reply. As per EJB2 spec there is a createDependentObject abstract method for each dependent object but no deleteObject. In which case to remove the dependent objects we have to write some JDBC code and call it in BEans ejbRemove method. If i were to do that the purpose of having CMPs with OR mapping gets defeated. Do you have any other way of doing this? Krishnan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 12:17 AM To: Orion-Interest Subject: SV: Cascade Delete Cascading delete is something that some database servers support, so far i havent seen anywhere that Orion is to support that in the buissiness layer. What you can do is make your own ejbRemove implementation that will do a cascading delete in a beanmanaged Entity bean. Klaus Myrseth -Opprinnelig melding- Fra: Reddy Krishnan [mailto:[EMAIL PROTECTED]] Sendt: 27. september 2000 01:54 Til: Orion-Interest Emne: Cascade Delete Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
Re: Caching and object pooling in Orion
I should have mentioned that I've already added isModified() to our entity beans; sorry. I'm seeing an ejbStore on every setXxxx call; isModified() eliminated the ejbStore that was occurring on every getter. My previous assumption that the container could tell gets from sets and not store was wrong - the container has no way to tell if getters are making changes in 1.1. I have a partially completed test that moves the bean beater from a client to a session bean to see if the extra(?) stores are related to using a non-transactional context client, but it's been preempted by higher priority work. Kirk Yarina At 10:52 AM 9/27/00 -0600, you wrote: I'd also like to know a bit more about how the caching works. As for all those "unnecessary" database writes - I guess they're there to help ensure data integrity in the event of a crash... You can eliminate many of them though - from the FAQ: Q: I am using CMP Entity beans and call many methods on it that do not modify the state of the bean. How can I help Orion figure out that I am not changing the state and that it does not need to talk to the database? A: Implement the method "public boolean isModified()" in your bean to return a boolean flag that you set each time you modify your bean and clear in ejbStore(). If isModified() returns false, Orion knows that it doesn't need to talk to the database Weblogic (I think - one of the "big" appservers anyway) does the same sort of thing. -t On Wed, Sep 27, 2000 at 10:52:34AM -0400, KirkYarina wrote: I'm also like to hear the answers - we're also seeing an apparent database write per CMP bean reference. At this point our test programs (not our real application...) are clients that access entity beans directly, rather than going through a session bean facade. We've speculated that the individual database writes somehow result from the direct client accesses, but we're only guessing. Changing transaction attributes doesn't make any difference, and (for now) we have exclusive-write-access="true" on every table. I have to periodically justify CMP vs BMP, not to mention Orion, and it's a problem when I can't explain why caching doesn't seem to be working... Come on guys, share some details. You don't have to delve into proprietary information, but the 5 minute overview would make life a lot easier for those of us who have to justify Orion to our investors - and ourselves - when it comes time to bet our business on it. We'd appreciate it. Kirk Yarina At 06:21 AM 9/27/00 -0400, you wrote: Hello everyone, This question has been asked before in this mailing list but there has been no answer yet. I hope that there is some response this time. The questions are: 1. Does Orion implement EJB object caching? If yes, I'll appreciate some details on what has been implemented. 2. I want to find out specifically about CMP based EJB caching. When are these beans cached and what evicts them from cache? I have implemented some CMP EJBs and I see that anytime I want to access these beans, a database call is made. To clarify, my client starts up and instantiates these beans and then exits. When I restart the client, when it accesses the same beans leads to database calls. 3. Some details about session beans caching will also be appreciated. Does Orion allow that some number of session bean instances be pre-created? If yes, how can this be specified? Thanks, Deepak Kirk Yarina [EMAIL PROTECTED] -- Tony Abbott [EMAIL PROTECTED] Kirk Yarina [EMAIL PROTECTED]
Error while trying to deploy
Hey, has anybody got an idea about this error??? Auto-deploying guid-factory-ejb.jar (No previous deployment found)... java.lang.ArrayIndexOutOfBoundsException at com.evermind.server.ejb.compilation.fx.af1(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fv.sm(JAX) at com.evermind.server.ejb.compilation.fz.aez(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f7.ahe(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fz.sm(JAX) at com.evermind.server.ejb.compilation.f0.sm(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f6.sm(JAX, Compiled Code) at com.evermind.server.ejb.EJBContainer.by(JAX, Compiled Code) at com.evermind.server.Application.by(JAX, Compiled Code) at com.evermind.server.Application.f9(JAX) at com.evermind.server.ApplicationServer.ri(JAX) at com.evermind.server.ApplicationServer.apa(JAX, Compiled Code) at com.evermind.server.ApplicationServer.f9(JAX) at com.evermind.server.hc.run(JAX) at com.evermind.util.f.run(JAX, Compiled Code) Thx
RE: Can't set QueueReceiver for TemporaryQueue - Invalid Queue Exception
I'm unable to use Temporary Queues either. It definitely looks like a bug. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cathleen Dull Sent: Wednesday, September 27, 2000 11:53 AM To: Orion-Interest Subject: Can't set QueueReceiver for TemporaryQueue - Invalid Queue Exception Help - I am stuck! Has anyone used a TemporaryQueue on Orion? I get an Invalid Queue Exception when trying to create a QueueReceiver for a TemporaryQueue. The exception and the QueueTestSender and QueueTestReceiver classes are attached below. The error occurs when I run the QueueTestSender, which creates the TemporaryQueue and then attempts to create a QueueReceiver for the TemporaryQueue. I am using Orion 1.2.9 on Windows NT. This code works fine on the Weblogic application server. I reported it as a bug to Bugzilla today. C:\Orion\orion\applications\OrionTempQueue\lib\javajava OrionTempQueue.OrionTestSender Sender: The temporary queue was assigned this name: com.evermind.server.jms.cq@4cb029 javax.jms.InvalidDestinationException: Invalid queue at com.evermind.server.jms.cv.createReceiver(JAX) at com.evermind.server.jms.cv.createReceiver(JAX) at OrionTempQueue.OrionTestSender.initJMS(OrionTestSender.java:79) at OrionTempQueue.OrionTestSender.init(OrionTestSender.java:46) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:176) Receiver: Ready to receive messages javax.jms.JMSException: QueueConnection not started at com.evermind.server.jms.cw.send(JAX) at com.evermind.server.jms.cw.send(JAX) at com.evermind.server.jms.cw.send(JAX) at OrionTempQueue.OrionTestSender.sendRequest(OrionTestSender.java:103) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:181) Exception in thread "main" java.lang.NullPointerException at OrionTempQueue.OrionTestSender.closeJMS(OrionTestSender.java:160) at OrionTempQueue.OrionTestSender.sendRequest(OrionTestSender.java:109) at OrionTempQueue.OrionTestSender.main(OrionTestSender.java:181) * * OrionTestSender.java * * Created on July 7, 2000, 2:02 PM * */ package OrionTempQueue; import javax.jms.*; import javax.naming.*; import java.util.*; import java.util.Properties; /** QueueTestSender sends a request message to a * permanent queue, and receives a response message on a temporary queue. * p * It creates a temporary queue for the response, then * creates a request message with that temporary queue in the JMSReplyTo field, * then writes the request message to a permanent queue, and listens for the * response message on the temporary queue. * p * Start the Orion server first, then run QueueTestSender. * * @author cdull * @version %I%, %G% */ public class OrionTestSender implements MessageListener{ //private boolean messageReceived; private int messageReceived; private Queue queue; private QueueSender msgSender; private QueueReceiver responseReceiver; private QueueSession writeSession; private QueueSession readSession; private QueueConnection conn; private TemporaryQueue responseQueue; private Context ctx; private OrionTestReceiver myReceiver; /** Creates new QueueTestSender*/ public OrionTestSender() { messageReceived = 0; try { ctx = getInitialContext(); initJMS(); } catch (Exception e) { e.printStackTrace(); } myReceiver = new OrionTestReceiver(); } /**Sets up all of the JMS stuff: connections, sessions, queues, sender, * and receiver, creates a temporary queue for the response messages, puts the * name of the temporary queue in the JMSReplyTo field of the request * message, and sends the request message on the permanent queue */ private void initJMS () { try { QueueConnectionFactory factory = (QueueConnectionFactory)ctx.lookup("jms/QueueConnectionFactory"); Queue requestQueue = (Queue)ctx.lookup("jms/sampleQueue"); conn = factory.createQueueConnection(); //establish separate write and read sessions readSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); //writeSession = secondConn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); writeSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); //create a MessageSender for the permanent requestQueue msgSender = writeSession.createSender(requestQueue); //create a temporary queue for responses, and try to print it's name responseQueue = readSession.createTemporaryQueue(); System.out.println("Sender: The temporary queue was assigned this name: " + responseQueue.toString()); //create a receiver for the temporary response queue responseReceiver =
One IP - 3 Sites - 3 Domain Names
I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
RE: Cascade Delete
Hi, Regarding the same cascade delete problem. I have a clearFields() method which empties each of the collection holding relationships or dependent objects. If i call this from the client the objects gets deleted properly. But if i call this inside the ejbRemove() ( call clearFields() then call ejbStore()) this is not deleted in the database! Is it wrong to call such methods from ejbRemove? Thanks Krishnan -Original Message- From: Nick Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 9:13 AM To: Orion-Interest Subject: Re: Cascade Delete Hi, If you are using EJB 2.0 then (according to the draft specs) it is up to you to decide if dependent objects are deleted or not. However, if you are using EJB 1.1 and are storing a Collection of things in an Entity bean, then IMHO the container MUST delete the dependent objects along with the entity. I have reported this as bugzilla # 52. See that for further details. Nick At 04:53 PM 9/26/00 -0700, you wrote: Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
Re: Associating SSL certs with appropriate site
"Van Dooren, Damian" wrote: You should be using two different files for your keystores, on for CompnayA and one for CompanyB. -Original Message- From: Dale M. Boresz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 8:03 AM To: Orion-Interest Subject: Associating SSL certs with appropriate site To any SSL guru's: I have two (servlet/jsp) web sites set up (CompanyA and CompanyB), with each site capable of being accessed normally and via SSL. I have a certificate for each site, and both certificates are contained in a common "keystore". I am unable to persuade the Orion server to associate the correct SSL certificate with the appropriate site. When I attempt to access either site via SSL, I always get the certificate for CompanyB - which was the last one imported into the keystore. (I don't know if that's significant or not.) The locations of significant files: CompanyA is at: orion/applications/CompA/CompA-web/WEB-INF/web-site.xml orion/applications/CompA/CompA-web/WEB-INF/secure-web-site.xml CompanyB is at: orion/applications/CompB/CompB-web/WEB-INF/web-site.xml orion/applications/CompB/CompB-web/WEB-INF/secure-web-site.xml The Keystore is at: orion/keystore (The CN for each certificate matched the domain name of each site - i.e. www.companya.com, and www.companyb.com) Orion configuration file: orion/config/server.xml The file contents (minus the dtd header info): CompanyA web-site.xml: web-site host="[ALL]" port="80" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / /web-site CompanyA secure-web-site.xml: web-site host="[ALL]" secure="true" display-name="Company A" virtual-hosts="www.companya.com" default-web-app application="CompA" name="CompA-web" shared="true" / web-app applicatioin="CompA" name="CompA-web" root="/CompA/CompA-web" / ssl-config keystore="../../../../keystore" keystore-password="123456" / /web-site (CompanyB files look the same - except CompA is CompB etc.) Orion server.xml configuration file: application-server application-directory="../applications" deployment-directory="../application-deployments" library path="../lib" / rmi-config path="./rmi.xml" / principals path="./principals.xml" / log file path="../log/server.log" / /log global-application name="default" path="application.xml" / global-web-app-config path="global-web-application.xml" / web-site path="./default-web-site.xml" / application name="CompA" path="../applications/CompA/" / web-site path="../applications/CompA/CompA-web/WEB-INF/web-site.xml" / web-site path="../applications/CompA/CompA-web/WEB-INF/secure-web-site.xml" / application name="CompB" path="../applications/CompB/" / web-site path="../applications/CompB/CompB-web/WEB-INF/web-site.xml" / web-site path="../applications/CompB/CompB-web/WEB-INF/secure-web-site.xml" / /application-server When I attempt to access either https://www.companya.com or https://www.companyb.com, I gain access to the appropriate site, BUT always using the certificate for www.companyb.com. Thanks in advance for any help or insight into what I am doing wrong! -Dale Damian, Thanks for your reply, however that was actually the way I had tried it originally. However, I did try something new... I used a separate keystore for each company as you suggested, and took it a step further by assigning each keystore a different password. Unfortunately - same result. I DID notice though, that the certificate that gets used seems to be the one which has it's "secure-web-site.xml" reference listed first in the server.xml file. If I swap the order, then it changes over to using the other certificate. This is extremely frustrating. It's seems like this should be a very fundamental and common scenario, yet I've found NO mention of it in any of Orion's (very meager) documentation. Thanks for your response. -Dale
Problem with PostFileInputStream
I am trying to read a HTTP uploaded file using FilePostParser and PostFileInputStream. I can read the file byte by byte, but if I try to read it in chunks I get an AIOB exception. Here's my code with a comment on the line that blows up. More commentary below. - Hashtable params = new Hashtable(); Enumeration enumeration = new FilePostParser(req.getInputStream(), req.getContentLength()); while(enumeration.hasMoreElements()) { Object element = enumeration.nextElement(); if(element instanceof Map.Entry) { Map.Entry entry = (Map.Entry) element; params.put(entry.getKey(), entry.getValue()); } else if(element instanceof InputStream) { PostFileInputStream in = (PostFileInputStream) element; int len; byte[] b = new byte[1024]; // PROBLEM: read throws an exception while ((len = in.read(b)) != -1) { out.write(b, 0, len); } out.close(); } } --- Now, according to the api docs, a InputStream.read(byte[]) should read in as many bytes as available and return the number of bytes read, or -1 if the stream is at the end. This is espescially confusing because if I read the file byte by byte, such as: while ((len = in.read()) != -1) { out.write(len); } It works just fine. Here is the exception I am getting. - 9/27/00 3:19 PM default: Servlet error java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com.evermind.io.PostFileInputStream.read(JAX) at java.io.InputStream.read(InputStream.java:91) at org.ancienttruth.servlets.UploadImage.doPost(UploadImage.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) 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) -- I am guessing this is a bug in the implementation, but I just wanted to ask if there was anything I am missing first. Thanks! -- Jason von Nieda 3Buddies.com
Re: One IP - 3 Sites - 3 Domain Names
Your second example is the correct one. You can also set the host value to "[ALL]" to make things easier. - Original Message - From: "Dave Ford" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, September 27, 2000 2:33 PM Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
Re: One IP - 3 Sites - 3 Domain Names
Hello Dave, Dave Ford wrote: I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" This 2nd one is correct, but you only need to give the host attribute if you just want to listen to one of multiple IP:s on the server. web-site virtual-hosts="test.foo.com" in one and web-site virtual-hosts="test2.foo.com" in another is enough (but of course you also want the other web-site to do something differently from the first, like have other applications and content deployed) Regards, Karl Avedal
Re: Error while trying to deploy
Hello Chris, Looks like it's either a bad error message from Orion or some other bug. Either way, can you submit it to Bugzilla and add an ejb-jar that demonstrates the behaviour as an attachement? Regards, Karl Avedal Chris Evans wrote: Hey, has anybody got an idea about this error??? Auto-deploying guid-factory-ejb.jar (No previous deployment found)... java.lang.ArrayIndexOutOfBoundsException at com.evermind.server.ejb.compilation.fx.af1(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fv.sm(JAX) at com.evermind.server.ejb.compilation.fz.aez(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f7.ahe(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fz.sm(JAX) at com.evermind.server.ejb.compilation.f0.sm(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f6.sm(JAX, Compiled Code) at com.evermind.server.ejb.EJBContainer.by(JAX, Compiled Code) at com.evermind.server.Application.by(JAX, Compiled Code) at com.evermind.server.Application.f9(JAX) at com.evermind.server.ApplicationServer.ri(JAX) at com.evermind.server.ApplicationServer.apa(JAX, Compiled Code) at com.evermind.server.ApplicationServer.f9(JAX) at com.evermind.server.hc.run(JAX) at com.evermind.util.f.run(JAX, Compiled Code) Thx
RE: One IP - 3 Sites - 3 Domain Names
The second one here is correct. I have 12 domains running on one IP and it works perfectly. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Thursday, September 28, 2000 5:33 AM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
RE: Cascade Delete
I don't think it's wrong to call business methods from ejbRemove. See bugzilla bug #37. Nick At 12:53 PM 9/27/00 -0700, you wrote: Hi, Regarding the same cascade delete problem. I have a clearFields() method which empties each of the collection holding relationships or dependent objects. If i call this from the client the objects gets deleted properly. But if i call this inside the ejbRemove() ( call clearFields() then call ejbStore()) this is not deleted in the database! Is it wrong to call such methods from ejbRemove? Thanks Krishnan -Original Message- From: Nick Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 9:13 AM To: Orion-Interest Subject: Re: Cascade Delete Hi, If you are using EJB 2.0 then (according to the draft specs) it is up to you to decide if dependent objects are deleted or not. However, if you are using EJB 1.1 and are storing a Collection of things in an Entity bean, then IMHO the container MUST delete the dependent objects along with the entity. I have reported this as bugzilla # 52. See that for further details. Nick At 04:53 PM 9/26/00 -0700, you wrote: Hi, Having some problems while deleting a EJB. When i delete the ejb by ejbobject.remove() method the dependent objects and relationship entries are not deleted from the database. Should this not be done automatically by the app server. Is this a problem in Orion or is there some explicit delete that needs to be done in the remove method implementation in the bean. Would appreciate any help on this. Thanks Krishnan
RE: One IP - 3 Sites - 3 Domain Names
As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
RE: One IP - 3 Sites - 3 Domain Names
Hi, I experienced the same problem and i couldn't find the solution. A suggestion.. 1. install iis or apache as main webserver and configure the virtual hosts. 2. run orion as a second server on different port and you know from there.. Sarathy As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
RE: One IP - 3 Sites - 3 Domain Names
This is not correct. It is absolutely possible to have several hosts on one IP address. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Vanha Sent: Thursday, September 28, 2000 2:07 AM To: Orion-Interest Subject: RE: One IP - 3 Sites - 3 Domain Names As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
RE: One IP - 3 Sites - 3 Domain Names
What are you guys talking about? I have orion running 10 web sites on same IP. Use Virtual-Hosting.Did i misunderstand your question? http://www.orionserver.com/docs/web-site.xml.html virtual hosting works by checking the host in the request.if it sees the virtual-host listed in the particular web-site.xml fileit will work as you expect.. This should be a very simple functionjust set all IPs to the sameI personally do not use the [ALL] specification on the port ever...because I have apache web server running some of my legacy sites on the same machine.but soon I will be 100% J2EE David At 06:46 PM 9/27/00 -0400, you wrote: Hi, I experienced the same problem and i couldn't find the solution. A suggestion.. 1. install iis or apache as main webserver and configure the virtual hosts. 2. run orion as a second server on different port and you know from there.. Sarathy As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
RE: One IP - 3 Sites - 3 Domain Names
Actually, Orion has the ability to work with Virtual Domains. I forget exactly how this works, but you can use one IP to bind to many domain names, by setting up each domain as a virtual domain. This is much like how ISPs allow each of their clients to have their own www.mycompany.com route to their IP address, and then direct the web requests to the /~user_name directory. Orion is capable of doing this, but you'll probably have to look at the archives of emails on how to do this for sure. I am pretty sure you need to set something in the orion-web.xml and/or the /confid/web-site.xml files. -Original Message- From: Andre Vanha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 3:07 PM To: Orion-Interest Subject: RE: One IP - 3 Sites - 3 Domain Names As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford
Re: One IP - 3 Sites - 3 Domain Names
"Duffey, Kevin" wrote: Actually, Orion has the ability to work with Virtual Domains. I forget exactly how this works, It's pretty easy. Starting with browser versions 3 the browsers included not only the URI (like it is specified in HTTP/0.9 already) but the full URL into the HTTP request. So the full hostname is contained in the HTTP request header. Virtual servers (this type of server is often called "software virtual servers") can then find out which domain to answer by parsing the HTTP headers. You can see the limitations of this neat trick by simulating a HTTP request without the full HTTP headers. Just do a telnet to all your virtual servers on port 80 (or on whatever server the port is running on) and do a GET request for a document (for example "GET /index.html"). The answer for all these requests will be the same. but you can use one IP to bind to many domain names, by setting up each domain as a virtual domain. This is much like how ISPs allow each of their clients to have their own www.mycompany.com route to their IP address, and then direct the web requests to the /~user_name directory. Orion is capable of doing this, but you'll probably have to look at the archives of emails on how to do this for sure. I am pretty sure you need to set something in the orion-web.xml and/or the /confid/web-site.xml files. -Original Message- From: Andre Vanha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 3:07 PM To: Orion-Interest Subject: RE: One IP - 3 Sites - 3 Domain Names As far as I know what you're trying to accomplish is impossible. A web server binds to an IP addresses. The domain names are just pointers to the same IP address. So in effect your're trying to run 3 webserver on the same exact IP. You could bind to different ports, but then your URLs would be non-standard. To do this correctly you'll need a different IP for each domain. One possibility that comes to mind, though I have no idea it will work, is to analyze the URL request in your servlet or JSP and attempt to inlcude/forward the appropriate content in your code, depending on what you find. Andre V -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford Sent: Wednesday, September 27, 2000 1:33 PM To: Orion-Interest Subject: One IP - 3 Sites - 3 Domain Names I have one physical machine with one IP address. This one ip address is associated with three domain names. Each domain name should pull up a different web-site. I currently have 3 web-sites defined in server.xml: web-site path="c:\@web\@OrionConfig\web-site-1.xml" / web-site path="c:\@web\@OrionConfig\web-site-2.xml" / web-site path="c:\@web\@OrionConfig\web-site-3.xml" / I then have three web-site-x.xml files defined. It's not clear what the value of the host and virtual-hosts attributes should be for each of these three files. I have read the docs and the faq but still can't get it to work. I tried this: In web-site-1.xml: web-site host="www.domainName1.com" In web-site-2.xml: web-site host="www.domainName2.com" In web-site-3.xml: web-site host="www.domainName3.com" And this: In web-site-1.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName1.com" In web-site-2.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName2.com" In web-site-3.xml: web-site host="63.74.110.162" virtual-hosts="www.domainName3.com" It is not obvious to me, based on the docs, how to set this up. Any suggestions? Dave Ford