Sharing sessions among different applications?

2001-03-20 Thread Brian Wing Shun Chan

Is it possible to share session objects among different applications? I've
tried using the shared="true" attribute in web-site.xml, but with no
success.

Matt Krevs said that he got it to work when the "name" attribute was the
same, but that only works if you're hosting the same application on
multiple parts of the site. What if soemone wants to host multiple
applications across multiple hosts and want to share session information
that way?

- Brian Chan





RE: EJB Clustering -- ANYONE? [Urgent!]

2001-02-22 Thread Brian Wing Shun Chan

I've worked with all of the other EJB Servers (Enhydra, JBoss, Jonas,
etc). I do find the OrionServer to be far better (nice complex O-R
mapping, web and app server in one, etc).

For documentation, I refer to www.orionsupport.com, which is doing a great
job.

- Brian Chan


On Thu, 22 Feb 2001, Kemp Randy-W18971 wrote:

 The problem is that the Orion team is great at building a product, but need
 some lessons on marketing it.  Very few people on the list -- myself
 included -- say anything really negative about the product.  But I (and many
 others) have strong reservations about the documentation.  Granted, if you
 have worked with another EJB server, or have the patience to use a trial and
 error approach with the existing documentation, you can get things to work.
 But it is not how to really market a product.  Has anyone from Orion ever
 looked at the Jboss (www.jboss.org) or Jonas (www.evidian.com/jonas)
 documentation?  While it does not compare to products like Oracle or Jrun,
 it is getting better with each new release.  I am trying to implement some
 helpful suggestions to Orion to increase their marketing presence, and give
 them some leverage over other commercial class contenders, like Unify Ewave,
 and the open source products (Enhydra, Openejb, Jboss, Jonas).

 -Original Message-
 From: Ray Brown [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 6:53 PM
 To: Orion-Interest
 Subject: 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










Re: No influence on CMP 2.0 getter setter methods - a feature or abug?

2001-02-21 Thread Brian Wing Shun Chan

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: NOVICE Question about orion and mysql

2001-02-20 Thread Brian Wing Shun Chan

Orion doesn't create databases automatically.

Orion does create tables automatically.

- Brian

On Tue, 20 Feb 2001, Andres Garcia Hourcade wrote:


 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 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" /