Re: 2 many messages - News Server needed. - Or we could split the list

2000-10-18 Thread Miles Daffin


 Actually, I think the mail list is fine. I use a filter to move these
 messages into their own folder.

Good idea.

 However, I do feel that some improvement is possible. I recomend splitting
 the list into a few other lists.

Yes - create 2 news groups. The main point of this is the automatic ordering
of threads that this allows, in my email client at least. I can see a root
message and the whole, dialogic line of consequent messages. What's so wrong
with that?

 Probably the most obvious split is between
 developers using Orion and administers trying to maintain, configure and
 install it.

Like I said - 2 news groups.






Re: JSP-Compiled Servlets ??

2000-10-18 Thread Miles Daffin



Look in this directory (assuming your app's name is 
test1): 
orion 
root\application-deployments\test1\test1-web\persistence\jsp



  - Original Message - 
  From: 
  Santosh 
  Kumar 
  To: Orion-Interest 
  Sent: Wednesday, October 18, 2000 10:48 
  AM
  Subject: JSP-Compiled Servlets ??
  
  hi all,
   Weknow that JSP are compiled 
  into servlets. In Jrun, I canview 
  the
  equivalent servlet source code for the JSP. 
  ButOrion doesnt seem to provide
  the source as well as class file. All it 
  creates is a binary jsp.Cache file.
  
  But my job is to get into the code and see how 
  the servlet is getting written
  and compare with servlets generated thru other 
  jsp-engines. What do i do?
  
  Regards,
  Santosh
  
   
  Santosh Kumar 
  C 
  == Senior Systems 
  Engineer 
  == Wipro 
  Technologies 
  == 1-8-448, Laxmi Building, S.P. 
  Road, 
  == Begumpet, Secunderabad - 500 
  003 
  == A.P, 
  India. 
  == Phone@: 91407896008 Ext 
  4511 
  == Fax @: 
  91407896123 
  == eMail@: [EMAIL PROTECTED] 
  == url @: http://www.wipro.com 
  == The World's First SEI CMM Level 5 Software Services 
  Company 
   
  


2 many messages - News Server needed.

2000-10-17 Thread Miles Daffin



Hi Folks,

I have not picked up my email for 2 days and have 
just downloaded 108 Orion-Interest messages. Imagine what would 
have happened if I had left this job until Friday.

I think it is time to turn this thing into a news 
group. It would also make it easier to see,follow, save  
contribute to separate threads. In fact I cannot see a reason not to do 
this.

Maybe you can.
--Miles DaffinJava 
DeveloperHOT Company BV Mathernesserlaan 171 3014 HA 
Rotterdam

Land: +31 (0) 10 476 2500Fax: +31 (0) 10 476 
5762Mobile: +31 (0) 2959 1423http://www.hotobjects.nl


Re: Orion 1.3.8 and Servlets

2000-10-17 Thread Miles Daffin
Title: RE: Orion 1.3.8 and Servlets



Are core classes reloaded too? I have found that if 
I change  recompile utility classes used by a Servlet or JSP these are not 
updatedif they are already loaded. Servlets and JSPs are (development 
="true"). What do you mean by a 'core class'?


  - Original Message - 
  From: 
  Duffey, 
  Kevin 
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 6:59 
  PM
  Subject: RE: Orion 1.3.8 and 
  Servlets
  
  Actually, in orion-web.xml (located in 
  /orion/application-deployments/app_name/web_app_name/orion-web.xml) there is a 
  setting for development..which you said. But also there is another option, 
  called source-directory="/path/dir" and when development="true" every time you 
  save the file, Orion will auto-reload your web-app for you (and I don't think 
  it shows you this in its output window..but maybe it does). I have not been 
  able to see this work, mostly because if ANY of your HttpSession objects do 
  not implement Serializable, it wont' work for some reason. Our code is jacked 
  up enough where we do not do it right. Anyways, Orion and Resin are the only 
  two servlet engines (Orion being a full J2EE app server too) that auto-reload 
  your entire app, even if you change code in a "core" class. Most app servers 
  and servlet engines reload only servlets and/or JSPs/javabeans, not core 
  classes, and so on. Just make sure when you deploy to production your turn 
  development off ("false"). In the /docs folder, look at 
  orion-web.xml.html..it will explain this to you.
  
  
-Original Message-From: Hani Suleiman 
[mailto:[EMAIL PROTECTED]]Sent: Monday, October 16, 2000 7:16 
AMTo: Orion-InterestSubject: RE: Orion 1.3.8 and 
Servlets
If you 'touch' any of the configuration files for your 
application (eg, web.xml), then Orion will reload that app. I use an ant 
build script which after installing the app, uses the touch task to force 
Orion to reload. 
-Original Message- From: 
[EMAIL PROTECTED] To: 
Orion-Interest Sent: 10/16/2000 9:48 AM 
Subject: Orion 1.3.8 and Servlets 
Guys, 
I have this small problem with my servlets.. 
whenever I make changes to them and recompile them, I have 
to restart my orion for the changes to take effect.. 
I know there is a development mode which auto 
compiles the files but I suppose that only applies 
to JSP's ? 
so what I would like to know is whether it is possible to 
compile servlets and have the changes take effect 
immediately without having to restart, kinda like 
installing a new .ear or .war file. 
sincerely, 
Arjan Wijnveen MarketXS B.V. 



Re: orionsupport.com

2000-10-17 Thread Miles Daffin

 I think better sources of information then the standard documentation is
great and very helpful for people
 using Orion. I have sometimes great difficulties getting things sorted out
to the extend I'm wondering whether
 I'm on the right track. Assuming I'm not the only one in that situation, I
guess more documentation and more
 easy to understand examples is something a lot of (potential) Orion users
will be happy with (I wish the guys
 of Orion lots of licence sales to be able to spend more resources on
better documentation).

Hear hear! Great server - pity they have so far not gone that Xtra mile.







Re: displaying xml

2000-10-17 Thread Miles Daffin



How about something like-a-this as well: http://www.c2.com/cgi/wiki?WikiWikiWeb

  - Original Message - 
  From: 
  Hani 
  Suleiman 
  To: Orion-Interest 
  Sent: Tuesday, October 17, 2000 2:57 
  AM
  Subject: RE: displaying xml
  
  Or 
  how about a faq-o-matic? Seems ideal for this kind of 
  thing.
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On 
Behalf Of Porfiriev SergeySent: Monday, October 16, 2000 8:33 
PMTo: Orion-InterestSubject: Re: displaying 
xml

To Magnus  Karl Avedal:

it will be good idea to open "users contribution" topic at www.OrionServer.com
( like orionsupport was). and as result traffic 
in orion-interest will be decreased :)

- Original Message - 

  From: 
  Derek Akers 
  
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 6:44 
  PM
  Subject: Re: displaying xml
  
  Hi Troy, thanks, but I've already tried. the 
  pre /pre tags do preserve the indentation of the XML, but 
  do not allow for the displaying of tags for some 
reason.


1) use xmp /xmp tags - pre 
can;'t help. 

2) use this xsl for XML parsing - ( i use it 
with Salaman's Saxon XSLT engine, but it will work under Orion default XSLT 
(xerces)) 
 it will display your XML as HTML with XML 
reformating and coloring




xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xsl:output 
method="html" encoding="windows-1251" indent="yes"/

!-- Generic stylesheet for viewing 
XML --!-- This stylesheet has been modified to use modes instead 
of nested templates. --!-- Last Updated by Parf: moved to lotus 
xsl, main tag fix --

 xsl:template 
match="/" HTML 
xsl:apply-templates/  
/HTML /xsl:template

 xsl:template 
match="node()" xsl:if 
test="name()!='xml-stylesheet'" 
bbigxsl:textlt;/xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/bbr/ 
DIV STYLE="font-family:Courier; font-size:10pt; 
margin-bottom:0em" 
xsl:apply-templates mode="inside"/ 
/DIV 
bbigxsl:textlt;//xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/b 
/xsl:if /xsl:template

 xsl:template match="*" 
mode="inside" DIV 
STYLE="margin-left:1em" SPAN 
STYLE="color:blue" 
xsl:textlt;/xsl:text 
bxsl:value-of 
select="name()"//b 
xsl:for-each 
select="@*" 
xsl:call-template 
name="attribute"/ 
/xsl:for-each 
xsl:choose 
xsl:when 
test="self::node()" 
xsl:textgt;/xsl:text 
xsl:apply-templates 
mode="inside"/ 
xsl:textlt;//xsl:text 
xsl:value-of 
select="name()"/ 
xsl:textgt;/xsl:text 
/xsl:when 
xsl:otherwise 
xsl:text/gt;/xsl:text 
/xsl:otherwise 
/xsl:choose  
/SPAN /DIV 
/xsl:template

 xsl:template 
name="attribute" SPAN 
STYLE="color:navy" xsl:text 
/xsl:text 
xsl:value-of select="name()"/ 
xsl:text="/xsl:text 
SPAN 
STYLE="color:black" 
xsl:value-of select="."/ 
/SPAN 
xsl:text"/xsl:text 
/SPAN /xsl:template

 xsl:template 
match="comment()" mode="inside" SPAN 
STYLE="color:orange" 
xsl:textlt;!--/xsl:textxsl:value-of 
select="."/xsl:text--gt;/xsl:text 
/SPAN /xsl:template

 xsl:template 
match="processing-instruction()" mode="inside" 
DIV STYLE="margin-left:1em; 
color:maroon" 
xsl:textlt;?/xsl:text 
xsl:value-of select="name"/ 
xsl:text /xsl:text 
xsl:value-of select="."/ 
xsl:text?gt;/xsl:text 
/DIV /xsl:template

 xsl:template match="text()" 
mode="inside" SPAN 
STYLE="color:green" xsl:value-of 
select="."/ /SPAN 
/xsl:template

/xsl:stylesheet


  
- Original Message - 
From: 
Troy E. 
Echols 
To: Orion-Interest 
Sent: Monday, October 16, 2000 5:09 
PM
Subject: Re: displaying xml
Perhaps enclosing the xml in pre /pre 
will work. 
Troy Echols 
Derek Akers wrote: 

  
  Hi all... I am trying to display the 
  contents of an XML file to the screen, embedded inside a JSP 
  page. That is, I want to include a header and footer on the page 
  (for navigation purposes), with the XML in the middle. I want 
  the text to be viewable literally (tags  all), but I have been 
  unable to find a solution...I thought maybe 
  the contentType attribute of the %@ page % directive might do 
  it, but it seems not.Does anyone know of a 
  way to do this?Derek 
  AkersInternet Application Developer 
  Eldan Software, Toronto (416) 341-0070 www.eldan.com


Re: displaying xml

2000-10-17 Thread Miles Daffin

If Orion included documentation that was half as decent as their most
excellent server then perhaps the volume of confused, didn't read the
readme.txt file, newbie questions would decrease.

Where are the bird's-eye view diagrams - server architecture, topology,
relationships between xml files etc? Not that hard for a good developer to
knock up, and clearer by far than pages of liner descriptions.



 The lack of self starters? Here? You have GOT to be kidding!

 --On Tuesday, October 17, 2000 8:11 AM -0400 "Joseph B. Ottinger"
 [EMAIL PROTECTED] wrote:

  Or, of course, orionsupport.com, which I know at least two other people
  might be working on, and I'm considering reviving it myself.
 
  Although, honestly, the lack of self-starters here is rather
  annoying... "Why doesn't somebody ELSE do it" is a crappy way to go
about
  development.
 
 
  On Mon, 16 Oct 2000, Hani Suleiman wrote:
 
  Or how about a faq-o-matic? Seems ideal for this kind of thing.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
  Sergey Sent: Monday, October 16, 2000 8:33 PM
  To: Orion-Interest
  Subject: Re: displaying xml
 
 
 
  To Magnus  Karl Avedal:
 
  it will be good idea to open "users contribution" topic at
  www.OrionServer.com http://www.OrionServer.com
  ( like orionsupport was). and as result traffic in orion-interest will
be
  decreased :)
 
  - Original Message -
 
  From: Derek Akers mailto:[EMAIL PROTECTED]
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 6:44 PM
  Subject: Re: displaying xml
 
 
  Hi Troy, thanks, but I've already tried.  the pre /pre tags do
  preserve the indentation of the XML, but do not allow for the
displaying
  of tags for some reason.
 
 
  1) use xmp /xmp tags - pre can;'t help.
 
  2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
  engine, but it will work under Orion default XSLT (xerces))
  it will display your XML as HTML with XML reformating and coloring
 
 
 
 
  xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
  http://www.w3.org/1999/XSL/Transform" version="1.0"
  xsl:output method="html" encoding="windows-1251" indent="yes"/
 
  !-- Generic stylesheet for viewing XML --
  !-- This stylesheet has been modified to use modes instead of nested
  templates. --
  !-- Last Updated by Parf: moved to lotus xsl, main tag fix --
 
xsl:template match="/"
 HTML
  xsl:apply-templates/
 /HTML
/xsl:template
 
xsl:template match="node()"
 xsl:if test="name()!='xml-stylesheet'"
  bbigxsl:textlt;/xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/bbr/
  DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt;
  margin-bottom:0em" xsl:apply-templates mode="inside"/
  /DIV
  bbigxsl:textlt;//xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/b
 /xsl:if
/xsl:template
 
xsl:template match="*" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em"
SPAN DEFANGED_STYLE="color:blue"
  xsl:textlt;/xsl:text
  bxsl:value-of select="name()"//b
  xsl:for-each select="@*"
xsl:call-template name="attribute"/
  /xsl:for-each
  xsl:choose
xsl:when test="self::node()"
  xsl:textgt;/xsl:text
  xsl:apply-templates mode="inside"/
  xsl:textlt;//xsl:text
  xsl:value-of select="name()"/
  xsl:textgt;/xsl:text
/xsl:when
xsl:otherwise
  xsl:text/gt;/xsl:text
/xsl:otherwise
  /xsl:choose
/SPAN
  /DIV
/xsl:template
 
xsl:template name="attribute"
  SPAN DEFANGED_STYLE="color:navy"
xsl:text /xsl:text
xsl:value-of select="name()"/
xsl:text="/xsl:text
SPAN DEFANGED_STYLE="color:black"
  xsl:value-of select="."/
/SPAN
xsl:text"/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="comment()" mode="inside"
  SPAN DEFANGED_STYLE="color:orange"
xsl:textlt;!--/xsl:textxsl:value-of
  select="."/xsl:text--gt;/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="processing-instruction()" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
xsl:textlt;?/xsl:text
xsl:value-of select="name"/
xsl:text /xsl:text
xsl:value-of select="."/
xsl:text?gt;/xsl:text
  /DIV
/xsl:template
 
xsl:template match="text()" mode="inside"
  SPAN DEFANGED_STYLE="color:green"
xsl:value-of select="."/
  /SPAN
/xsl:template
 
  /xsl:stylesheet
 
 
 
  - Original Message -
  From: Troy E.  mailto:[EMAIL PROTECTED] Echols
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 5:09 PM
  Subject: Re: displaying xml
 
  Perhaps enclosing the xml in pre /pre will work.
 
  Troy Echols
 
 
  Derek Akers wrote:
 
 
   Hi 

Library path.

2000-10-12 Thread Miles Daffin



Hi People,

The /config/application.xml definesa general 
library path for theServer.

library path="../lib" /
Is it possible to:
1) Add to this. If so what is the syntax? (';' as a 
path separator within the same quotes?)
2) I would like to have custom lib paths for each 
app. Can this be done? (I have tried adding the library tag to an 
application.xml without success).

If I have missed something in the documentation 
please point out the page.

Thanks.

--Miles DaffinJava 
DeveloperHOT Company BV Mathernesserlaan 171 3014 HA 
Rotterdam

Land: +31 (0) 10 476 2500Fax: +31 (0) 10 476 
5762Mobile: +31 (0) 2959 1423http://www.hotobjects.nl


Re: NEWBIE QUESTION: How do I shut this thing down

2000-10-12 Thread Miles Daffin

See the 'orion/Readme.txt' (should be renamed to README_FIRST.txt - I missed
it for days).

Follow the instructions. General ACL stuff is set in /config/principals.xml.

* To shutdown:java -jar admin.jar ormi://localhost/ adminID
adminPass -shutdown
* To restart:java -jar admin.jar ormi://localhost/ adminID
adminPass -restart

Some people (me too) have had trouble with -restart command. You can get all
kinds of Exceptions at various times, and I cannot see why (the weather?). I
run all commands from batch files so I know it's not typos. Mostly it works
but sometimes it doesn't. -shutdown almost always works. Ctrl + C works
every time!

 Hi Guys,

 I have trawled through the docs to try and find a way to shut orion down
 cleanly, however I can't find the default username and password in order
to
 shut it down. Can you guys let me know what it is?

 cheers

 Rob







Re: NEWBIE QUESTION:Configuring a web application, that is not contained in a WAR file

2000-10-12 Thread Miles Daffin

 Can you give me a brief overview of how to get Orion to serve this
 application.
1) Have you go the thing to serve the default website and its default
application?
2) If 1 look at the supplied docs - the How-To's section.
3) Then look at: http://www.znerd.demon.nl/orion-primer/
Summary of Primer:
## BASIC STEPS ###

Step 1: Setup directory structure

Snip

Step 8: Write the Web deployment descriptor
- web.xml: Servlets  aliases.

Snip

Step 10: Install the application
To actually install our application, we need to add the following line to
server.xml
in the Orion configuration directory (orion/config):
 application  name="orion-primer"
   path="path to ear file"  /
In my case:

 application  name="orion-primer"
   path="/home/ernst/projects/orion-primer/rel/orion-primer.ear"
/

Step 11: Bind the web application - ***
Now we need to bind the web application to the default site.
This is done by adding the following line to the file default-web-site.xml
in the Orion configuration directory:
 web-app  application="orion-primer"
   name="orion-primer-web"
   root="/orion-primer"  /

Step 12: Start Orion

I combined this with the directory structure suggested in the How-To's
section: /docs/application-creation-howto.html.

It takes a while to get your head around the relationships between the
varios XML files - Orion's and the ones that link up an app. I have got an
app serving HTML, JSP, Servlet as a basic development env in about 3/4 days.





Re: NEWBIE QUESTION:Configuring a web application, that is not contained in a WAR file

2000-10-12 Thread Miles Daffin

 Can you give me a brief overview of how to get Orion to serve this
 application.
1) Have you go the thing to serve the default website and its default
application?
2) If 1 look at the supplied docs - the How-To's section.
3) Then look at: http://www.znerd.demon.nl/orion-primer/
Summary of Primer:
## BASIC STEPS ###

Step 1: Setup directory structure

Snip

Step 8: Write the Web deployment descriptor
- web.xml: Servlets  aliases.

Snip

Step 10: Install the application
To actually install our application, we need to add the following line to
server.xml
in the Orion configuration directory (orion/config):
 application  name="orion-primer"
   path="path to ear file"  /
In my case:

 application  name="orion-primer"
   path="/home/ernst/projects/orion-primer/rel/orion-primer.ear"
/

Step 11: Bind the web application - ***
Now we need to bind the web application to the default site.
This is done by adding the following line to the file default-web-site.xml
in the Orion configuration directory:
 web-app  application="orion-primer"
   name="orion-primer-web"
   root="/orion-primer"  /

Step 12: Start Orion

I combined this with the directory structure suggested in the How-To's
section: /docs/application-creation-howto.html.

It takes a while to get your head around the relationships between the
varios XML files - Orion's and the ones that link up an app. I have got an
app serving HTML, JSP, Servlet as a basic development env in about 3/4 days.

You don't need to mess with EJBs at 1st, if ever

Last tip: look at the Orion default web app structure.







Re: New 2 Orion.

2000-10-11 Thread Miles Daffin



Mark,

I found this in the ReadMe.txt in the Orion install 
dir:
See the NB: below.
The general passwords are in 
config/principals.xml


---
Please visit http://www.orionserver.com or send an 
email to [EMAIL PROTECTED] for 
information about this product.

This version is only for development use or for 
non-commercialuse. You need to purchase a license from http://www.orionserver.comto be able 
to use this server commercially.

** NB: You need this bit ** 
To install the server:java -jar orion.jar 
-installfollow the instructions

To start the server:java -jar 
orion.jarorjava -jar orion.jar -config 
my/path/to/server.xml

Good luck!The Orion team

This product uses Hypersonic SQL as an example 
database, more info aboutHypersonic SQL can be found at http://hsql.oron.ch/.

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: Orion-Interest 
  Sent: Wednesday, October 11, 2000 3:43 
  AM
  Subject: RE: New 2 Orion.
  Where is "youradminpw" 
  configured? Presumably one of the various XML files, but which one, and 
  is there an example? Haven't been able to find it in the docs. 
  Thanks! --Mark 
  


  
  Nathan Phelps [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

10/07/00 12:43 PM Please respond to Orion-Interest 
  To:   
 Orion-Interest 
[EMAIL PROTECTED] cc:

 Subject:RE: New 2 
Orion.1.) You can cleanly shut Orion down using the following command: java 
  -jar admin.jar ormi://yourservername admin youradminpw -shutdown 
  Or, you can use the Orion console by 
  right-clicking on the Server and choosing Shutdown from the Context-sensitive 
  menu.  2.) See http://www.znerd.demon.nl/orion-primer/ -Original Message-From: Miles Daffin 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, October 07, 2000 
  2:12 PMTo: Orion-InterestSubject: New 2 
  Orion.Hi,  I have 
  2 questions for the Community:  1) I can start Orion (1.3.8) 
  using a batch file but I cannot believe that the only way to stop it is 'Ctrl 
  - c'. Is it? 2) I find the instructions for 
  creating a new application a little scanty - does anyone know where I can find 
  a real idiots', step by tedious step, guide to setting up an alternative to 
  the default application?  Thanks.  
   --Miles Daffin Java Developer, Netherlands.  
   Land: +31 (0)10 476 2412Mobile: +31 (0)6 2959 1423Permanent 
  email: [EMAIL PROTECTED] 



Re: hi all

2000-10-11 Thread Miles Daffin

 Question 1.
 The doubt is about System.out.println()
 System is a class and out is a variable in System
 class.

Yes - a public static one, which means:
a) The world can use it.
b) When the world wants to use it they prefix the name of the owning class
rather than an instance reference.


 a.how can you call println in System class.
println() is not in the System class, it is in the PrintStream class. You
are accessing System's public instance, which
by default is wired to 'the screen'.


 Question 2.

 AppletContext is an interface.you cannot create
 objects of interface.
 but when you call getAppletContext() method you get an
 object of the interface.How is this possible.
You are getting an implementation of the interface, an object instantiated
from a class definition that
implements this interface. You see this object from the point of view of the
interface type reference.

 In RMI also i saw a method which will give an object
 for an interface.
 how is it possible.

For the same reason as above. This is a common way of cutting down on
implementation dependencies within
systems. You define an interface (e.g. 'public interface Plok' instead of
'public class Plok'), containing a set of method signatures but no method
bodies. It is possible then to swap (even 'hot-swap' at run time)
implementations (e.g. from IBM, Sun, Netscape) without breaking the rest of
the code.

It takes a while to fully grasp the potential of this, one of the most
powerful feature of the Java language.

MD





Re: Getting all messages twice today

2000-10-11 Thread Miles Daffin

 Hi;
 
 I am receiving all messages from the Orion interest group twice.  Is
 anyone else having this problem today?
 
 Cathy Dull

You certainly aren't ;-))

Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!

 





Re: Getting all messages twice today

2000-10-11 Thread Miles Daffin

 Hi;
 
 I am receiving all messages from the Orion interest group twice.  Is
 anyone else having this problem today?
 
 Cathy Dull

You certainly aren't ;-

Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!
Me 2!

 






Re: how to capture stdout ?

2000-10-09 Thread Miles Daffin

Until someone tells you the proper waytry this in a Servlet or JSP:

  File outFile = new File("./System.out.txt");
  FileOutputStream fOut = new FileOutputStream(outFile);
  PrintStream sysOut = new PrintStream(fOut);
  //
  File errFile = new File("./System.err.txt");
  FileOutputStream fErr = new FileOutputStream(errFile);
  PrintStream sysErr = new PrintStream(fErr);
  //
  System.setOut(sysOut);
  System.setErr(sysErr);
  //
  System.out.println("System.out.println()");
  System.err.println("System.err.println()");

--
Miles Daffin
Java Developer, Netherlands.

Land: +31 (0)10 476 2412
Mobile: +31 (0)6 2959 1423
Permanent email: [EMAIL PROTECTED]

- Original Message -
From: "TH Lim" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Sunday, October 08, 2000 1:56 PM
Subject: how to capture stdout ?


 Hi!

 Is there a setting in Orion server where allows me to capture
System.out.println() and System.err.println() in a file? If so, how do set
it?

 thank you

 /lim/







Re: New 2 Orion.

2000-10-09 Thread Miles Daffin

I have now got all 3 basic commands to work from bat files. See attachments.

The key thing was omitting the port number from the ormi://host argument
(thanks shailesh j).

--
Miles Daffin
Java Developer, Netherlands.

Land: +31 (0)10 476 2412
Mobile: +31 (0)6 2959 1423
Permanent email: [EMAIL PROTECTED]

- Original Message -
From: "Luis M Bernardo" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 09, 2000 5:17 PM
Subject: RE: New 2 Orion.




 On Sat, 7 Oct 2000, Nathan Phelps wrote:

  1.) You can cleanly shut Orion down using the following command:
java -jar
  admin.jar ormi://yourservername admin youradminpw -shutdown
  Or, you can use the Orion console by right-clicking on the Server and
  choosing Shutdown from the Context-sensitive menu.
 

 does the -restart switch also works? it doesn't work with me. this is the
 error I get:

 C:\orionjava -jar admin.jar ormi://localhost admin xx -shutdown

 C:\orionjava -jar admin.jar ormi://localhost admin henp123 -restart
 Error: javax.naming.NamingException: Lookup error:
java.net.ConnectException: Co
 nnection refused: no further information; nested exception is:
 java.net.ConnectException: Connection refused: no further
 information


 what is the difference between "java -jar admin -restart" and "java -jar
 orion.jar"?

 thanks.






 StartServer.bat
 RestartServer.bat
 StopServer.bat


Re: EJB vs Servlets

2000-10-09 Thread Miles Daffin

I thought the main idea was that once you had creaed your J2EE deployable
App you could pick it up (in the form of one neat package/jar) and dump it
into any J2EE compliant container - W.O.R.A. la!

Your EJBs implement all the necessary interfaces to allow any J2EE container
to manage them in a multiplicity of ways. The only real question is
viability - just how much load can you app take?

BTW I think (am not certain) there are compliance issues if you use 'good'
tools like VAJ to generate your EJBs. Great if you really like or want ot
use WebSphere?

- Original Message -
From: "Russ White" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 09, 2000 8:32 PM
Subject: RE: EJB vs Servlets


 You should read up on J2EE so you can understand what separation of
 data/logic/presentation is all about. I would recommend any of the
O'Reilly
 books on the subject(s). Also Development of EJBs is very simple.
Especially
 with a good IDE like VA, Forte, or JBuilder. Orion even comes with a
simple tool
 for creating very useful EntityBeans from a GUI.

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin
  Sent: Monday, October 09, 2000 1:22 PM
  To: Orion-Interest
  Subject: EJB vs Servlets
 
 
  Hey all,
 
  I know this is a little off-topic, but seeing as how Orion is about the
only
  fully compliant EJB server, I figured this would be a better place to
ask.
 
  Lately I have talked to a number of people that have been moving towards
EJB
  and pulled back because they have found it to be more tedious to
develop, as
  well as the end result was slower than just using Servlets.
 
  I ask this because it appears to me that the servlet engine (at least
with
  2.2) being able to be failed over, load-balanced, etc, seems to be quite
as
  capable for scalability and fault-tolerance as the ejb engine used to
be. I
  do realize that the EJB container offers transaction management, but
  connection pooling is available in the servlet engine at the server
level as
  well. So, if you lose speed in development time and performance, what is
the
  real benefits of moving to EJB? I should say this with caution..I am
sure
  the EJB engine/container offers some things the servlet container
doesn't,
  but I would think its possible to actually put those abilities in the
  servlet container.
 
  Anyways..I'll be interested in hearing any feedback on this.
 
  Thanks.
 
 







Restart.

2000-10-09 Thread Miles Daffin

The only time I get this particular 'java.net.ConnectException' on
a -restart is if the server is not actually running. I guess it has
something to do with the port that the 'ormi://servername' argument ends up
picking.

Try not specifying a port (worked for me) or specifying the default rmi port
(defined in some people's orion/config/rmi.xml file...?)

- Original Message -
From: "Luis M Bernardo" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 09, 2000 5:17 PM
Subject: RE: New 2 Orion.




 On Sat, 7 Oct 2000, Nathan Phelps wrote:

  1.) You can cleanly shut Orion down using the following command:
java -jar
  admin.jar ormi://yourservername admin youradminpw -shutdown
  Or, you can use the Orion console by right-clicking on the Server and
  choosing Shutdown from the Context-sensitive menu.
 

 does the -restart switch also works? it doesn't work with me. this is the
 error I get:

 C:\orionjava -jar admin.jar ormi://localhost admin xx -shutdown

 C:\orionjava -jar admin.jar ormi://localhost admin henp123 -restart
 Error: javax.naming.NamingException: Lookup error:
java.net.ConnectException: Co
 nnection refused: no further information; nested exception is:
 java.net.ConnectException: Connection refused: no further
 information


 what is the difference between "java -jar admin -restart" and "java -jar
 orion.jar"?

 thanks.










New 2 Orion.

2000-10-07 Thread Miles Daffin



Hi,

I have 2 questions for the Community:

1) I can start Orion (1.3.8) usinga batch 
file but I cannot believe that the only way to stop it is 'Ctrl - c'. Is 
it?
2) I find the instructions for creating a new 
application a little scanty - does anyone know where I can find a real idiots', 
step by tedious step, guide to setting up an alternative to the default 
application?

Thanks. 


--Miles DaffinJava Developer, 
Netherlands.

Land: +31 (0)10 476 2412Mobile: +31 (0)6 2959 
1423Permanent email: [EMAIL PROTECTED]