Re: Castor JDO + Orion
Hello Roman, Its really easy. Just define your datasource in datasources.xml, and use it through jndi. database name=mydb engine=sql-server jndi name=jdbc/MyDS / mapping href=mapping.xml / /database hth chris Friday, January 18, 2002, 2:41:09 PM, you wrote: RS Hello , RS Does anybody configured Castor JDO and Orion together ? RS I would like to find way how to configure Castors Database object as a datasource. RS Could You suggest me the best way ? RS Thank You in advance. RS Roman. -- Best regards, Christophmailto:[EMAIL PROTECTED]
Re: JavaMail problem
Hello Justin, Tuesday, October 16, 2001, 10:48:20 AM, you wrote: JC I have set Exchange to disable relaying except for the IP address of the JC machine the appserver is on. The problem is I'm still getting the JC javax.mail.SendFailedException: 550 Relaying is prohibited error. You need to restart the internet mail service (in control panel/services) for the change to take effect. -- Best regards, Christophmailto:[EMAIL PROTECTED]
ejb 2.0 relations in orion
Hi all! I'm trying to get some cmp2.0 beans with relations running on orion 1.5.2. I have two beans: Article and Category, and a m:n relation between them. in CategoryBean.java i have: public abstract java.util.Collection getArticles(); and in ArticleBean: public abstract java.util.Collection getCategories(); and in ejb_jar.xml: relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships orion keeps complaining: Method public abstract java.util.Collection redact.ejb.beans.CategoryBean.getArticles() can not be declared abstract. TIA chris
Re: What's in 1.5.3?
Hi, Since 1.5.3 is in beta, is there anywhere where we can find a list of the changes that will be present in 1.5.3? Where is 1.5.3 in beta?
Re: SV: ejb 2.0 relations in orion
Hi Magnus! Hi. You currently need to have your CMR fields as cmr-field in ejb-jar.xml. That should fix your problem. What do you mean exactly? I have my fields defined as cmr-field can you tell my whats wrong with the snippet below? relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships WR
transactions and isolation levels
Hello orion-Interest, Is there documentation on locking and isolation levels in orion somewhere? the docs are quite non existent: isolation - Specifies the isolation-level for database actions. The valid values are 'serializable', 'uncommitted', 'committed', 'repeatable_read'. Maybe some1 can point me to some ressources... -- Best regards, Christoph mailto:[EMAIL PROTECTED]
Re[2]: handling null values in finders
Hello Simon, Wednesday, August 08, 2001, 11:37:59 PM, you wrote: SS Hi, SS It is not problem of mssql, it was defined in SQL 92 standard. There is SS special command in tsql SET ANSI_NULLS which controls this behavior. This SS command can be used as another workaround, if your jdbc driver supports some SS sort of connection initialization. At least it's faster then wait for some SS actions from orion guys. But in general, personally I am trying to avoid SS using null values and use 0 instead, if it is possible. Thanks! Do you know how other app servers handle this? I wonder if its a good idea to use null values. But If I store a refenrence to another bean, I cant just use 0 for not defined, its definately a null. regarz chris
handling null values in finders
Hey all! I am using mssql with orion, and my problem is that my finders dont find null values. The problem is that orion just generates a whereclause where x = null, and in tsql no instance of null equals another instance of null, so the correct where clause would be where x is null. I now write my queries all as where $1 = $field or ($1 is null and $field is null) as a workaround, but I wonder if orion has some kind of special null handling. regarz chris
Re[2]: Fwd: file upload
Hello Nick, Thursday, July 12, 2001, 5:57:56 PM, you wrote: NN Hi Christoph, NN Sending a file to the server is a specialized little job. The Orion server NN supplies some orion-specific classes to help (see www.orionsupport.com and NN search for 'upload'). Alternatively, I have written some generic J2EE code NN for the same task, and you are welcome to have that - just drop me a NN line. (The orionsupport guys said they'd post it on their website, but so NN far it's not there.) Hey nick! It would be great if you could send me your code. I have the upload from the client to the webserver already going. What I need now is to get the file into a ejb. regards chris
Fwd: file upload
resending cos it didnt appear on the list for 24 hours :) This is a forwarded message From: Christoph Sturm [EMAIL PROTECTED] To: orion-Interest [EMAIL PROTECTED] Date: Tuesday, July 10, 2001, 3:27:46 PM Subject: file upload ===8==Original message text=== Hello orion-Interest, I want to stream a uploaded file to the ejb server and save it in a cmp bean. The problem is that a FileInputStream is not serializable. Whats the best way to handle this? -- Best regards, Christoph mailto:[EMAIL PROTECTED]
Inheritance Problem, orion bug
Hey all! I have an app with different article types, that are stored in different tables, and are represented by different cmp-entity-beans. All my remote-interfaces implement the same interface ArticleBase, which extends EJBObject. Then I have a main article table which stores refenrences to the different articles, so I declare a field of type ArticleBase there. When I then try to deploy the bean, Orion crashes with a null-pointer exception. Can some1 give me a hint what I'm doing wrong, or what is the best way to store references to Beans of different types? Regards, Chris -- Best regards, Christoph mailto:[EMAIL PROTECTED]
Inheritance Problem, orion bug
Hey all! I have an app with different article types, that are stored in different tables, and are represented by different cmp-entity-beans. All my remote-interfaces implement the same interface ArticleBase, which extends EJBObject. Then I have a main article table which stores refenrences to the different articles, so I declare a field of type ArticleBase there. When I then try to deploy the bean, Orion crashes with a null-pointer exception. Can some1 give me a hint what I'm doing wrong, or what is the best way to store references to Beans of different types? Regards, Chris -- Best regards, Christoph mailto:[EMAIL PROTECTED]