SV: O/R mapping

2001-01-24 Thread Magnus Rydin
Title: SV: O/R mapping



That 
is, I fully agree that this is important when working with existing 
tables.
WR

  -Ursprungligt meddelande-Från: Magnus Rydin 
  Skickat: den 23 januari 2001 23:33Till: 
  Orion-InterestÄmne: SV: O/R mapping
  Daniel, I fully agree with you from 
  your POV. WR 
   -Ursprungligt meddelande-  Från: Daniel Cardin [mailto:[EMAIL PROTECTED]] 
   Skickat: den 23 januari 2001 10:50  Till: Orion-Interest  Ämne: RE: O/R 
  mapping   
   I'm a CMP fanatic too :) But keep in mind some of 
  us have to deal with  existing models that have 
  been created in the  "traditionnal" RDBMS fashion. 
  It's good to have control on the way CMP  will 
  work with Orion.   We have solved the O-R mapping problem by having a code 
  generator  generate first-cut beans from the 
  database. Then  we use a heavily modified version 
  of Rickard Öberg's java doclet to  generate the 
  home interface, the remote interface  a data 
  structure for quick access to data, the ejb-jar.xml AND  orion-ejb-jar.xml which allows fine-grained control on 
   the tables and attributes used for the mapping through 
  the use of  javadoc tags.  For example, all CMP fields are marked with the tag @cmp-field. 
  a  @cmp-table tag will indicate (through the 
  orion-ejb-jar.xml file)  what underlying table is 
  needed for the bean. Similarly @cmp-attribute  
  indicates the doclet what underlying attribute we are  mapping to. 1-N and N-M relationships are also supported 
   through doclet  
  tags.   This 
  allows a quick regeneration of all source files from one master 
   bean source file. It also enables, through modifications 
  to the  doclet, generating other vendor specific 
  files like jboss.xml,  inprise-ejb.xml etc. 
As a bonus, 
  the doclet generates a façade object that allows  
  a connected  (via remote methods) or disconnected 
   (via the data object) view of an entity's 
  data.   This was 
  a little off-topic, but the point I'm trying to make is that  when existing schemas are used, some knowledge on the 
   mapping process can help.   Cheers   -Message d'origine- 
   De : Magnus Rydin [mailto:[EMAIL PROTECTED]] 
   Envoyé : 23 janvier, 2001 08:51  À : Orion-Interest  Objet : SV: O/R 
  mapping   
One of the things I 
  like best with EJB is that I dont have to  care 
  about  how my objects are stored (Yes, im a CMP 
  fanatic).   So my 
  personal contribution to the subject must be:  who 
  cares how many tables are used 'back there' ? :)  
-Ursprungligt meddelande- 
Från: Daniel Cardin [ mailto:[EMAIL PROTECTED] 
   mailto:[EMAIL PROTECTED] ] 
Skickat: den 23 januari 2001 05:01 
Till: Orion-Interest   Ämne: RE: O/R mapping   
  I'd like 
  to point out that a third table is only needed for a N-M   (many-to-many) relationship.  
   In the case of a 1-N relationship, simply have a foreign key to the 
master table.  
 For example : Customer object refers to a 
  Country object   you a Customer will only have 
  one Country object. you do NOT need a   third 
  table to map this.   Simply add a field in 
  Customer that contains the foreign key to the  
   Country object. The EJB 2.0 mapping is Simple  
   
Customer ...  
 public abstract Country getCountry(); 
public abstract void setCountry(Country 
  aCountry); 
  and in Country
   public abstract Collection getCustomers();  
   public abstract void setCustomer(Collection customers); This is fully supported by 
  Orion, which will populate the  collection 
object automatically. Cheers, Daniel   -Message d'origine-   
  De : Tony J Brooks [ mailto:[EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED] ] 
Envoyé : 22 janvier, 2001 11:27 
À : Orion-Interest   Objet : RE: O/R mapping   
  
Hi Theis,   
As much as I can remember, there *is* - 
  definitely - a need for an   intermediate 
  third table to contain the mapping  
  information. By usingthis   third table, you 
  eliminate data replication/redundancy in the   
  other two   tables. To my knowledge this is a 
  common technique. ER tools  typically 
  createsuch 
an intermediate table for you when you 
  select a relationship to be   'zero/one/many 
  to many'. Whether you see that on your diagram is   another   matter, but you 
  will definitely see it in your DB ;)   
Apologies if I have misunderstood your 
  question. 
  Bye for now,   Tony. -Original Message- 
From: [EMAIL PROTECTED] 
[ mailto:[EMAIL PROTECTED] 
   mailto:[EMAIL PROTECTED] 
  ]On Behalf Of   [EMAIL PROTECTED] 
Sent: 22 January 2001 15:10   To: Orion-Interest   Subject: 
  O/R mapping
 Hi!   
I have been reading the complex-or example 
  and ploughed   through the atm 
example. In the complex-or example it is 
  stated that  collections are   mapped   to an another table 
  and that the reason for this is  

RE: O/R Mapping

2001-01-24 Thread theis . meggerle

Hi again!

The associative table has its pro and cons. As severel of you pointed out,
the use of a associative table makes the tables a lot cleaner. But as our
complex world seems to be full of multiplicity, I personally would think
twice, when the domain model is large. I did a little test to measure the
difference.

I created 100 orders with 10 orderlines each, i.e. 1000 records.
With an associative table this took: approximately 47 seconds.
Without it took: 27 seconds.

In the second test I had to make a workaround (I normalized the beans), so
the test could be misleading. But it takes me back to my original problem.
When Orion autocreates table it automatically create a associative table,
which I don't want. Naturally I want the primary key of the one side to be
placed as a foreign key in the many side. My ejb-jar.xml looks like this:

ejb-jar

 enterprise-beans

  entity
   descriptionOrder holds a number of Orderlines./description
   display-nameJOrder/display-name
   ejb-nameJOrderOne/ejb-name
   homeOrderHome/home
   remoteOrder/remote
   ejb-classOrderBean/ejb-class
   persistence-typeContainer/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantTrue/reentrant
   cmp-version2.x/cmp-version
   cmp-field
field-nameorderId/field-name
   /cmp-field
   cmp-field
field-nameorderLines/field-name
   /cmp-field
   primkey-fieldorderId/primkey-field
  /entity

  entity
   descriptionHolds the ordered items of a customer/description
   display-nameJOrderLine/display-name
   ejb-nameJOrderLineOne/ejb-name
   homeOrderLineHome/home
   remoteOrderLine/remote
   ejb-classOrderLineBean/ejb-class
   persistence-typeContainer/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantTrue/reentrant
   cmp-version2.x/cmp-version
   cmp-field
field-nameorderLineId/field-name
   /cmp-field
   primkey-fieldorderLineId/primkey-field
  /entity
 /enterprise-beans
 relationships
  ejb-relation
   descriptionOrder-OrderLines/description
   ejb-relation-nameOrder-Orderlines/ejb-relation-name
   ejb-relationship-role
descriptionOrder has Orderlines/description

ejb-relationship-role-nameOrder-has-Orderlines/ejb-relationship-role-name
multiplicityone/multiplicity
role-source
 ejb-nameJOrderOne/ejb-name
/role-source
cmr-field
 cmr-field-nameorderLines/cmr-field-name
 cmr-field-typejava.util.Collection/cmr-field-type
/cmr-field
   /ejb-relationship-role
   ejb-relationship-role

ejb-relationship-role-nameOrderLines-belongsto-Order/ejb-relationship-role-name
multiplicitymany/multiplicity
role-source
 ejb-nameJOrderLineOne/ejb-name
/role-source
   /ejb-relationship-role
  /ejb-relation
 /relationships
 assembly-descriptor
 /assembly-descriptor
/ejb-jar

So, what is the solution to this problem? Is there any faults in the xml file above? 
Or is there another solution to my problem?

I also read that the bug #140, maintaining a bidirectional 1-n relation, is fixed. 
This is of course not a bidirectional relationship, but if Orion
could
handle this wouldn't it be naturally to suppose that it could handle unidirectional 
relationships.

Regards, Theis.






EJB 2.0 support in orion 1.4.5

2001-01-24 Thread Stanislav Bernatsky

Hello.
It seems that MessageDrivenBeans don't work in orion 1.4.5.
All fine in orion 1.4.4

Best regards,
Stanislav Bernatsky





R: EJB 2.0 support in orion 1.4.5

2001-01-24 Thread Montebove Luciano

Inserted yesterday in bugzilla as bug #260

Luciano

-Messaggio originale-
Da: Stanislav Bernatsky [mailto:[EMAIL PROTECTED]]
Inviato: mercoledÍ 24 gennaio 2001 11.03
A: Orion-Interest
Oggetto: EJB 2.0 support in orion 1.4.5


Hello.
It seems that MessageDrivenBeans don't work in orion 1.4.5.
All fine in orion 1.4.4

Best regards,
Stanislav Bernatsky





Re: java.lang.OutOfMemoryError in Product Application

2001-01-24 Thread Sven van ´t Veer

This is a known bug. A workaround was posted a while back. I have since 
moved to another company and dont have an installation of orion here so 
Im going from memory here. there should be some class in the orion API 
like com.evermind.Administrator which has a function flush() (static I 
believe) which flushes theentities from memory.

Sven

Globetrot Communications wrote:

 Could it be that Orion does not passivate entity
 beans, thus running out of virtual memory? I was able
 to restart the ProductClient and continue adding to
 the table.
 
 Does anybody know of a solution better than having to
 stop and restart?
 
 Thanks
 
 
 
 
 --- Globetrot Communications [EMAIL PROTECTED]
 wrote:
 
 I am populating a postgreSQL database with "Product"
 entity beans. I get a java.lang.OutOfMemeoryError
 After adding about 200K entries. Am I getting this
 error because all these entity beans stay in memory?
 Is there a work-around it besides increasing the -mx
 option value? How can one to create number of
 objects
 limited only by the disk-space?
 
 Thanks for your help.
 
 while (true)
  {
  // Create a new Product and narrow the
 reference.
  Product product =
 (Product)PortableRemoteObject.narrow(home.create(i),
 Product.class);
  name = "product"+i
  cost = i;
  product.setName(name);
  product.setPrice(cost);
  
  
  }
 
 Satish
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great
 prices. 
 http://auctions.yahoo.com/
 
 
 
 =
 __
 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other 
charges
 4 cents Domestic calls with no fees:
 5 cents per minute International calls also available
 http://globetrot.hypermart.net
 e-mail: [EMAIL PROTECTED]
 __
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices. 
 http://auctions.yahoo.com/
 
 





RE: O/R mapping

2001-01-24 Thread Dumitru Sbenghe

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Sean P.
 McNamara
 Sent: mardi 23 janvier 2001 20:41
 To: Orion-Interest
 Subject: RE: O/R mapping



 While I agree that the 3-table approach is not necessary to do 1-M
 mappings, and that there are performance reasons that make the 2-table
 method attractive, the 3-table method has the benefit that it doesn't
 allow the fact that the object in the M (many) position to intrude
 upon it's table structure.  While this is perhaps not completely
 germaine to EJB (I'm not so familiar with the details of the spec,) we
 have found value in the 3-table approach in general O/R use.

I guess this is a good design point; But if the client come and say
way this is so slow; I say because it use a join, ..., and this is slower
than ... ugly;


 If you make use of the 3-table method, the table that contains the
 row-data is then only specific to the OBJECT that is stored in the
 relationship.  For instance, if I have:

COMPANY --- EMPLOYEE
1 *

 in one application, and

CLIENT  EMPLOYEE
   1  *

 in another application, we are not forced to deal with extraneous
 columns relating the EMPLOYEE to either a COMPANY or a CLIENT (I
 realize a better model might be to have company and client both
 subclasses of EMPLOYER, or some such thing.)  This example is
 perhaps even better if we consider the use of EMPLOYEE alone without
 it's COMPANY or CLIENT relationship.

 Using the third table for the mapping keeps the individual component
 entities well isolated, which can be a good thing.

 Don't know if that was clear, but we've seen a use for the overhead of
 the 3rd table.
Yes, in your case is clear; but if I don't have this case, I don't care
about that;

The speed is very important; I love CMP; Is the most useful thing from EJB;

I believe a ejb container can do more for CMP; He can have options for
example, for this relation 1-m use only 2 tables (how I guess is very
clear);
or if I do a find, for this find use lazy loading for some cmp-field, don't
use ll
for another cmp-field; If I do a find with a lot of records returned, get
from
the database in piece of 30 records ( or something like that);


 Dumitru Sbenghe writes:
   SV: O/R mappingI care; If you store a 1-m relation in 3
 tables, to get the
   corresponding data from the third table
   for a PK from the first table, you must join the second table
 with the third
   table;
   A join is slower than a simple select;
  
   If you store a 1-m relation in only two table (the normal way)
 , you do that
   with only a simple select.

 ... Someone else previously ...
 
  I'd like to point out that a third table is only needed for a N-M
  (many-to-many) relationship.
  In the case of a 1-N relationship, simply have a foreign key to the
  master table.

 --
 Sean P. McNamara  [EMAIL PROTECTED]
 SOMA Technologies, Inc. [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]





RE: installing Tomcat 3.1 src

2001-01-24 Thread Kemp Randy-W18971



I 
think youare addressing your questions to the wrong list. I would 
recommend subscribing to the Tomcat list at jakarta.apache.org, and look under 
Tomcat, and address their mailing list. I also notice you have jboss in 
your classpath, so I would recommend looking at www.jboss.org, and subscribing to their mailing 
list. When I have Tomcat and Jboss questions, I find their lists very 
useful for answering them. When I have Orion questions, this is a great 
list. If you have EJB questions, either Jboss or Orion is great. I 
would be highly surprised if the Tomcat list doesn't address the Tomcat 
question.

  -Original Message-From: faisal 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 
  2001 3:29 PMTo: Orion-InterestSubject: installing Tomcat 
  3.1 src
  Hi
  Does anybody knows what makes Tomcat 3.1 refuse 
  to be called by the browser I installed it on win 98. Everything went smooth 
  but whenever
  I double click on startup.bat I get 
  this:
  Starting tomcat in new windowUsing classpath: 
  ..\classes;..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;\lib\tools.jar;c:\jboss\client\jboss-client.jar;c:\jboss\client\jnp-client.jar;c:\jboss\lib\ext\ejb.jar;c:\jboss\examples\interest\interest-client.jar;C:\PROGRAM 
  FILES\JAVASOFT\JAXP1.0.1\JAXP.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR...and 
  nothing happens after
  I increased the window env but it still running 
  in the background
  I just can't get it
  Can u please help
  Faisal


RE: Memory Leak

2001-01-24 Thread Thomas Pridham



I have 
also experienced the same problems, not yet with Orion but with Bluestone. 
The problem is the same no matter what application server you are using. 
You must understand that the Application Server is "open-ended". That 
means that the app server will continue to accept new session requests until the 
memory is exhausted. If all of the sessions are "active", then the gc 
cannot reclaim any memory. That is why people run clusters. Usually, 
for high traffic websites with a high session timeout setting, people run 
multiple app servers to handle the load.

If you 
do some testing, you will see that based on a session timeout setting of xx 
minutes, Orion can handle a maximum of x sessions.

At 
another company I worked at, we found this out the hard way (after spending 
$200,000.00 for the Bluestone server).

My 
suggestions to you are:
1. Look to see if you can lower the session 
timeout value.
2. Do some testing to see how many concurrent 
sessions Orion can handle before running out of memory (this ismainly 
based on the amount of data put into session).
3. Consider running multiple app servers 
(cluster).

Hope 
this helps...

Regards,
Tom 
Pridham Software Engineer 
Computer Management Consultants 
6951 Pistol Range Road Tampa, FL 33536 813-935-7332 
ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com 



  -Original Message-From: Dan DiCesare 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 
  2:59 PMTo: Orion-InterestSubject: Memory 
  Leak
  
  Hello,
  I am using JSP useBean tags to invoke java beans. 
  In my java beans I create a reference to my EJB's. In my JSPI scope the 
  bean as session. In other words the syntax looks as follows:
  jsp:useBean id="fooBean" scope="session" 
  class="FooBean" /
  What we are noticing is that every 
  time the page is called, a certain amount of memory is used by each session as 
  expected by the session scope. However, when the session is complete, the 
  memory is not released by the JVM. The end result is that we need to stop 
  Orion server and restart to clear the JVM memory usage. Can anyone advise as 
  to what we need to do. 
  
  Thanks
  -Dan
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


Re: Composite PK classes

2001-01-24 Thread Peter Pontbriand

We've been using composite primary key classes since the beginning of our
J2EE project. Notably, a number of our Entity EJBs use a primary key
composed of both an identity String and a Locale. Works perfectly for us.
What's the problem you are having?

P.Pontbriand
Canlink Interactive Technologies Inc.

- Original Message -
From: "Jim Archer" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Cc: "Daniel Cardin" [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 3:53 PM
Subject: Re: Composite PK classes


 Hi Daniel...

 I believe I have also been unable to make this work. Let me double check.
I
 don't recall the exact problem I had but I think there is one. I'll
check...

 Jim


 --On Tuesday, January 23, 2001 1:58 PM -0500 Daniel Cardin
 [EMAIL PROTECTED] wrote:

  Has anyone managed to build EJB 2.0 applications using Orion, CMP and
  composite primary keys
  using a PK class ?
 
  I believe I have followed all recommandations but can't seem to make it
  work.
 
  Cheers,
 
  Daniel











RE: Memory Leak

2001-01-24 Thread Tim Drury
Title: RE: Memory Leak






You may want to look into java.lang.ref.SoftReferences.
When you assign a soft reference to an object, it is 
guaranteed to be collected before an out of memory
exception is thrown.


-tim



 -Original Message-
 From: Mike Clark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 23, 2001 5:38 PM
 To: Orion-Interest
 Subject: Re: Memory Leak
 
 
 The memory won't actually be reclaimed until the GC kicks in, which in
 most cases isn't until the heap is a certain percentage utilized.
 
 Mike
 
 --- Dan DiCesare [EMAIL PROTECTED] wrote:
 
 HR
 htmlDIV
 PFONT face=Geneva, Arial, Sans-serifHello,/FONT/P
 PFONT face=ArialI am using JSP lt;useBeangt; tags to invoke java
 beans. In my java beans I create a reference to my EJB's. In my
 JSPnbsp;I scope the bean as session. In other words the syntax looks
 as follows:/FONT/P
 Plt;jsp:useBean id=fooBeannbsp; 
 scope=sessionnbsp;nbsp;nbsp;
 class=FooBean /gt;/P
 PFONT face=Geneva, Arial, Sans-serifWhat we are noticing is that
 every time the page is called, a certain amount of memory is used by
 each session as expected by the session scope. However, when the
 session is complete, the memory is not released by the JVM. The end
 result is that we need to stop Orion server and restart to clear the
 JVM memory usage. Can anyone advise as to what we need to do.
 /FONT/P
 PFONT face=Arial/FONTnbsp;/P
 PFONT face=ArialThanks/FONT/P
 PFONT face=Arial-Dan/FONT/P/DIVbr clear=allhrGet your
 FREE download of MSN Explorer at a
 href=http://explorer.msn.comhttp://explorer.msn.com/abr
 /p/html
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices. 
 http://auctions.yahoo.com/
 





shared attribute on other servers ??

2001-01-24 Thread Ismael Blesa Part

Using the attribute shared=true it is possible to share sessions between
a http and a https connection of the same application. Any of you know
about this possibility on any other server apart from OrionServer ??

Regards,
Ismael





No Subject

2001-01-24 Thread trang le

please unsubscribe





problem invalidating servlet

2001-01-24 Thread Matt Bauer

I have this small bit of code that handles a log out.  What I want to do
is invalidate the session and put a new on in its place.  The problem is
when I try to set the attribute, I get an exception telling my the
session is invalidated.  Am I missing something?

if (event instanceof LogoutEvent) {
 request.getSession().invalidate();
 HttpSession validSession = request.getSession();
 validSession.setAttribute(WebKeys.ModelManagerKey, mm);
}

Thanks

M






Orion v1.4.5 Linux JDK1.3 - tools.jar not found in lib

2001-01-24 Thread hanasaki

The tools.jar file is found fine if put in the orion top directory.
Putting it in lib, off the top directory, its not found

any thoughts?

FYI: on debian / with Sun's jdk1.3 bin you need the following support
file for threads
 apt-get install libstdc++2.9-glibc2.1




Problem with JSP - Javabean - EJB(Session) - EJB(Entety) communication with Orion Server

2001-01-24 Thread Alireza Vaezegogani

Hi all,
i try to test the Monica Pawlan's examples (Artikel: "Writting Enterprise
Applications with Java 2 SDK, Enterprise Edition")from www.javasoft.com.
There is an example (lesson 5 Adding JavaBeans Technology to the Mix) for
JSP - Javabean - EJB(Session) - EJB(Entety) communication. This example
run on J2SDKEE-toolkit. all examples from (Lesson 1,2,3,4)can i run with
orion server but not this. I don't know why. I send you my codes and my
changes in orion config's. I think, the problem is in web.xml . the
codes(EJB's) are ok because they run with servlet and jsp(direct without
javabean).
If you have any other example. please send me that. i have intressted for a
communication between jsp, javabean, and ejb's with orion server.


server.xml :
application name="l5" path="d:\java\projekte\l5\jarwarear\l5.ear" /

default-web-site.xml :
web-app application="l5" name="l5-web" root="/l5" /


The error :

500 Internal Server Error

java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.init(Unknown Source)
at client.JBonusBean.getBonusAmt(JBonusBean.java:31)
at /bonus.jsp._jspService(/bonus.jsp.java:69)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.w5(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
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)


Thanks for any help

Alireza Vaezegogani

Concept! AG
Niederlassung Dsseldorf
Franziusstrae 2
40219 Dsseldorf
Germany
Telefon: 0211.300 95 -120 (Zentrale -0)
Telefax: 0211.300 95 111

mailto:[EMAIL PROTECTED]
http://www.concept.com

 bonus.jsp

?xml version="1.0"?
!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd"

application

   display-nameL5 (Sample Application)/display-name

   module
  ejbl5-ejb.jar/ejb
   /module

   module
  web
 web-uril5-web.war/web-uri
 context-root/l5/context-root
  /web
   /module

/application


?xml version="1.0"?
!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"

ejb-jar
   description/description
   enterprise-beans
  session
 display-nameThe ejb.Calc session bean/display-name
 ejb-nameejb.Calc/ejb-name
 homeejb.CalcHome/home
 remoteejb.Calc/remote
 ejb-classejb.CalcBean/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type
	 ejb-ref
	 	description/description	  
		ejb-ref-nameejb/BonusHome/ejb-ref-name
		ejb-ref-typeEntity/ejb-ref-type
		homeejb.BonusHome/home
		remoteejb.Bonus/remote   				   
  	/ejb-ref
  /session
   /enterprise-beans
   
   enterprise-beans
 entity  
description/description
display-nameBonus entry/display-name
ejb-nameejb.Bonus/ejb-name
homeejb.BonusHome/home
remoteejb.Bonus/remote
ejb-classejb.BonusBean/ejb-class
persistence-typeContainer/persistence-type
prim-key-classjava.lang.String/prim-key-class
reentrantFalse/reentrant
cmp-fieldfield-namesocsec/field-name/cmp-field
primkey-fieldsocsec/primkey-field
 /entity
   /enterprise-beans

   assembly-descriptor
  security-role
 descriptionUsers/description
 role-nameusers/role-name
  /security-role
   /assembly-descriptor

/ejb-jar

 JBonusBean.java
 Bonus.java
 BonusBean.java
 BonusHome.java
 Calc.java
 CalcBean.java
 CalcHome.java

?xml version="1.0"?
!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

	welcome-file-list
	  		welcome-filebonus.jsp/welcome-file
   	/welcome-file-list

   	display-nameL5 Web Application/display-name
  	
	ejb-ref
		ejb-ref-nameejb/CalcHome/ejb-ref-name
  		ejb-ref-typeSession/ejb-ref-type
  		homeejb.CalcHome/home
  		remoteejb.Calc/remote
   	/ejb-ref
		   	
   	ejb-ref
	  ejb-ref-nameejb/BonusHome/ejb-ref-name
	  ejb-ref-typeEntity/ejb-ref-type
	  homeejb.BonusHome/home
	  remoteejb.Bonus/remote
   	/ejb-ref   	
  	
/web-app



Re: problem invalidating servlet

2001-01-24 Thread Boris Erukhimov

Try this ...

if (event instanceof LogoutEvent) {
 HttpSession validSession = request.getSession(true);
 validSession.setAttribute(WebKeys.ModelManagerKey, mm);
}

~boris

Matt Bauer wrote:

 I have this small bit of code that handles a log out.  What I want to do
 is invalidate the session and put a new on in its place.  The problem is
 when I try to set the attribute, I get an exception telling my the
 session is invalidated.  Am I missing something?

 if (event instanceof LogoutEvent) {
  request.getSession().invalidate();
  HttpSession validSession = request.getSession();
  validSession.setAttribute(WebKeys.ModelManagerKey, mm);
 }

 Thanks

 M





problem with load-on-startup SunOs

2001-01-24 Thread Marco Isella

I have a problem with load-on-startup on my SunOS machine..

in the init() of my HttpServlet i have 
   DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
   DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
   File temp = new File(xmlFile);
   Document doc = docBuilder.parse(temp);
In my web.xml i have 
load-on-startup 0 /load-on-startup
so that the servlet will be placed into service when orion starts..
With w2k it works fine but with the unix machine (SunOS 5.7) i have a 
java.io.IOException: Stream closed.
when the docBuilder try to parse the temp file

The same code is rexecuted whe the first user access the website  it works
without errors..

Any suggestion is appreciated.

Thanks
Marco
 

--

Ing. Marco Isella, Software Engineer
TINET SA, Via Violino 1, CH-6928 Manno-Lugano
tel. +41 91 612 22 22, fax. +41 91 612 22 23
email [EMAIL PROTECTED]
http://www.tinet.com





RE: installing Tomcat 3.1 src

2001-01-24 Thread Marc Russell



This 
is very well put. It's nice to see people taking the time to be just a 
little polite. The Orion list seems to be a decent 
community.

  -Original Message-From: Kemp Randy-W18971 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 24, 2001 
  5:59 AMTo: Orion-InterestSubject: RE: installing Tomcat 
  3.1 src
  I 
  think youare addressing your questions to the wrong list. I would 
  recommend subscribing to the Tomcat list at jakarta.apache.org, and look under 
  Tomcat, and address their mailing list. I also notice you have jboss in 
  your classpath, so I would recommend looking at www.jboss.org, and subscribing to their 
  mailing list. When I have Tomcat and Jboss questions, I find their lists 
  very useful for answering them. When I have Orion questions, this is a 
  great list. If you have EJB questions, either Jboss or Orion is 
  great. I would be highly surprised if the Tomcat list doesn't address 
  the Tomcat question.
  
-Original Message-From: faisal 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 
2001 3:29 PMTo: Orion-InterestSubject: installing 
Tomcat 3.1 src
Hi
Does anybody knows what makes Tomcat 3.1 refuse 
to be called by the browser I installed it on win 98. Everything went smooth 
but whenever
I double click on startup.bat I get 
this:
Starting tomcat in new windowUsing 
classpath: 
..\classes;..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;\lib\tools.jar;c:\jboss\client\jboss-client.jar;c:\jboss\client\jnp-client.jar;c:\jboss\lib\ext\ejb.jar;c:\jboss\examples\interest\interest-client.jar;C:\PROGRAM 
FILES\JAVASOFT\JAXP1.0.1\JAXP.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR...and 
nothing happens after
I increased the window env but it still running 
in the background
I just can't get it
Can u please help
Faisal


RE: problem invalidating servlet

2001-01-24 Thread Conrad Chan

I think he was trying to invalidate the existing session before setting the attribute.

Conrad

-Original Message-
From: Boris Erukhimov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 4:05 AM
To: Orion-Interest
Subject: Re: problem invalidating servlet


Try this ...

if (event instanceof LogoutEvent) {
 HttpSession validSession = request.getSession(true);
 validSession.setAttribute(WebKeys.ModelManagerKey, mm);
}

~boris

Matt Bauer wrote:

 I have this small bit of code that handles a log out.  What I want to do
 is invalidate the session and put a new on in its place.  The problem is
 when I try to set the attribute, I get an exception telling my the
 session is invalidated.  Am I missing something?

 if (event instanceof LogoutEvent) {
  request.getSession().invalidate();
  HttpSession validSession = request.getSession();
  validSession.setAttribute(WebKeys.ModelManagerKey, mm);
 }

 Thanks

 M





novice question

2001-01-24 Thread Peter T. Brown

How do I deploy .war files in orion?





Rationale for ejb-ref element?

2001-01-24 Thread Globetrot Communications

What is the rationale for having ejb-ref element? I
know the spec says that with this approach and ejb-ref
is visible only within the scope of the referencing
ejb. But that also means that each referenced ejb has
to be included as a ejb-ref element of each
referencing ejb. Doesn't this get away from the
'write-once' paradigm?

Thanks for your input.

Satish

=
__
5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges
4 cents Domestic calls with no fees:
5 cents per minute International calls also available
http://globetrot.hypermart.net
e-mail: [EMAIL PROTECTED]
__

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/




how do i use EJBUserManager

2001-01-24 Thread Matt Bauer

Orion is a nice app server, but poor at documentation.

I have this for my orion-application.xml file:

orion-application
 user-manager class="com.evermind.ejb.EJBUserManager"
  property name="home" value="com.evermind.ejb.EJBUser"/
  property name="defaultGroups" value="users"/
 /user-manager
/orion-application

when I start my app I get this exception:

Error instantiating application 'hermes' at
file:/export/orion/applications/hermes.ear: Error initializing
userManager 'com.evermind.ejb.EJBUserManager': NamingException:
com.evermind.ejb.EJBUser not found

What am I missing?

M





Re: Problems authenticating

2001-01-24 Thread Lawrence

Hi,

I'm glad someone got the thing working.  Mike, have you ever come across
this error when adding a user to a group?

SQL error: ORA-01008: not all variables bound

I'm adding it to an Oracle8i database.

Thanks.
Lawrence

- Original Message -
From: "Mike Cannon-Brookes" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 3:35 PM
Subject: RE: Problems authenticating


  There are some problems with the EJBUserManager, I have given up on it.
I
  was trying to add users to a database and assign users to a
role/group...I
  was able to add users to the database, but I wasted more than a
  week of time
  trying to add them to a group.

 These have all be solved in 1.4.5 to my knowledge, and I've been using
1.3.8
 before this and they work in there. 1.4.4 had an OR bug that affected
 EJBUserManager groups.

  Only use the EJBUserManager or DataSourceUserManager if you don't need
to
  assign users to a group or if you need to assign users to a group then
you
  stay with the principals.xml file.

 Once again, they work now ;)

  - Original Message -
  From: "Matt Bauer" [EMAIL PROTECTED]
  To: "Orion-Interest" [EMAIL PROTECTED]
  Sent: Tuesday, January 23, 2001 10:16 AM
  Subject: Problems authenticating
 
 
   I have a simple app (very similiar to the pet store) that uses form
   based login.  I can created an account and see it created in the
   appropriate principals.xml file.  The problem is every time I use my
   form based login I get an error: 400 Bad request: HTTP method POST is
   not supported by this URL.  My form uses action="j_security_check"
   method="post" just like its suppose to.  Any one know why this fails.
   Also, I plan on using EJBUserManager, but the docs for it stink.  What
   do I have to add to my orion-application.xml or other xml files to
make
   this thing work?
  
   Thanks
  
   M
  
  
  
 
 







RE: O/R mapping

2001-01-24 Thread Emil Goldfarb

Could anyone provide an example of what the relations  section of the
ejb-jar.xml looks like for the different types of relationships that are
possible.

It will be greatly appreciated.

Thank you.

Emil
-Original Message-
From: Dumitru Sbenghe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 8:47 AM
To: Orion-Interest
Subject: RE: O/R mapping


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Sean P.
 McNamara
 Sent: mardi 23 janvier 2001 20:41
 To: Orion-Interest
 Subject: RE: O/R mapping



 While I agree that the 3-table approach is not necessary to do 1-M
 mappings, and that there are performance reasons that make the 2-table
 method attractive, the 3-table method has the benefit that it doesn't
 allow the fact that the object in the M (many) position to intrude
 upon it's table structure.  While this is perhaps not completely
 germaine to EJB (I'm not so familiar with the details of the spec,) we
 have found value in the 3-table approach in general O/R use.

I guess this is a good design point; But if the client come and say
way this is so slow; I say because it use a join, ..., and this is slower
than ... ugly;


 If you make use of the 3-table method, the table that contains the
 row-data is then only specific to the OBJECT that is stored in the
 relationship.  For instance, if I have:

COMPANY --- EMPLOYEE
1 *

 in one application, and

CLIENT  EMPLOYEE
   1  *

 in another application, we are not forced to deal with extraneous
 columns relating the EMPLOYEE to either a COMPANY or a CLIENT (I
 realize a better model might be to have company and client both
 subclasses of EMPLOYER, or some such thing.)  This example is
 perhaps even better if we consider the use of EMPLOYEE alone without
 it's COMPANY or CLIENT relationship.

 Using the third table for the mapping keeps the individual component
 entities well isolated, which can be a good thing.

 Don't know if that was clear, but we've seen a use for the overhead of
 the 3rd table.
Yes, in your case is clear; but if I don't have this case, I don't care
about that;

The speed is very important; I love CMP; Is the most useful thing from EJB;

I believe a ejb container can do more for CMP; He can have options for
example, for this relation 1-m use only 2 tables (how I guess is very
clear);
or if I do a find, for this find use lazy loading for some cmp-field, don't
use ll
for another cmp-field; If I do a find with a lot of records returned, get
from
the database in piece of 30 records ( or something like that);


 Dumitru Sbenghe writes:
   SV: O/R mappingI care; If you store a 1-m relation in 3
 tables, to get the
   corresponding data from the third table
   for a PK from the first table, you must join the second table
 with the third
   table;
   A join is slower than a simple select;
  
   If you store a 1-m relation in only two table (the normal way)
 , you do that
   with only a simple select.

 ... Someone else previously ...
 
  I'd like to point out that a third table is only needed for a N-M
  (many-to-many) relationship.
  In the case of a 1-N relationship, simply have a foreign key to the
  master table.

 --
 Sean P. McNamara  [EMAIL PROTECTED]
 SOMA Technologies, Inc. [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]





Support site down - can I help?

2001-01-24 Thread Jim Archer

Hi Joe...

I noticed that OrionSupport has been down for a few days. If there is a 
problem, is there anything I can do to help? I have some resoureces 
available...

Jim







RE: novice question

2001-01-24 Thread Kevin Duffey

in server.xml, point the application to the .war file directly.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Peter T. Brown
 Sent: Wednesday, January 24, 2001 9:54 AM
 To: Orion-Interest
 Subject: novice question
 
 
 How do I deploy .war files in orion?
 




Does Orion support JAAS

2001-01-24 Thread John Pletka

Does Orion support JAAS (Java Authentication and Authorization Service)?  If
so, how do I configure Orion to use it?

Thanks,
John




Orion web site error

2001-01-24 Thread Boris Erukhimov

That's what I got after clicking on FAQ at www.orionserver.com

500 Internal Server Error

com.evermind.server.rmi.OrionRemoteException: Database error: The database is
already in use by another process
at
KeywordHome_EntityHomeWrapper73.findAll(KeywordHome_EntityHomeWrapper73.java:642)

at
com.evermind.faq.ejb.EntryManagerEJB.getKeywords(EntryManagerEJB.java:58)
at
EntryManager_StatefulSessionBeanWrapper54.getKeywords(EntryManager_StatefulSessionBeanWrapper54.java:304)

at /viewFAQ.jsp._jspService(/viewFAQ.jsp.java:70) (JSP page line 18)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xk(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d4.sx(JAX)
at com.evermind.server.http.d4.sv(JAX)
at com.evermind.server.http.eg.s2(JAX)
at com.evermind.server.http.eg.dp(JAX)
at com.evermind.util.f.run(JAX)
Nested exception is:
java.sql.SQLException: The database is already in use by another process
at org.hsql.Trace.getError(Trace.java:124)
at org.hsql.Trace.getError(Trace.java:115)
at org.hsql.Trace.error(Trace.java:127)
at org.hsql.Log.open(Log.java:115)
at org.hsql.Database.init(Database.java:44)
at org.hsql.jdbcConnection.openStandalone(jdbcConnection.java:651)
at org.hsql.jdbcConnection.init(jdbcConnection.java:524)
at org.hsql.jdbcDriver.connect(jdbcDriver.java:78)
at com.evermind.sql.DriverManagerDataSource.getConnection(JAX)
at
com.evermind.sql.DriverManagerConnectionPoolDataSource.getPooledConnection(JAX)

at com.evermind.sql.OrionPooledDataSource.d_(JAX)
at com.evermind.sql.aj.d_(JAX)
at com.evermind.sql.OrionPooledDataSource.getConnection(JAX)
at com.evermind.sql.DriverManagerXADataSource.ev(JAX)
at com.evermind.sql.am.er(JAX)
at com.evermind.sql.aq.prepareStatement(JAX)
at com.evermind.server.ejb.DataSourceConnection.getCustomStatement(JAX)

at
KeywordHome_EntityHomeWrapper73.findAll(KeywordHome_EntityHomeWrapper73.java:533)

at
com.evermind.faq.ejb.EntryManagerEJB.getKeywords(EntryManagerEJB.java:58)
at
EntryManager_StatefulSessionBeanWrapper54.getKeywords(EntryManager_StatefulSessionBeanWrapper54.java:304)

at /viewFAQ.jsp._jspService(/viewFAQ.jsp.java:70) (JSP page line 18)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xk(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d4.sx(JAX)
at com.evermind.server.http.d4.sv(JAX)
at com.evermind.server.http.eg.s2(JAX)
at com.evermind.server.http.eg.dp(JAX)
at com.evermind.util.f.run(JAX)





RE: how do i use EJBUserManager

2001-01-24 Thread Mike Cannon-Brookes

Have you deployed com.evermind.ejb.EJBUser and an entity bean in your app?
It needs to be specified in an ejb-jar.xml file somewhere of course!

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Bauer
 Sent: Thursday, January 25, 2001 5:24 AM
 To: Orion-Interest
 Subject: how do i use EJBUserManager


 Orion is a nice app server, but poor at documentation.

 I have this for my orion-application.xml file:

 orion-application
  user-manager class="com.evermind.ejb.EJBUserManager"
   property name="home" value="com.evermind.ejb.EJBUser"/
   property name="defaultGroups" value="users"/
  /user-manager
 /orion-application

 when I start my app I get this exception:

 Error instantiating application 'hermes' at
 file:/export/orion/applications/hermes.ear: Error initializing
 userManager 'com.evermind.ejb.EJBUserManager': NamingException:
 com.evermind.ejb.EJBUser not found

 What am I missing?

 M








Re: problem invalidating servlet

2001-01-24 Thread Matt Bauer

Indeed I was

Matt

Conrad Chan wrote:

 I think he was trying to invalidate the existing session before setting the 
attribute.

 Conrad

 -Original Message-
 From: Boris Erukhimov [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 24, 2001 4:05 AM
 To: Orion-Interest
 Subject: Re: problem invalidating servlet

 Try this ...

 if (event instanceof LogoutEvent) {
  HttpSession validSession = request.getSession(true);
  validSession.setAttribute(WebKeys.ModelManagerKey, mm);
 }

 ~boris

 Matt Bauer wrote:

  I have this small bit of code that handles a log out.  What I want to do
  is invalidate the session and put a new on in its place.  The problem is
  when I try to set the attribute, I get an exception telling my the
  session is invalidated.  Am I missing something?
 
  if (event instanceof LogoutEvent) {
   request.getSession().invalidate();
   HttpSession validSession = request.getSession();
   validSession.setAttribute(WebKeys.ModelManagerKey, mm);
  }
 
  Thanks
 
  M





Source debugging of EJB/Servlet

2001-01-24 Thread hanasaki

The Servlet and JSP is not so difficult becuse orion compiles the source
and the .class/.java files are all in the filesystem

How is it done with EJB's since the EAR / WAR files must be built to
deploy?




RE: What is this strange error?

2001-01-24 Thread Stuart Walsh

Gerald,

I ran into this same problem.  For some reason when I deployed, Orion
wouldn't copy the principles.xml from my application to the
applications-deployment directory.  I copied it manually and Orion stopped
complaining.  I hope this helps.

Stuart

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gerald
Gutierrez
Sent: Tuesday, January 23, 2001 12:13 PM
To: Orion-Interest
Subject: What is this strange error?



I'm trying to deploy a very simple application, and am getting the error
"Invalid principals config URL: principals.xml". What in the world does
this mean? I've had this problem all the way from 1.3.x up to 1.4.5 and no
one has been able to tell me what it means, or why it happens, or what I
must do to get rid of it. It is not documented anywhere. Can someone,
perhaps those who work on Orion, PLEASE tell me what this means.

The Error:

...
Copying default deployment descriptor from archive at
C:\k\wrk\test\SingleSignon
\Alpha\bld\alpha-app/META-INF/orion-application.xml to deployment directory
C:\a
\orion\application-deployments\alpha-app...
Error instantiating application at
file:/C:/k/wrk/test/SingleSignon/Alpha/bld/al
pha-app.ear: Invalid principals config URL: principals.xml for alpha-app
Auto-deploying file:/C:/a/orion/default-web-app/ (New server version
detected).
...


My orion-application.xml is:

?xml version="1.0"?
!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd"

application
 display-nameAlpha/display-name
 module
 web
web-urialpha-web.war/web-uri
 context-root/alpha/context-root
 /web
 /module
 security-role
 descriptionUsers/description
 role-namesingle_signon_user/role-name
 /security-role
/application


My principals.xml:

?xml version="1.0"?
!DOCTYPE principals PUBLIC "//Evermind - Orion Principals//"
"http://www.orionserver.com/dtds/principals.dtd"
principals
groups
 group name="single_signon_user"/
/groups
 users
 user realname="Gerald" username="gerald" password="abc"
 group-membership group="single_signon_user"/
 /user
 /users
/principals







RE: Orion v1.4.5 Linux JDK1.3 - tools.jar not found in lib

2001-01-24 Thread Neville Burnell

the Orion "core" classloader expects to find tools.jar in the \Orion dir

-Original Message-
From: hanasaki [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 25 January 2001 3:28 AM
To: Orion-Interest
Subject: Orion v1.4.5 Linux JDK1.3 - tools.jar not found in lib


The tools.jar file is found fine if put in the orion top directory.
Putting it in lib, off the top directory, its not found

any thoughts?

FYI: on debian / with Sun's jdk1.3 bin you need the following support
file for threads
 apt-get install libstdc++2.9-glibc2.1




Re: java.lang.OutOfMemoryError in Product Application

2001-01-24 Thread Globetrot Communications

As per the suggestion, I am doing the following in an
attempt to flush the cache after every 10,000 object
creation. Watching the "free memory", simultaneously,
I was expecting this free memory-count to jump up
every 10,000 objects - but, I am not seeing that. The
"free memory" count is,gradually, creeping downwards,
with occasional slight bump-ups. The application is
still running and will croak tonight if this fix is
not effective.

In the meantime, could somebody please confirm if I
have applied the fix correctly. "MyProduct" is the
ejb-ref-name in the application-client.xml

Thanks


Context context = new InitialContext();

Object o = context.lookup("java:comp/Administrator");
ApplicationAdministrator admin
= (ApplicationAdministrator)
   
PortableRemoteObject.narrow(o,ApplicationAdministrator.class);
.
.
.
while (true)
{
 // Create a new Product and narrow the reference.
 Product product = (Product)PortableRemoteObject.
 narrow(home.create(i), Product.class);
 name = "product"+i;
 cost = i;
 product.setName(name);
 product.setPrice(cost);
 if ((i%1)==0)
 {
 
admin.flushEJBCache("MyProduct");
  System.out.println(name +" added. Took "
+((System.currentTimeMillis()-startTime)/1000+"secs"));
 }
 i++;
 }


--- Globetrot Communications [EMAIL PROTECTED]
wrote:
 Could it be that Orion does not passivate entity
 beans, thus running out of virtual memory? I was
 able
 to restart the ProductClient and continue adding to
 the table.
 
 Does anybody know of a solution better than having
 to
 stop and restart?
 
 Thanks
 
 
 
 
 --- Globetrot Communications
 [EMAIL PROTECTED]
 wrote:
  I am populating a postgreSQL database with
 "Product"
  entity beans. I get a java.lang.OutOfMemeoryError
  After adding about 200K entries. Am I getting this
  error because all these entity beans stay in
 memory?
  Is there a work-around it besides increasing the
 -mx
  option value? How can one to create number of
  objects
  limited only by the disk-space?
  
  Thanks for your help.
  
  while (true)
  {
  // Create a new Product and narrow the
  reference.
  Product product =
 
 (Product)PortableRemoteObject.narrow(home.create(i),
  Product.class);
  name = "product"+i
  cost = i;
  product.setName(name);
  product.setPrice(cost);
  
  
  }
  
  Satish
  
  __
  Do You Yahoo!?
  Yahoo! Auctions - Buy the things you want at great
  prices. 
  http://auctions.yahoo.com/
  
 
 
 =

__
 5.5 cents calls with 6-second billing no fees. Free
 toll-fre numbers. No other charges
 4 cents Domestic calls with no fees:
 5 cents per minute International calls also
 available
 http://globetrot.hypermart.net
 e-mail: [EMAIL PROTECTED]

__
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great
 prices. 
 http://auctions.yahoo.com/
 


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/




Re: java.lang.OutOfMemoryError in Product Application

2001-01-24 Thread Brett Lane

Hi Suresh,

  I am not having any problems, I was replying to someone else who was
having
an out of memory problem.  I have not encountered any out of memory problems
but
I remembered sven posting something some time ago on the
ApplicationAdministator, which
i had saved, so I reposted it.

Perhaps you could direct your expertise towards Satish, who posted;

wrote:
 I am populating a postgreSQL database with "Product"
 entity beans. I get a java.lang.OutOfMemeoryError
 After adding about 200K entries. Am I getting this
 error because all these entity beans stay in memory?
 Is there a work-around it besides increasing the -mx
 option value? How can one to create number of
 objects
 limited only by the disk-space?

 Thanks for your help.

 while (true)
 {
 // Create a new Product and narrow the
 reference.
 Product product =
 (Product)PortableRemoteObject.narrow(home.create(i),
 Product.class);
 name = "product"+i
 cost = i;
 product.setName(name);
 product.setPrice(cost);


 }

 Satish


Cheers,
Brett





Re: installing Tomcat 3.1 src

2001-01-24 Thread faisal



It is great to have youamongstOrion 
community's members
thanks
everything is working now
Faisal

  - Original Message - 
  From: 
  Marc Russell 
  To: Orion-Interest 
  Sent: Wednesday, January 24, 2001 5:52 
  PM
  Subject: RE: installing Tomcat 3.1 
  src
  
  This 
  is very well put. It's nice to see people taking the time to be just a 
  little polite. The Orion list seems to be a decent 
  community.
  
-Original Message-From: Kemp Randy-W18971 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 24, 
2001 5:59 AMTo: Orion-InterestSubject: RE: installing 
Tomcat 3.1 src
I 
think youare addressing your questions to the wrong list. I 
would recommend subscribing to the Tomcat list at jakarta.apache.org, and 
look under Tomcat, and address their mailing list. I also notice you 
have jboss in your classpath, so I would recommend looking at www.jboss.org, and subscribing to their 
mailing list. When I have Tomcat and Jboss questions, I find their 
lists very useful for answering them. When I have Orion questions, 
this is a great list. If you have EJB questions, either Jboss or Orion 
is great. I would be highly surprised if the Tomcat list doesn't 
address the Tomcat question.

  -Original Message-From: faisal 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 
  2001 3:29 PMTo: Orion-InterestSubject: installing 
  Tomcat 3.1 src
  Hi
  Does anybody knows what makes Tomcat 3.1 
  refuse to be called by the browser I installed it on win 98. Everything 
  went smooth but whenever
  I double click on startup.bat I get 
  this:
  Starting tomcat in new windowUsing 
  classpath: 
  ..\classes;..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;\lib\tools.jar;c:\jboss\client\jboss-client.jar;c:\jboss\client\jnp-client.jar;c:\jboss\lib\ext\ejb.jar;c:\jboss\examples\interest\interest-client.jar;C:\PROGRAM 
  FILES\JAVASOFT\JAXP1.0.1\JAXP.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR...and 
  nothing happens after
  I increased the window env but it still 
  running in the background
  I just can't get it
  Can u please help
  Faisal


Re: Orion v1.4.5 Linux JDK1.3 - tools.jar not found in lib

2001-01-24 Thread hanasaki

Ah! funny thing is that the orionserver sent me a page saying put it in
the orion directory OR somewhere pointed to by a library entry.

Neville Burnell wrote:
 
 the Orion "core" classloader expects to find tools.jar in the \Orion dir
 
 -Original Message-
 From: hanasaki [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 25 January 2001 3:28 AM
 To: Orion-Interest
 Subject: Orion v1.4.5 Linux JDK1.3 - tools.jar not found in lib
 
 The tools.jar file is found fine if put in the orion top directory.
 Putting it in lib, off the top directory, its not found
 
 any thoughts?
 
 FYI: on debian / with Sun's jdk1.3 bin you need the following support
 file for threads
  apt-get install libstdc++2.9-glibc2.1




Re: Session timeout

2001-01-24 Thread Seung Ryong Bang

Nobody's answering my question. Please~~
Any idea is welcome. Thanks very much.


- Original Message -
From: "Seung Ryong Bang" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 10:03 AM
Subject: Session timeout


 Hello all,
 I have just put the following line in my web.xml.

 session-config
   session-timeout0/session-timeout
 /session-config

 It will not invalidate any session unless the session is forced to be
 invalidated on purpose.
 I do not really know if it's going to be fine that way.
 A session is going to be alive without being invalidated all thru the
 system,
 even if the session is not used by anyone anymore. Is that right?
 That being the case, isn't it kinda resource waste? Am I getting something
 wrong?
 I appreciate your help and thoughts in advance.


 PS: The above config. in web.xml sets the servlet session timeout. Right?
 Then what about session bean's
 timeout? Is that the same thing? Or is it somewhere else?








Re: problem invalidating servlet

2001-01-24 Thread Boris Erukhimov

I guess request.getSession() (aka request.getSession(false) ) gives you existing 
session
object.
I don't know how exactly orion implements it, but apparently there is still a valid
reference to session object after session.invalidate() is called. To supress it just 
use
request.getSession(true), it will sure create new session for you.

if (event instanceof LogoutEvent) {
 request.getSession().invalidate();
HttpSession validSession = request.getSession(true);
validSession.setAttribute(WebKeys.ModelManagerKey, mm);
}

~boris

Matt Bauer wrote:

 Indeed I was

 Matt

 Conrad Chan wrote:

  I think he was trying to invalidate the existing session before setting the 
attribute.
 
  Conrad
 
  -Original Message-
  From: Boris Erukhimov [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 24, 2001 4:05 AM
  To: Orion-Interest
  Subject: Re: problem invalidating servlet
 
  Try this ...
 
  if (event instanceof LogoutEvent) {
   HttpSession validSession = request.getSession(true);
   validSession.setAttribute(WebKeys.ModelManagerKey, mm);
  }
 
  ~boris
 
  Matt Bauer wrote:
 
   I have this small bit of code that handles a log out.  What I want to do
   is invalidate the session and put a new on in its place.  The problem is
   when I try to set the attribute, I get an exception telling my the
   session is invalidated.  Am I missing something?
  
   if (event instanceof LogoutEvent) {
request.getSession().invalidate();
HttpSession validSession = request.getSession();
validSession.setAttribute(WebKeys.ModelManagerKey, mm);
   }
  
   Thanks
  
   M





EJB 2.0 Dependent object example now available

2001-01-24 Thread Jim Archer



Hello all...

Many people have written me requesting I provide an EJB 2.0 CMP example 
that uses a dependent object. To all who asked, I apologize for the delay. 
I have sent it to Joe for posting on OrionSupport, and it is right now 
available at:

http://www.archer.net/Test20CmpDo.zip

This example has an entity bean to represent a person and a dependent 
object to represent the person's postal address. There is a one-to-one 
relationship between the entity bean and its dependent.

There will be a similar example with a one-to-many relationship soon.

Cheers!

Jim







Re: Support site down - can I help?

2001-01-24 Thread Jim Archer

OOPS...

Sorry list... This was supposed to go to Joe personally...

Jim


--On Wednesday, January 24, 2001 3:11 PM -0500 Jim Archer [EMAIL PROTECTED] 
wrote:

 Hi Joe...

 I noticed that OrionSupport has been down for a few days. If there is a
 problem, is there anything I can do to help? I have some resoureces
 available...

 Jim











RE: Session timeout

2001-01-24 Thread Matt Krevs

Yes

session-config
session-timeoutX/session-timeout
/session-config

is where you specify the number of minutes of inactivity before web sessions
are timed out

I dont know for sure what setting this value to 0 does. If it means that
sessions never timeout then you probably shouldnt ever set it to 0 (unless
you are fond of being forced to restart your application every week) because
each session with hang around in memory indefinitely.

Regarding a "session bean's timeout" i think you are referring to EJB entity
beans? I dont know much about EJB but i'm pretty sure this is a different
thing and has nothing to do with servlets or JSP.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Seung Ryong
Bang
Sent: Thursday, 25 January 2001 12:14 PM
To: Orion-Interest
Subject: Re: Session timeout


Nobody's answering my question. Please~~
Any idea is welcome. Thanks very much.


- Original Message -
From: "Seung Ryong Bang" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 10:03 AM
Subject: Session timeout


 Hello all,
 I have just put the following line in my web.xml.

 session-config
   session-timeout0/session-timeout
 /session-config

 It will not invalidate any session unless the session is forced to be
 invalidated on purpose.
 I do not really know if it's going to be fine that way.
 A session is going to be alive without being invalidated all thru the
 system,
 even if the session is not used by anyone anymore. Is that right?
 That being the case, isn't it kinda resource waste? Am I getting something
 wrong?
 I appreciate your help and thoughts in advance.


 PS: The above config. in web.xml sets the servlet session timeout. Right?
 Then what about session bean's
 timeout? Is that the same thing? Or is it somewhere else?









Re: Port forwarding

2001-01-24 Thread Trevor Squires


Hey David,

I have it running on a 4ip host where each interface (ip) is a
different web site which is what I think you want to do right?

If that's the case then I did exactly the same thing as you wrt the
ipchains command.  

The problem I ran into is that if I configured each site to only listen on
the relevant interface (port= in web-site tag) it didn't work.  I had to
say port="[ALL]".

So I gave each site (interface) a different port  1024 and did the
ipchains for each, just as you have done.

I also hadded a virutal-hosts entry and a frontend tag in the web-site
xml for each site - both were important but I can't remember what failed
if you didn't include them.

Finally I used ipchains to refuse direct connnections to the ports  1024
that the sites were really using - just being picky I guess.

I hope that helps.

Trevor

On Mon, 22 Jan 2001, David Morton wrote:

 
  Has anybody gotten port-forwarding to work?  I want orion to run 
 as non-root user on Linux.I did see:
 http://www.orionsupport.com/articles/unixprocess.html
 
 The following is an excerpt:
 IP Chains (ipfw)
 IP Chains is a program that comes with recent versions of Linux that uses 
 the ipfw library to specify rules for TCP/IP packets. For information about 
 using it, refer to the howto.
 Here's a simple rule to tell all incoming TCP packets destined for port 80 
 to be forwarded to port 10080:
 [root@myhost]$ ipchains -A input --destination-port 80 -p tcp -j REDIRECT 10080
 Warning: Use ipchains at own risk... You are recommended to read the 
 documentation first, and have the machine in easy reach.
 This command needs to be executed each time the system is booted, so you 
 may want to place it in a startup file somewhere.
 
 I tried ipchains rule with one change:
 ipchains -A input -d 192.168.0.4 80 -p tcp -j REDIRECT 10080
 
 it didn't work.
 
 any suggestions?
 
 If anyone has working on one ip only (on a machine that has multiple ips 
 like mine)...please send output of 'ipchains -L'...and any other ipmasqadm 
 table output...
 
 Thanks
 David
 
 





JAAS Support?

2001-01-24 Thread Phan Anh Tran



Does Orion 1.4.5 support JAAS? 
Thanks.

Anh



Re: Re: Port forwarding

2001-01-24 Thread skyman

I have it running on a 4ip host where each interface (ip) is a
different web site which is what I think you want to do right?

Currently I have a 4ip hostfor argument sake:
IP 1 - apache bound to port 80
IP 23 - orion bound to port 80 (unfortunately as root...why I'm trying all this)...up 
and doing BUSINESS
IP 4 - orion bound to 10080...it is responding to http://ip:10080 and local 'telnet 
IP#4 10080'  (i wanted this just for now, I will add more security when I get working)

The problem I ran into is that if I configured each site to only listen on the 
relevant interface (port= in web-site tag) it didn't
work.  I had to say port="[ALL]".  So I gave each site (interface) a
different port  1024 and did the ipchains for each, just as you
have done.

I'm not quite sure what you are saying, but we are getting somewhere...I got orion to 
bind to port 10080...I have it in 2 places default-web-site.xml and mysite.xml.  both 
with hardcoded IP and port.  It is responding as that ip/port and not conflicting with 
other apache and orion.  I've never heard of port="[ALL]".sounds pretty scary to 
me.  it binds to all ports? What do you have in default vs. your virtual hosts?

I also hadded a virutal-hosts entry and a frontend tag in the web
site xml for each site - both were important but I can't remember
what failed if you didn't include them.

I have been frustrated with this for almost a monthI actually signed a contract 
with RedHat for server supportIf orion is responding to port 10080...I would think 
orion's part should be done.what do you think?  I will let you know what Red Hat 
comes up with...and see if this so called services model is any good. I think the new 
kernel has better built in port forwarding...it would be a lot easier it seems if the 
firewall and server were on seperate machinesipchains/ip-masq were not built for 
local redirection..there are some hacks I can do, but I don't want to use software on 
my server that is installed on less than 1000 servers in the whole universe

David


On Mon, 22 Jan 2001, David Morton wrote:

 
  Has anybody gotten port-forwarding to work?  I want orion to run 
 as non-root user on Linux.I did see:
 http://www.orionsupport.com/articles/unixprocess.html
 
 The following is an excerpt:
 IP Chains (ipfw)
 IP Chains is a program that comes with recent versions of Linux that uses 
 the ipfw library to specify rules for TCP/IP packets. For information about 
 using it, refer to the howto.
 Here's a simple rule to tell all incoming TCP packets destined for port 80 
 to be forwarded to port 10080:
 [root@myhost]$ ipchains -A input --destination-port 80 -p tcp -j REDIRECT 10080
 Warning: Use ipchains at own risk... You are recommended to read the 
 documentation first, and have the machine in easy reach.
 This command needs to be executed each time the system is booted, so you 
 may want to place it in a startup file somewhere.
 
 I tried ipchains rule with one change:
 ipchains -A input -d 192.168.0.4 80 -p tcp -j REDIRECT 10080
 
 it didn't work.
 
 any suggestions?
 
 If anyone has working on one ip only (on a machine that has multiple ips 
 like mine)...please send output of 'ipchains -L'...and any other ipmasqadm 
 table output...
 
 Thanks
 David
 
 







RE: Problem Compiling Servlet! Please help

2001-01-24 Thread Roland Dong

Thanks for your help!

I am very new to this and just want to have the servlet up and running... 
I did install the lasted Orion 1.45. I have not yet successfully compiled a simple 
servlet...

I did put the tools.jar under orion directory and I even put it on the path in
autoexec.bat so it looks like this:

SET BLASTER=A220 I7 D1 T2
SET SNDSCAPE=C:\WINDOWS
PATH C:\WINDOWS;C:\WINDOWS\COMMAND
path=%path%;c:\jdk1.3\bin;C:\ORAWIN95\BIN;C:\jdk1.3\lib\tools.jar;C:\jsdk2.1\servlet.jar;
set CLASSPATH=,;jsdk2.1\servlet.jar;%CLASSPATH%
doskey

Unfortunately, when I type in the command javac helloworld2.java

I still got this error:

C:\Web\jsp\jspRoland\WEB-INF\classesjavac HelloworldServlet2.java
HelloworldServlet2.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
HelloworldServlet2.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
.

I have tried everything I can think of...  Some tutorial said I need to put 
jsdk.jar on the path. I down loaded jsdk2.1 from Sun website but did not find
jsdk.jar in it.

Can you help me again?  Thanks a lot.

Roland




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: Monday, January 22, 2001 1:14 PM
To: Orion-Interest
Subject: RE: Problem Compiling Servlet! Please help


Do you have the servlet.jar in your classpath (needed for Tomcat) or put the tools.jar 
in the Orion directory (see Orion installation instructions)?  Try upgrading at least 
to Orion 1.3 (the latest stable version). 

-Original Message-
From: Roland Dong [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 3:06 PM
To: Orion-Interest
Subject: RE: Problem Compiling Servlet! Please help




I have successfully auto-compiled the servlet(HelloWorld2.java) by following the 
instruction in the documentation.  

However, I wanted to compile the servlet with JDK 1.3 compiler to compile the servlet 
and I did not succeed.


Your documentation says:


"Of course you can also compile the Servlets using your favourite IDE or java 
compiler. If you do so you simply put the Servlet class in the WEB-INF/classes 
directory of your web application. If you do not want to package your Servlets into a 
new web application, you can simply put the classes in 
/orion/default-web-app/WEB-INF/classes/ "

I tried to put the HelloWorld2.java under WEB_INF/classes directory. It won't compile. 
I got errror mesasges: like:

HelloWorldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*;


I guess the problem is the path... If so can you tell me how to set the path so that 
my Java compile can compile the servlet? I am using orion 1.0.1.

Thanks a lot,

Roland






orionconsole bug...

2001-01-24 Thread Phan Anh Tran



Orion 1.4.5 on Windows 2000 with SP1.

I tried to add a new website using 
orionserver. After I click on "Next", I get the following 
exception:

Exception occurred during event 
dispatching:java.lang.IndexOutOfBoundsException: Index: -1, Size: 
0 at 
java.util.ArrayList.RangeCheck(Unknown 
Source) at 
java.util.ArrayList.get(Unknown 
Source) at 
com.evermind.gui.server.http.SelectWebAppWizardTask.ay(JAX) 
at 
com.evermind.gui.server.http.SelectWebAppWizardTask.init(JAX) 
at 
com.evermind.gui.server.http.AddWebSiteWizardTask.auf(JAX) 
at 
com.evermind.gui.wizard.AbstractWizard.auf(JAX) 
at 
com.evermind.gui.wizard.PanelWizard.actionPerformed(JAX) 
at javax.swing.AbstractButton.fireActionPerformed(Unknown 
Source) at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown 
Source) at 
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown 
Source) at 
javax.swing.DefaultButtonModel.setPressed(Unknown 
Source) at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
Source) at 
java.awt.Component.processMouseEvent(Unknown 
Source) at 
java.awt.Component.processEvent(Unknown 
Source) at 
java.awt.Container.processEvent(Unknown 
Source) at 
java.awt.Component.dispatchEventImpl(Unknown 
Source) at 
java.awt.Container.dispatchEventImpl(Unknown 
Source) at 
java.awt.Component.dispatchEvent(Unknown 
Source) at 
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown 
Source) at 
java.awt.LightweightDispatcher.processMouseEvent(Unknown 
Source) at 
java.awt.LightweightDispatcher.dispatchEvent(Unknown 
Source) at 
java.awt.Container.dispatchEventImpl(Unknown 
Source) at 
java.awt.Window.dispatchEventImpl(Unknown 
Source) at 
java.awt.Component.dispatchEvent(Unknown 
Source) at 
java.awt.EventQueue.dispatchEvent(Unknown 
Source) at 
java.awt.EventDispatchThread.pumpOneEvent(Unknown 
Source) at 
java.awt.EventDispatchThread.pumpEvents(Unknown 
Source) at 
java.awt.EventDispatchThread.run(Unknown Source)

Anh



Re: orionconsole bug...

2001-01-24 Thread Phan Anh Tran



SUN JDK1.3.0_01
Anh


  - Original Message - 
  From: 
  Phan Anh Tran 

  To: orion-interest 
  Sent: Wednesday, January 24, 2001 9:16 
  PM
  Subject: orionconsole bug...
  
  Orion 1.4.5 on Windows 2000 with 
SP1.
  
  I tried to add a new website using 
  orionserver. After I click on "Next", I get the following 
  exception:
  
  Exception occurred during event 
  dispatching:java.lang.IndexOutOfBoundsException: Index: -1, Size: 
  0 at 
  java.util.ArrayList.RangeCheck(Unknown 
  Source) at 
  java.util.ArrayList.get(Unknown 
  Source) at 
  com.evermind.gui.server.http.SelectWebAppWizardTask.ay(JAX) 
  at 
  com.evermind.gui.server.http.SelectWebAppWizardTask.init(JAX) 
  at 
  com.evermind.gui.server.http.AddWebSiteWizardTask.auf(JAX) 
  at 
  com.evermind.gui.wizard.AbstractWizard.auf(JAX) 
  at 
  com.evermind.gui.wizard.PanelWizard.actionPerformed(JAX) 
  at javax.swing.AbstractButton.fireActionPerformed(Unknown 
  Source) at 
  javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown 
  Source) at 
  javax.swing.DefaultButtonModel.fireActionPerformed(Unknown 
  Source) at 
  javax.swing.DefaultButtonModel.setPressed(Unknown 
  Source) at 
  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
  Source) at 
  java.awt.Component.processMouseEvent(Unknown 
  Source) at 
  java.awt.Component.processEvent(Unknown 
  Source) at 
  java.awt.Container.processEvent(Unknown 
  Source) at 
  java.awt.Component.dispatchEventImpl(Unknown 
  Source) at 
  java.awt.Container.dispatchEventImpl(Unknown 
  Source) at 
  java.awt.Component.dispatchEvent(Unknown 
  Source) at 
  java.awt.LightweightDispatcher.retargetMouseEvent(Unknown 
  Source) at 
  java.awt.LightweightDispatcher.processMouseEvent(Unknown 
  Source) at 
  java.awt.LightweightDispatcher.dispatchEvent(Unknown 
  Source) at 
  java.awt.Container.dispatchEventImpl(Unknown 
  Source) at 
  java.awt.Window.dispatchEventImpl(Unknown 
  Source) at 
  java.awt.Component.dispatchEvent(Unknown 
  Source) at 
  java.awt.EventQueue.dispatchEvent(Unknown 
  Source) at 
  java.awt.EventDispatchThread.pumpOneEvent(Unknown 
  Source) at 
  java.awt.EventDispatchThread.pumpEvents(Unknown 
  Source) at 
  java.awt.EventDispatchThread.run(Unknown Source)
  
  Anh
  


NameNotFoundException

2001-01-24 Thread S.Badrinarayanan

Hi

Could anyone brief me on the procedure for looking-up a bean from another (orion) 
application?

Regards
sb


Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com




Deploying a simple web site...

2001-01-24 Thread Phan Anh Tran



I have a web-site in a directory called 
"D:\Website\myhome" (only html files and jsp files).

How do I go about telling orion to setup a URL http://localhost/myhome to activate my 
website? I have gone over all the .xml files a dozen times without 
success, so all insights are appreciated. By the way, I do not want 
to package my website at all. I want to stay the way it is to ease 
development efforts.

Thanks.

Anh



SV: Source debugging of EJB/Servlet

2001-01-24 Thread Magnus Rydin
Title: SV: Source debugging of EJB/Servlet





Orion supports unpackaged .WAR and .EAR archives.
unpack your app in your applicattions library so that it looks something like
.../orion/
 /applications/
 /myear/
 /META-INF
 /com


then just reference the /myear/ directory instead of the myear.ear file.


WR


 -Ursprungligt meddelande-
 Från: hanasaki [mailto:[EMAIL PROTECTED]]
 Skickat: den 24 januari 2001 14:02
 Till: Orion-Interest
 Ämne: Source debugging of EJB/Servlet
 
 
 The Servlet and JSP is not so difficult becuse orion compiles 
 the source
 and the .class/.java files are all in the filesystem
 
 How is it done with EJB's since the EAR / WAR files must be built to
 deploy?
 





AW: Rationale for ejb-ref element?

2001-01-24 Thread hartmut wilms

Hi Satish,

there is a good reason for having ejb-ref tag in your deployment
descriptor. Although it isn't neccessary to put your beans in the reference
list, you might do it in order to support the 'write-once' paradigm.

Suppose that there are 3 beans in your jar. Each bean references the other
in some way. If you map your references via ejb-ref (e.g. "ejb/a",
"ejb/b", "ejb/c") you are free to deploy each bean under any name in your
JNDI tree without loosing your references.

What I try to say is, that you might use "ejb/foo/BEAN_A" on one server and
"ejb/another_foo/EJB_A" on another. Your references within the bean code (-
"ejb/a") will still work without changing your code.

ejb-ref is a MAPPING of JNDI-NAME-REFERENCES. One might wonder why in the
world anyone would deploy his beans using different JNDI-NAMES, but
sometimes there are naming conventions on one server that differ from those
on other servers...

Hartmut

-Ursprngliche Nachricht-
Von: Globetrot Communications [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. Januar 2001 19:07
An: Orion-Interest
Betreff: Rationale for ejb-ref element?


What is the rationale for having ejb-ref element? I
know the spec says that with this approach and ejb-ref
is visible only within the scope of the referencing
ejb. But that also means that each referenced ejb has
to be included as a ejb-ref element of each
referencing ejb. Doesn't this get away from the
'write-once' paradigm?

Thanks for your input.

Satish

=
__
5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No
other charges
4 cents Domestic calls with no fees:
5 cents per minute International calls also available
http://globetrot.hypermart.net
e-mail: [EMAIL PROTECTED]
__

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/




SV: Deploying a simple web site...

2001-01-24 Thread Magnus Rydin
Title: SV: Deploying a simple web site...





I suggest you take a look at the documentation :)
Here is something you could use:
http://www.orionserver.com/docs/application-creation-howto.html 


If you dont want to create an ear file structure, but just add a unpacked WAR file, do the following:


Edit the .../config/application.xml and add a reference to the root of your unpacked web application, like:


web-module id=myhome-web path=D:\\Website\\myhome /


This will add the unpacked myhome WAR to the default application.
Now edit your .../config/default_web_site.xml file and add a reference like the following:


web-app application=default name=myhome-web root=/myhome /


WR



-Ursprungligt meddelande-
Från: Phan Anh Tran [mailto:[EMAIL PROTECTED]]
Skickat: den 24 januari 2001 23:03
Till: Orion-Interest
Ämne: Deploying a simple web site...



I have a web-site in a directory called D:\Website\myhome (only html files and jsp files).


How do I go about telling orion to setup a URL http://localhost/myhome to activate my website? I have gone over all the .xml files a dozen times without success, so all insights are appreciated. By the way, I do not want to package my website at all. I want to stay the way it is to ease development efforts.

Thanks.


Anh