Re: Oracle Sequences and CMP

2001-02-18 Thread Alex 'Kazuma' Garbagnati


I'm trying to use CMP for beans that map to tables in which the primary key
is an integer that comes from an Oracle SEQUENCE.

How do I get the container to get the next number from the appropriate
SEQUENCE on a create?

You could build a Session Bean that will take care of connecting directly 
to the database and get the "next number" from the given sequence.

If you want, I'll suggest you to take a look to a very interesting thread 
present on www.theserverside.com, regarding a session bean generating 
unique values for PrimaryKeys. It's worth a read.


 Hope this helps...
 Best regards,
 Alex


Cos'e' il genio. E' fantasia intuizione, colpo d'occhio e velocita' 
d'esecuzione. (Amici Miei)

---
Alessandro A. 'Kazuma' Garbagnati
http://www.kazuma.net/   ICQ UIN: 1600386
Mountain View, CA, 94043 - USA





(no subject)

2001-02-18 Thread mastmalanga

hello everyone,

I an new to use orion and this list.
While using the ejb examples shipped with orion I faced a problem,
I introduced the hello() method in one of the ejb,  after deploying
them,
It showed me the error abstract method defined ,
and sometimes no such method found,
when I removed the folder ejbexamples from the application deployment
folder and redeployed it the problem vanished.

Did any one faced the same problem...

Does it mean we can not change the deployed ejb's...

Please tell me if someone knows the answer...


Rajan


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Java Con: NY: First week march. Anyone going?

2001-02-18 Thread Dan Winfield

If any of the people on this list would like to meet up please email me and
we can arrange to meet offline from this list.

I will post though when a meeting time has been decided for any last minute

Dan

Site
http://www.javacon2000.com/





java.io.StreamCorruptedException

2001-02-18 Thread Nils Frohberg

Hi,
since i have update to 1.4.7 i found this message in the log files:

Error restoring application state: java.io.StreamCorruptedException (InputStream does 
not contain a serialized object)

it occurs only from time to time (e.g. everytime orion is started and the first 
request comes along). i haven't noticed any problems occuring due to this, but i'm 
just curious.
--nils




RE: Oracle Sequences and CMP

2001-02-18 Thread Mike Cannon-Brookes

Quite simply, you can't ;)

EJBs must generate their own primary keys. The only way you can do this is
have another bean that runs a custom SQL query to get a new ID from the
sequence and then use that. But this is very ugly, not DB independent and
involves coding SQL in your bean. I don't recommend it at all.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Cramer
 Sent: Sunday, February 18, 2001 5:59 PM
 To: Orion-Interest
 Subject: Oracle Sequences and CMP


 I'm trying to use CMP for beans that map to tables in which the
 primary key
 is an integer that comes from an Oracle SEQUENCE.

 How do I get the container to get the next number from the appropriate
 SEQUENCE on a create?

 Help is appreciated,
 Dan Cramer
 Chief Architect
 Dynamic Resolve, LLC
 Internet Solutions Consulting








RE: Not authorized to view this page

2001-02-18 Thread Adamson, Scott
Title: SV: Not authorized to view this page



I do 
know how to manage these problems - hack away at it for a few hours (quite used 
to doing that on my own time with open source stuff), but I'd prefer not to have 
to deal with trivial crap that can take up a lot of time. I also prefer to use 
products which are of a higher standard than uncle Gates' offerings. Since you 
don't know me and are not familiar with my work I'm not offended by your 
suggestion that I may be in the wrong industry. By the way, I did setup my own 
index.html file,I just didn't expect to have to configure an XML to handle 
html. 

  -Original Message-From: SureTicket.com 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 17, 2001 
  12:40 AMTo: Orion-InterestSubject: RE: Not authorized to 
  view this page
  In 
  case you didnt know, u can do your own setup of welcome files. 
  
  Anything index.jsp, index.htm, 
  index.html...
  Maybe even index.asp... ;) 
  hehe(joking)
  
  As 
  far as commercial products go, dont get anyone 
started.
  FrickinIIS has a default.htm as a welcome file, 
  by default. (I think)
  I 
  guess now i'm gonna need to complain to uncle Gates
  "considering its a commercial product." (Its 
  not like i use it, but still)
  
  If 
  you dont know how to manage these kinda problems you
  are 
  in a wrong industry, no offence or anything.
  
  Anton aka sigg-
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Adamson, 
ScottSent: Thursday, February 15, 2001 4:49 PMTo: 
Orion-InterestSubject: RE: Not authorized to view this 
page
I 
found the problem, it seem that the global-web-application.xml supplied in 
the tutorial didn't have an entry for html, I added it. Also had to rename 
index.htm to index.html, a little disapointing to have these hassles 
considering that were talking about a comercial product.

  -Original Message-From: Magnus Rydin 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 15, 
  2001 6:24 PMTo: Orion-InterestSubject: SV: Not 
  authorized to view this page
  Are the pages protected? Have you 
  added a entry to your principals.xml for the app? What version of Orion are you running? More 
  information needed. WR 
   -Ursprungligt meddelande-  Från: Adamson, Scott [mailto:[EMAIL PROTECTED]] 
   Skickat: den 14 februari 2001 16:05  Till: Orion-Interest  Ämne: Not 
  authorized to view this pageI get the message 'Not authorized 
  to view this page' when  trying to run 
  the  addressbook example from the CMP primer. 
  I believe Orion is working  correctly as I can 
  run the orion-primer example. Any help  much 
  appreciated.   
Come on !! 
  Someone must have had a similar problem, I'm  
  running Orion on Win  NT workstation 
   trying to access the pge from the same machine, how 
  can I not  have access to  something on my own machine ??   I've tried loging in as admin 
  (normal account should have admin rights  
  anyway !) no difference. If any Orion support people monitor this 
  list  please help as I'm evaluating Orion with 
  the view to  deploying it within a 
   10 server cluster ($$$).   regards,  Scott.   


Orion performance tuning

2001-02-18 Thread Mark Helms

We are investigating Orionserver to replace Apache Tomcat.  We could use any
input on performance tuning for servlets.  Has anyone seen a matrix or
formula for initial values that might help us out?  We have approximately
100 internal users that hit the server serving ~90 objects with
approximately 100 - 200  database connections open all the time. Our server
is a SUN E 10K with 8 GIG of ram. I can offer all of the specs if needed.

Your help is greatly appreciated.

thanks,
Mark





RE: Not authorized to view this page

2001-02-18 Thread Kemp Randy-W18971

 Good point, Scott.  Never make judgements about a person until you have walked a mile 
in his mocassins -- old Native American proverb.  Or here is my own saying.  Someday 
my teacher may be my student and my student may be my teaccher. 

-Original Message-
From: Adamson, Scott
To: Orion-Interest
Sent: 2/18/01 4:19 PM
Subject: RE: Not authorized to view this page

I do know how to manage these problems - hack away at it for a few hours
(quite used to doing that on my own time with open source stuff), but
I'd prefer not to have to deal with trivial crap that can take up a lot
of time. I also prefer to use products which are of a higher standard
than uncle Gates' offerings. Since you don't know me and are not
familiar with my work I'm not offended by your suggestion that I may be
in the wrong industry. By the way, I did setup my own index.html file, I
just didn't expect to have to configure an XML to handle html. 

-Original Message-
From: SureTicket.com [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 12:40 AM
To: Orion-Interest
Subject: RE: Not authorized to view this page


In case you didnt know, u can do your own setup of welcome files. 
Anything index.jsp, index.htm, index.html...
Maybe even index.asp... ;) hehe (joking)
 
As far as commercial products go, dont get anyone started.
Frickin IIS has a default.htm as a welcome file, by default. (I think)
I guess now i'm gonna need to complain to uncle Gates
"considering its a commercial product." (Its not like i use it,
but still)
 
If you dont know how to manage these kinda problems you
are in a wrong industry, no offence or anything.
 
Anton aka sigg- 

-Original Mess age-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Adamson, Scott
Sent: Thursday, February 15, 2001 4:49 PM
To: Orion-Interest
Subject: RE: Not authorized to view this page


I found the problem, it seem that the global-web-application.xml
supplied in the tutorial didn't have an entry for html, I added it. Also
had to rename index.htm to index.html, a little disapointing to have
these hassles considering that were talking about a comercial product.

-Original Message-
From: Magnus Rydin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 6:24 PM
To: Orion-Interest
Subject: SV: Not authorized to view this page



Are the pages protected? 
Have you added a entry to your principals.xml for the app? 
What version of Orion are you running? 
More information needed. 
WR 

 -Ursprungligt meddelande- 
 Frn: Adamson, Scott [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
 Skickat: den 14 februari 2001 16:05 
 Till: Orion-Interest 
 mne: Not authorized to view this page 
 
 
 I get the message 'Not authorized to view this page' when 
 trying to run the 
 addressbook example from the CMP primer. I believe Orion is working 
 correctly as I can run the orion-primer example. Any help 
 much appreciated. 
 
 
 
 Come on !! Someone must have had a similar problem, I'm 
 running Orion on Win 
 NT workstation 
 trying to access the pge from the same machine, how can I not 
 have access to 
 something on my own machine ?? 
 
 I've tried loging in as admin (normal account should have admin rights

 anyway !) no difference. If any Orion support people monitor this list

 please help as I'm evaluating Orion with the view to 
 deploying it within a 
 10 server cluster ($$$). 
 
 regards, 
 Scott. 
 
 





Applets in J2EE Presentation Layer

2001-02-18 Thread Jay Abraham

A few months ago there was a spirited discussion about
the possible demise of the applet wrt to J2EE
application development.  I'm unable to find this
thread in the archives.  Does anyone have any link to
it?

Also, is there anyone who is currently using, or has
previously successfully used, applets in a production
orion application?  I would appreciate knowing your
experiences.

Thanks.

Jay

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/




Re: How can I run two instances of orion on single m/c

2001-02-18 Thread Mohit Palhan


I am sorry for being extremely late in my reply but I guess you would be
knowing by now!!
If not then you just change the port number in the rmi.xml file in
the config directory :-\
?xml version="1.0"?>
!DOCTYPE rmi-server PUBLIC "Orion RMI-server" "http://www.orionserver.com/dtds/rmi-server.dtd">
rmi-server port="4000">
!-- A remote server connection example -->
!-- server host="the.remote.server.com" username="adminUser"
password="123abc" /> -->
!-- path to the log-file where RMI-events/errors are stored
-->
log>
 file path="../log/rmi.log" />
/log>
/rmi-server>
And similarly for the other.
mohit
Have a nice day :-)
Kesav Kumar wrote:
I want to run two instances of orion servers on a
single m/c on different
ports. Is it possible to run two instances on the same m/c?
Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:[EMAIL PROTECTED]
http://www.voquette.com

--
*
The information contained in this message (including any attachments)
is confidential and may be legally privileged.
If you are not the intended recipient, please delete it from your system
immediately - any disclosure, copying or distribution thereof or any action
taken or omitted to be taken in reliance thereon is prohibited and may
be unlawful.AITPL makes no warranty as to the accuracy or completeness
of any information contained in this message and hereby excludes any liability
of any kind for the information contained herein or for the transmission,
reception, storage or use of such information in any way whatsoever.
Any opinions expressed in this message are those of the author and do not
necessarily reflect the opinions of AITPL.
*



How to define a data type in cmp field???

2001-02-18 Thread setareh jalili

Hi,
I'm developing an EJB component based on CMP and I'm
facing a limitation in orion's CMP engine: how can I
map a field of my ejb to a long database field? The
field is a variable-length long java.lang.String field
used for comments a user enters, and I want it to
store it in database using orion's CMP.

thanks in advance
-sj

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/