Re: Examples of XML / XSLT
There are some really good tutorials on XML, XSLT and XPATH at http://www.zvon.org/index.php?nav_id=tutorialsmime=html They have a lot of examples and also a web based interactive lab for testing different XSLT constructs on given XML sources. It is worth a visit and IMO a bookmark as well. Ernst de Haan wrote: Why would you need Orion if you want to have an introduction to XML and XSL/XSLT ? BTW: I don't know any good tutorials on XSLT. I just used an example XSLT stylesheet, written by Joseph, modified it, analyzed it, etc., until I figured out the idea. Then I used the XSL spec (at http://www.w3.org/ ) to get to the details. -- Ernst [EMAIL PROTECTED] wrote: are there any good / self-containted examples that use orion? -- Fredrik Lindgren Goyada Ljtnantsgatan 25 SE-115 50 Stockholm Sweden
RE: Flushing EJB cache
Hey Peter, It's difficult to describe with absolute certainty since the documentation is poor (in fact, I haven't found any), but my understanding is that this method will remove instances of a named EJB from the container cache. It would be interesting to hear from other people on how effective they have found this method to be. We have observed that the OrionConsole 'flush' does not work - presumably this is calling 'flushEJBCache'. Does this imply that 'flushEJBCache' does not work ? We'll be testing this ourselves shortly. Hope that helps Peter, Tony. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Kua Sent: 21 February 2001 00:33 To: Orion-Interest Subject: Re: Flushing EJB cache hi tony, may i know what this method does?? thanks, peter - Original Message - From: "Tony J Brooks" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 5:52 PM Subject: RE: Flushing EJB cache To answer my own question - it is the JNDI name. -Original Message- From: Tony J Brooks [mailto:[EMAIL PROTECTED]] Sent: 20 February 2001 09:48 To: Orion Interest Cc: [EMAIL PROTECTED] Subject: Flushing EJB cache Hi everyone, I want to use the following to flush the EJB cache ... void com.evermind.server.administration.ApplicationAdministrator.flushEJBCache( String p0 ) ... can anybody tell me what the argument 'p0' specifies ? I've had a look for API documentation, but I can't find any. Thanks, Tony. --- Dr Tony J Brooks Apama (UK) Ltd 17 Millers Yard Cambridge, UK Mobile : 07748 767 110 eMail : [EMAIL PROTECTED]
RE: archives
try this http://www.mail-archive.com/orion-interest@orionserver.com/ -Original Message- From: Paul Wheaton [mailto:[EMAIL PROTECTED]] Sent: February 20, 2001 1:08 PM To: Orion-Interest Subject: archives Is there a web site that contains archives of this mailing list so that I don't ask stuff that has already been asked? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: NOVICE Question about orion and mysql
Check log files of orion and your database -Original Message- From: Andres Garcia Hourcade [SMTP:[EMAIL PROTECTED]] Sent: 20 2001 16:22 To: Orion-Interest Subject: RE: NOVICE Question about orion and mysql Thanks a lot, i did what you tell me,but i am still getting this msg. Warning: Unable to create new entry, caught: "javax.ejb.CreateException", message is: "Error creating EntityBean: General error: Unknown database 'addressbookdb'". obviusly i do not know how tell to orion server that it must create de addresbookdb, not search it any ideas ? -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de [EMAIL PROTECTED] Enviado el: lunes, 19 de febrero de 2001 13:48 Para: Orion-Interest Asunto: Re: NOVICE Question about orion and mysql Hi Andres, I have some custom CMP EJBs working with MySQL 3.23. My datasource.xml entry is similar to yours. A couple thoughts: 1. Make sure you have removed the attribute "ejb-location" from the hsql datasource. 2. Make sure you have a schema for mysql in the orion/config/database-schemas directory. Here is the one I use (named mysql.xml): -- ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-schema name="Mysql" not-null="not null" null="" primary-key ="primary key" type-mapping type="java.lang.String" name="varchar(255)" / type-mapping type="int" name="integer" / type-mapping type="float" name="float" / type-mapping type="double" name="double" / type-mapping type="byte" name="smallint" / type-mapping type="char" name="char(1)" / type-mapping type="short" name="integer" / type-mapping type="boolean" name="bit" / type-mapping type="java.util.Date" name="datetime" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="text" / /database-schema -- Good luck, Doug "Andres Garcia Hourcade" [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent by: cc: owner-orion-interest@orionSubject: NOVICE Question about orion and mysql server.com 02/16/2001 02:31 PM Please respond to Orion-Interest i changed orion-primer-cmp to use mysql 3.22 the mysql server is up and running, the app. works fine with hsql, but in mysql i have to create database and tables manually, because it cannot auto-create them what else may i config, or where i could find any tips ? thanks in advanced attached config/datasource.xml data-source name="mysql" class ="com.evermind.sql.DriverManagerDataSource" location ="jdbc/mysqlCore" pooled-location ="jdbc/mysqlPooled" xa-location ="jdbc/xa/mysqlXA" ejb-location ="jdbc/mysql" username ="sist" password ="" url ="jdbc:mysql://10.1.1.107:3306/defaultdb" connection-driver="org.gjt.mm.mysql.Driver" /
RE:
AFAIK, there is an example of message-driven bean in the ATM sample application, which should be in your distribution. To update your Orion to latest version available you can use this command (from Orion directory): java -jar autoupdate.jar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chia, Pei Yen Sent: Wednesday, February 21, 2001 9:37 AM To: Orion-Interest Subject: Hi, I'm trying to look for examples on MessageDrivenBean and i can't seem to find it at the orion website. Also, the latest downloadable version of orion server from "www.orionserver.com" is version 1.4.5. I gathered from the mailing list that most of you are already using version 1.4.7 ... Can someone please help me on this. Thank you. Regards, Pei Yen
RE: Flushing EJB cache
I think the reason this method is undocumented is you're not meant to play with it ;) AFAIK it's an internal API. By all means hack at Orion (I know I do), but beware that any hacking will be unsupported by any Orion folks (I think this is fair enough). -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tony J Brooks Sent: Wednesday, February 21, 2001 7:32 PM To: Orion-Interest Subject: RE: Flushing EJB cache Hey Peter, It's difficult to describe with absolute certainty since the documentation is poor (in fact, I haven't found any), but my understanding is that this method will remove instances of a named EJB from the container cache. It would be interesting to hear from other people on how effective they have found this method to be. We have observed that the OrionConsole 'flush' does not work - presumably this is calling 'flushEJBCache'. Does this imply that 'flushEJBCache' does not work ? We'll be testing this ourselves shortly. Hope that helps Peter, Tony. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Kua Sent: 21 February 2001 00:33 To: Orion-Interest Subject: Re: Flushing EJB cache hi tony, may i know what this method does?? thanks, peter - Original Message - From: "Tony J Brooks" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 5:52 PM Subject: RE: Flushing EJB cache To answer my own question - it is the JNDI name. -Original Message- From: Tony J Brooks [mailto:[EMAIL PROTECTED]] Sent: 20 February 2001 09:48 To: Orion Interest Cc: [EMAIL PROTECTED] Subject: Flushing EJB cache Hi everyone, I want to use the following to flush the EJB cache ... void com.evermind.server.administration.ApplicationAdministrator.flushEJBCache( String p0 ) ... can anybody tell me what the argument 'p0' specifies ? I've had a look for API documentation, but I can't find any. Thanks, Tony. --- Dr Tony J Brooks Apama (UK) Ltd 17 Millers Yard Cambridge, UK Mobile : 07748 767 110 eMail : [EMAIL PROTECTED]
Debugging and orion
Hi, What tools / IDEs are people out there using to develop EJBs for use with Orion? At the moment we (as a project team, rather than company) are trying to standardise on an app server and IDE to use, requirements being the usual: cost speed flexibility resource usage debugging support from the IDE - I saw that someone mentioned using Kawa with Orion on the orionsupport website; has this combination been used by many people? (I'm new to the app server world, although I've been doing server-side Java work for several years now - I'm not used to environments where it's even possible to use an integrated debugger, but others on the team say it's necessary :-) Comments about the speed / flexibility / resource usage of Orion are welcome too, from the website it looks pretty slick and the documentation looks good, but time will tell... also if there's any major snags with orion in terms of things that the current version doesn't do correctly or doesn't implement... cheers Jules --
RE: How can I use Application session?
I would add: * how can I retrieve the session ID while I am inside an EJB method so I (from the docs) use from HttpServletRequest the method getSession(), then session.getId() Be careful because the spec says that getSession() creates a session if it does not exists. Yves Bossel - Programmer - Neoris.com
RE: Flushing EJB cache
Mike, Yes, I couldn't agree more. On the subject of EJB timeouts, can anyone clear up something for me ? The following is documentation about the validity-timeout attribute of the entity-deployment tag in orion-ejb.jar.xml ... "The maximum amount of time (in millis) that an entity is valid in the cache (before being reloaded). Useful for loosely coupled environments where rare updates from legacy systems occur. This attribute is only valid when exclusive-write-access="true" (the default)." I take this to mean that EJBs will be refreshed every 'n' milliseconds. However, this does not agree with the bit about 'rare updates'. Also, I've heard on this list opinions of what the attribute does which disagree with my understanding, as follows ... "a bean is removed only from the pool, if its timeout is reached, see the 'validity-timeout'" "The first is a 'validity-timeout' set to milliseconds. This will passivate the EJB if not active." Does anybody agree that this is confusing, or am I missing something obvious ? Thanks, Tony. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Cannon-Brookes Sent: 21 February 2001 11:14 To: Orion-Interest Subject: RE: Flushing EJB cache I think the reason this method is undocumented is you're not meant to play with it ;) AFAIK it's an internal API. By all means hack at Orion (I know I do), but beware that any hacking will be unsupported by any Orion folks (I think this is fair enough). -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tony J Brooks Sent: Wednesday, February 21, 2001 7:32 PM To: Orion-Interest Subject: RE: Flushing EJB cache Hey Peter, It's difficult to describe with absolute certainty since the documentation is poor (in fact, I haven't found any), but my understanding is that this method will remove instances of a named EJB from the container cache. It would be interesting to hear from other people on how effective they have found this method to be. We have observed that the OrionConsole 'flush' does not work - presumably this is calling 'flushEJBCache'. Does this imply that 'flushEJBCache' does not work ? We'll be testing this ourselves shortly. Hope that helps Peter, Tony. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Kua Sent: 21 February 2001 00:33 To: Orion-Interest Subject: Re: Flushing EJB cache hi tony, may i know what this method does?? thanks, peter - Original Message - From: "Tony J Brooks" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 5:52 PM Subject: RE: Flushing EJB cache To answer my own question - it is the JNDI name. -Original Message- From: Tony J Brooks [mailto:[EMAIL PROTECTED]] Sent: 20 February 2001 09:48 To: Orion Interest Cc: [EMAIL PROTECTED] Subject: Flushing EJB cache Hi everyone, I want to use the following to flush the EJB cache ... void com.evermind.server.administration.ApplicationAdministrator.flushEJBCache( String p0 ) ... can anybody tell me what the argument 'p0' specifies ? I've had a look for API documentation, but I can't find any. Thanks, Tony. --- Dr Tony J Brooks Apama (UK) Ltd 17 Millers Yard Cambridge, UK Mobile : 07748 767 110 eMail : [EMAIL PROTECTED]
Table not found in Orion Primer CMP example
Hi, I have a problem with the Orion Primer CMP example. It does run and all that, but when a click on the 'Open the adressbook' link in the first jsp, then i get the next error: Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all AddressBook entries. com.evermind.server.rmi.OrionRemoteException: Database error: Table not found: ADDRESSBOOK_EJB_ADDRESSENTRY in statement [select addressbook_ejb_AddressEntry.name, addressbook_ejb_AddressEntry.address, addressbook_ejb_AddressEntry.city from addressbook_ejb_AddressEntry]; nested exception is: java.sql.SQLException: Table not found: ADDRESSBOOK_EJB_ADDRESSENTRY in statement [select addressbook_ejb_AddressEntry.name, addressbook_ejb_AddressEntry.address, addressbook_ejb_AddressEntry.city from addressbook_ejb_AddressEntry] I guess the problem is the ADDRESSBOOK_EJB_ADDRESSENTRY taqble does not exist. I presume this taqble has to be automatically created somehow. Anybody any idea why this hasn't happened? I do have the correct database directory in the ORION dir and orion also creates the defaultdb as mentioned in the data-sources.xml Or should I create the table myself? Any help is welcome, Thanks, Valentijn Scholten
RE: NOVICE Question about orion and mysql
It appears from the error message that you are pointing to the wrong mysql database: The data-sour xml file snippet you give below refers (in you URL) to defaultdb and your message refers to addressbookdb. In mysql, create a database called addressbookdb (or just change your references to defaultdb). The tables will then be automatically created. --- [EMAIL PROTECTED] wrote: Hi Andres, I'm sorry, I didn't get that error. Orion automatically creates tables in MySQL for CMP entity beans on my system, after just doing what I suggested earlier. Your error sounds like the "database" is invalid, like the URL you're using is pointing to the wrong MySQL database? Just a thought, but I'm not sure. Maybe someone else has more insight. Doug "Andres Garcia Hourcade" [EMAIL PROTECTED] To: Orion-Interest Sent by: [EMAIL PROTECTED] owner-orion-interest@orioncc: server.comSubject: RE: NOVICE Question about orion and mysql 02/20/2001 06:52 AM Please respond to Orion-Interest Thanks a lot, i did what you tell me,but i am still getting this msg. Warning: Unable to create new entry, caught: "javax.ejb.CreateException", message is: "Error creating EntityBean: General error: Unknown database 'addressbookdb'". obviusly i do not know how tell to orion server that it must create de addresbookdb, not search it any ideas ? -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de [EMAIL PROTECTED] Enviado el: lunes, 19 de febrero de 2001 13:48 Para: Orion-Interest Asunto: Re: NOVICE Question about orion and mysql Hi Andres, I have some custom CMP EJBs working with MySQL 3.23. My datasource.xml entry is similar to yours. A couple thoughts: 1. Make sure you have removed the attribute "ejb-location" from the hsql datasource. 2. Make sure you have a schema for mysql in the orion/config/database-schemas directory. Here is the one I use (named mysql.xml): -- ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-schema name="Mysql" not-null="not null" null="" primary-key ="primary key" type-mapping type="java.lang.String" name="varchar(255)" / type-mapping type="int" name="integer" / type-mapping type="float" name="float" / type-mapping type="double" name="double" / type-mapping type="byte" name="smallint" / type-mapping type="char" name="char(1)" / type-mapping type="short" name="integer" / type-mapping type="boolean" name="bit" / type-mapping type="java.util.Date" name="datetime" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="text" / /database-schema -- Good luck, Doug "Andres Garcia Hourcade" [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent by: cc: owner-orion-interest@orionSubject: NOVICE Question about orion and mysql server.com 02/16/2001 02:31 PM Please respond to Orion-Interest i changed orion-primer-cmp to use mysql 3.22 the mysql server is up and running, the app. works fine with hsql, but in mysql i have to create database and tables manually, because it cannot auto-create them what else may i config, or where i could find any tips ? thanks in advanced attached config/datasource.xml data-source
EJB 2.0 CMP features of Orion
Has anyone tried out OR-mapping of 1-1 relationships and 1-n relationships between two EJBs? I have seen Jim Archer's fine tutorial about EJBs having a 1-1 or 1-n relationship to a *dependent object*, but is the same thing possible between two EJBs? I know the web site states that Orion 1.2.9 does NOT support n-m relationships, but is 1-1 or 1-n supported in the latest release, and is the support for 1-1 and 1-n in accordance with the specification? Randahl
Table not found in Orion Primer CMP example
Hi, I have a problem with the Orion Primer CMP example. It does run and all that, but when a click on the 'Open the adressbook' link in the first jsp, then i get the next error: Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all AddressBook entries. com.evermind.server.rmi.OrionRemoteException: Database error: Table not found: ADDRESSBOOK_EJB_ADDRESSENTRY in statement [select addressbook_ejb_AddressEntry.name, addressbook_ejb_AddressEntry.address, addressbook_ejb_AddressEntry.city from addressbook_ejb_AddressEntry]; nested exception is: java.sql.SQLException: Table not found: ADDRESSBOOK_EJB_ADDRESSENTRY in statement [select addressbook_ejb_AddressEntry.name, addressbook_ejb_AddressEntry.address, addressbook_ejb_AddressEntry.city from addressbook_ejb_AddressEntry] I guess the problem is the ADDRESSBOOK_EJB_ADDRESSENTRY taqble does not exist. I presume this taqble has to be automatically created somehow. Anybody any idea why this hasn't happened? I do have the correct database directory in the ORION dir and orion also creates the defaultdb as mentioned in the data-sources.xml Or should I create the table myself? Any help is welcome, Thanks, Valentijn Scholten
Re: Debugging and orion
From my experience the fastest and most reliable debugging in EJB world is System.out.println... - Original Message - From: Julian Richardson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, February 21, 2001 11:17 AM Subject: Debugging and orion Hi, What tools / IDEs are people out there using to develop EJBs for use with Orion? At the moment we (as a project team, rather than company) are trying to standardise on an app server and IDE to use, requirements being the usual: cost speed flexibility resource usage debugging support from the IDE - I saw that someone mentioned using Kawa with Orion on the orionsupport website; has this combination been used by many people? (I'm new to the app server world, although I've been doing server-side Java work for several years now - I'm not used to environments where it's even possible to use an integrated debugger, but others on the team say it's necessary :-) Comments about the speed / flexibility / resource usage of Orion are welcome too, from the website it looks pretty slick and the documentation looks good, but time will tell... also if there's any major snags with orion in terms of things that the current version doesn't do correctly or doesn't implement... cheers Jules --
RE: EJB 2.0 CMP features of Orion
Title: RE: EJB 2.0 CMP features of Orion 1:1 and 1:N between two ejb's works fine. The only difference is in the relationship tags where you describe the second bean in the relationship. For a dependent: multiplicitymany/multiplicity role-source dependent-nameAddress/dependent-name /role-source For an ejb: multiplicitymany/multiplicity role-source ejb-nameContact/ejb-name /role-source The dependent-name and ejb-name should obviously match the names of the dependent-name and ejb-name of the dependent and ejb definitions (respectively). -tim -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 7:48 AM To: Orion-Interest Subject: EJB 2.0 CMP features of Orion Has anyone tried out OR-mapping of 1-1 relationships and 1-n relationships between two EJBs? I have seen Jim Archer's fine tutorial about EJBs having a 1-1 or 1-n relationship to a *dependent object*, but is the same thing possible between two EJBs? I know the web site states that Orion 1.2.9 does NOT support n-m relationships, but is 1-1 or 1-n supported in the latest release, and is the support for 1-1 and 1-n in accordance with the specification? Randahl
Re: your mail
The Java Developers Journal (JDJ) has an example in last months edition, I think this example covers using message beans as a logging tool. Justen STepka On Wed, 21 Feb 2001, Chia, Pei Yen wrote: Hi, I'm trying to look for examples on MessageDrivenBean and i can't seem to find it at the orion website. Also, the latest downloadable version of orion server from "www.orionserver.com" is version 1.4.5. I gathered from the mailing list that most of you are already using version 1.4.7 ... Can someone please help me on this. Thank you. Regards, Pei Yen
Got SecurityException, bu shouldn't it be NamingException?
I was looking up a bean using: JndiContext.lookup("ContactManager"); And I was getting a security exception: User Admin does not have permissions to ContactManager. However, there is no ContactManager in the jndi tree. The bean name in the tree was ContactManagerHome. I changed it and it worked fine. The question is: Shouldn't I get a NamingException instead of a SecurityException? - Eduardo Estefano Integrated Information Systems 480.317.8549
No influence on CMP 2.0 getter setter methods - a feature or a bug?
I have been reading the CMP 2.0 specification and I think it is simply great! Still, I am a bit surprised that the bean developer has no control over what happens when a field is set. Imagine an AccountBean, for instance: public abstract class AccountBean extends EntityBean { //implemented by the persistence manager public abstract Float getBalance(); //implemented by the persistence manager public abstract void setBalance(Float balance); } What if I wanted to do something useful when the balance was set? Say, I wanted to add the account to a list of surveilled accounts if a negative balance was set... it seems I cannot do that because the container implements the setBalance() method for me. And I cannot just declare a setBalance() method myself because I need the container's implementation or I will not be able to store the balance. H... it seems this is going to leave me with something like public abstract class AccountBean extends EntityBean { public abstract Float getBalance(); public abstract void setBalance(Float balance); public void setBalanceAndDoWhatHasToBeDoneWhenYouSetBalance(Float balance) { //check if balance is negative and take action ... setBalance(balance); } } Now I have _no_ guarantee that nobody will accidently call the original setBalance() method, thereby circumventing my little security system, which was supposed to check for a negative balance. But, hey, I thought, then I will just declare the original setBalance() as protected - unfortunately that is not allowed by the specification. I would r e a l l y like to hear from anybody who knows a solution to this. Any comments would be most welcomed. Randahl
Re: restarting orion
Port 90 looks wrong - you should use the admin port not the http port (just leave out :90) java -jar admin.jar ormi://localhost admin mypassword -restart Peter Peltonen wrote: When I give the command "java -jar admin.jar ormi://localhost:90 admin mypassword -restart" I get the error message: Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header Here's some background of my fresh installation: I've installed Orion 1.4.5 on RedHat Linux 6.2 that has j2sdkee-1_2_1 and jdk1.2.2 installed on it. I followed the instructions in Installation Guide and unpacked Orion to /usr/src/orion as root. I ran the command "java -jar orion.jar -install" which asked for an admin password. I gave it a one. I started Orion with "java -jar orion.jar". I tried and I can access the server with my web browser. What's wrong, why won't my Orion restart? Regards, Peter -- David Smith Software Development Manager e-Net Software Ltd [EMAIL PROTECTED]
RE: Error Page
Or set the return status code backto 200 since I really don't see a reason why I would like to return 500 if my error page will be probably shown. Conrad -Original Message-From: SureTicket.com [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 21, 2001 1:20 PMTo: Orion-InterestSubject: RE: Error Page To be honest i think its because of IE's friendly error messages. You can turn them off and try again. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]Sent: Wednesday, February 21, 2001 1:15 PMTo: Orion-InterestSubject: Error Page Hello, I placed an error page tag in the web.xml in order to show a warning when any kind of error occurs. However, that works fine with Netscape but not with Internet Explorer. Does anyone have any idea? The following is the error page tag that I put. error-page error-code500/error-code exception-typejava.lang.Exception/exception-type locationerror_500.jsp/location /error-page I tried to put the whole URL in the location field, but it was of no use. Please anyone.. I really appreciate all your clues in advance. Simon
RE: EJB Clustering -- ANYONE? [Urgent!]
Dylan, I'm a new user so bear with me...Did you check http://www.orionsupport.com ? The last entry was 15 February 2001. Read the Tuesday 13th Dec "Into the Future" entry. It has some other notes and yes, I find it strange that a company is not responding about an offer of money. I've thought about going to Sybase for their products. The documentation I've seen is strange and does not conform to what I've become to believe is a normal application server (weird names for products like "Jaguar CTS" doesn't help either ; at least Oracle has 09iAS). I have not tried clustering using Orion or any other server. Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dylan Parker Sent: Wednesday, February 21, 2001 1:33 PM To: Orion-Interest Subject: EJB Clustering -- ANYONE? [Urgent!] Importance: High Hello, all. My company is about to drop Orion. The documentation issues, the dead website, the documentation issues, the absence of company responses, the documentation issues... We've contacted them asking where to send our money. Nothing back. In one last futile attempt to keep Orion afloat in my company a little longer, can anyone provide me with the following information? How does one do EJB Clustering with Orion? Has anyone made this work? Can anyone give some background on the configuration steps? If I don't hear anything... then JRun, here we come. Thanks, Dylan Parker
How to integrate with Sun's java message queue ?
Hi, Does anyone have experience with integrating Sun's java message queue with orion server? and how? Thanks, Songbo email: [EMAIL PROTECTED]
Re: No influence on CMP 2.0 getter setter methods - a feature or abug?
You don't want to put logic in Entity beans. Entity beans should only serve as models for the database. Put the logic in the Session beans that will call setBalance and any other methods you have. You can make all those methods one atomic transaction by declaring it in the descriptor as well. - Brian Chan On Wed, 21 Feb 2001, Randahl Fink Isaksen wrote: I have been reading the CMP 2.0 specification and I think it is simply great! Still, I am a bit surprised that the bean developer has no control over what happens when a field is set. Imagine an AccountBean, for instance: public abstract class AccountBean extends EntityBean { //implemented by the persistence manager public abstract Float getBalance(); //implemented by the persistence manager public abstract void setBalance(Float balance); } What if I wanted to do something useful when the balance was set? Say, I wanted to add the account to a list of surveilled accounts if a negative balance was set... it seems I cannot do that because the container implements the setBalance() method for me. And I cannot just declare a setBalance() method myself because I need the container's implementation or I will not be able to store the balance. H... it seems this is going to leave me with something like public abstract class AccountBean extends EntityBean { public abstract Float getBalance(); public abstract void setBalance(Float balance); public void setBalanceAndDoWhatHasToBeDoneWhenYouSetBalance(Float balance) { //check if balance is negative and take action ... setBalance(balance); } } Now I have _no_ guarantee that nobody will accidently call the original setBalance() method, thereby circumventing my little security system, which was supposed to check for a negative balance. But, hey, I thought, then I will just declare the original setBalance() as protected - unfortunately that is not allowed by the specification. I would r e a l l y like to hear from anybody who knows a solution to this. Any comments would be most welcomed. Randahl
RE: Get me off this subscription!!!!
did you try the website, enter your email and press submit? it worked fine for me when I switched jobs and had to use a new email. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Johann Sent: Wednesday, February 21, 2001 12:43 PM To: Orion-Interest Subject: Get me off this subscription I have tried all your recommendations to get off your subscription list. Come on guys! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
Bowser back buttons and jsp
This question doesn't really apply to the webserver in general. I have developed an ecommerce application using java beans and jsp. Unfortunately, during qa testing, one problem keeps coming up. If you click the back button on the browser and ignore the navigation built into the system, you encounter errors. I've researched if there was a way to disable the browser navigation options via javascript or some other way but I found that this is not really possible. What I was wondering is how do other java professionals handle this problem? Has anyone ever ran into this?
RE: Get me off this subscription!!!!
I just tried the 'unsubscribe' form on the website and it even sent me a nice assuring comfirmation that I had been unsubscibed, no good. I guess I have to have the mail blocked or set up a new email acct. -Original Message- From: Allen Fogleson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 12:32 PM To: Orion-Interest Subject: RE: Get me off this subscription did you try the website, enter your email and press submit? it worked fine for me when I switched jobs and had to use a new email. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Johann Sent: Wednesday, February 21, 2001 12:43 PM To: Orion-Interest Subject: Get me off this subscription I have tried all your recommendations to get off your subscription list. Come on guys! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
restarting orion
When I give the command "java -jar admin.jar ormi://localhost:90 admin mypassword -restart" I get the error message: Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header Here's some background of my fresh installation: I've installed Orion 1.4.5 on RedHat Linux 6.2 that has j2sdkee-1_2_1 and jdk1.2.2 installed on it. I followed the instructions in Installation Guide and unpacked Orion to /usr/src/orion as root. I ran the command "java -jar orion.jar -install" which asked for an admin password. I gave it a one. I started Orion with "java -jar orion.jar". I tried and I can access the server with my web browser. What's wrong, why won't my Orion restart? Regards, Peter
Applet BEAN JNDI Errors
Make it stop :( I'm getting the following error trying when I do a new InitialContext(env) in my applet. After fighting thru security issues and whatnot, I not have the following error: Opening http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administration/ApplicationServerAdminstrator.class Connecting http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administration/ApplicationServerAdminstrator.class with no proxy *** Error in my applet follows * javax.naming.NamingException: Error reading application-client descriptor: Error looking up EJBHome: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at TestApplet2.jButton1_actionPerformed(TestApplet2 *Notice* that the class ApplicationServerAdminstriator.class is *misspelled* In my application log I get a 404 (not found) when I try to do a get of the class that *SHOULD* be: com.evermind.server.administrator.ApplicationServerAdministrator NOT com.evermind.server.administrator.ApplicationServerAdminstrator (missing an I??) Is this what's causing the NamingException and why I can't find the bean? It appears to be deoplyed correctly if I use the console to see my application. *Does anyone have an applet calling a bean via jndi that works with orion?* I've been working on this for 1 week and have been fighting thru various errors. Ag The pain the pain. Thanks for any help in advance. -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | / *** -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | / begin:vcard n:McManus;John tel;home:303-744-6818 tel;work:303-734-6002 x-mozilla-html:TRUE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:John McManus end:vcard
RE: No influence on CMP 2.0 getter setter methods - a feature or abug?
I frequently hear this mantra repeated, and while it is largely a good idea, I have difficulty seeing why it should be adhered to dogmatically. There is value in being able to define side-effects of setters and getters or minimal bean-specific business logic. As a trivial example I offer my Member entity which publishes getLastLoginDate(), getLoginCount(), and a loggedIn() method which updates the previous two fields. Creating a session bean for this purpose is just a waste of effort and processing time. An example of a simple (and valuable) side-effect is a print statement to trace bean access while debugging. As someone already mentioned in response to poster's original question: You can do what you described safely because clients only see the remote interface view of the bean, not the implementation object view. If you chose to call the persistence field "internalBalance" and avoided putting the setter/getter in the remote interface, you could then be sure that everyone will call the get/setBalance method you implement. But realize that sophisticated business logic does belong in session beans. My main guideline is "does this affect more than the single entity?" If so, then definitely it should be a session bean. Otherwise, the answer is still maybe :-) And in any case, the client view is of session beans only. For instance, the Member.loggedIn() method only gets called from the ejbCreate of my MemberSession stateful SB facade. Jeff -Original Message- From: Brian Wing Shun Chan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 12:30 PM To: Orion-Interest Cc: Jens Peter Grosen; Simon Anker Christiansen; Kim Jrgensen Subject: Re: No influence on CMP 2.0 getter setter methods - a feature or abug? You don't want to put logic in Entity beans. Entity beans should only serve as models for the database. Put the logic in the Session beans that will call setBalance and any other methods you have. You can make all those methods one atomic transaction by declaring it in the descriptor as well. - Brian Chan On Wed, 21 Feb 2001, Randahl Fink Isaksen wrote: I have been reading the CMP 2.0 specification and I think it is simply great! Still, I am a bit surprised that the bean developer has no control over what happens when a field is set. Imagine an AccountBean, for instance: public abstract class AccountBean extends EntityBean { //implemented by the persistence manager public abstract Float getBalance(); //implemented by the persistence manager public abstract void setBalance(Float balance); } What if I wanted to do something useful when the balance was set? Say, I wanted to add the account to a list of surveilled accounts if a negative balance was set... it seems I cannot do that because the container implements the setBalance() method for me. And I cannot just declare a setBalance() method myself because I need the container's implementation or I will not be able to store the balance. H... it seems this is going to leave me with something like public abstract class AccountBean extends EntityBean { public abstract Float getBalance(); public abstract void setBalance(Float balance); public void setBalanceAndDoWhatHasToBeDoneWhenYouSetBalance(Float balance) { //check if balance is negative and take action ... setBalance(balance); } } Now I have _no_ guarantee that nobody will accidently call the original setBalance() method, thereby circumventing my little security system, which was supposed to check for a negative balance. But, hey, I thought, then I will just declare the original setBalance() as protected - unfortunately that is not allowed by the specification. I would r e a l l y like to hear from anybody who knows a solution to this. Any comments would be most welcomed. Randahl
RE: No influence on CMP 2.0 getter setter methods - a feature or a bug?
Title: RE: No influence on CMP 2.0 getter setter methods - a feature or a bug? This is why the session-bean-wrapping-entity-bean pattern is so popular. Do not implement business logic inside your entity bean. Instead, have your client perform operations to the data via a session bean. The session bean can test for valid data, constraints, etc. before updating the entity. I disagree. the validation he's talking about will be fine in an entity bean. Don't see any reason for putting that in a session bean (see earlier posting). You're right. Personally, I wouldn't expose the get/set methods to a client due to the fact they may actually use them. This would slow the system down if they did it too much. Considering my users are ASP writers who took one JSP class and don't know RMI from a hole in the ground, I would suspect they would abuse the entity bean. I prefer to have a builder create a View pattern for me which I give to a session bean. The session bean would call the setters/getters within the container to minimize RMI load. My personal preference it to perform all validation in a session bean; to me these are business rules and don't belong in the entity. I suppose there are cases where some validation may not be considered a business rule and placed in the entity instead. The consequence of this is that entity beans have become so thin, that JDO is becoming a popular (light-weight) Have you read the JDO spec? I personally find parts of it rather ugly, especially the query part. If some issues are clarified in the CMP2.0 spec I would prefer take that in an EJB environment. Apart from that the JDO spec seems to be moving on rather slowly, despite the recent draft but of course YMMV. Haven't read Sun's JDO spec - I looked at another third party implementation. I didn't like it, but I wouldn't rule it out as being a good implementation. I'm talking out my ass here so I better stop. :) -tim
Get me off this subscription!!!!
I have tried all your recommendations to get off your subscription list. Come on guys! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/