RE: Orion's JSP generated code

2001-07-20 Thread Kevin Duffey



I have 
noticed the same thing. There seems to be no way to avoid this. I have no idea 
why they do it too..it does add tons of empty lines throughout the 
html.
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Sergei 
  BatiukSent: Friday, July 20, 2001 3:25 AMTo: 
  Orion-InterestSubject: Orion's JSP generated 
  code
  Hi forum,
   
  I have noticed that when I use scriplets or 
  tags in my JSPs , orion puts "\r\n" into the output stream code for 
  each tag. This results in many blank lines in the generated HTML code. In 
  comparison, PHP scriplets do not produce these blank lines. 
  Does anyone know how to "beautify" the generated code?
   
  Thanks in advance,
  Sergei.


RE: Disappearing env-entry-mapping from orion-ejb-jar.xml

2001-07-20 Thread elephantwalker

not just env-entry-mapping, its just about everything in the
orion-ejb-jar.xml file.

This is bug 512. I had the problem with group-role mapping. Buts its the
same thing, when server restarts or redeploys the app the orion-ejb-jar.xml
is GENERATED and not COPIED.

You will have to regress to version 1.5.1 as a workaround.

Regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rian Schmidt
Sent: Friday, July 20, 2001 9:21 PM
To: Orion-Interest
Subject: Disappearing env-entry-mapping from orion-ejb-jar.xml


Hi,

Does anyone have any idea why we would be seeing an env-entry-mapping
disappear from orion-ejb-jar.xml upon deployment?  There is a stateless
session bean that reads a value
MSSQL
from a stateless session beans entry in orion-ejb-jar.xml.
And upon deployment the first time, it spits out the right value over and
over (we're forcing it to read the value each time another bean uses the
stateless session bean to read it).  But when we restart the server, the
bean reports the default value instead of the mapped one.  What's more, the
entry is completely gone from the orion-ejb-jar.xml file.

I can provide more information, but I thought I'd check first if this smacks
of anything obvious.

Thanks,
Rian






Disappearing env-entry-mapping from orion-ejb-jar.xml

2001-07-20 Thread Rian Schmidt

Hi,

Does anyone have any idea why we would be seeing an env-entry-mapping
disappear from orion-ejb-jar.xml upon deployment?  There is a stateless
session bean that reads a value
MSSQL
from a stateless session beans entry in orion-ejb-jar.xml.
And upon deployment the first time, it spits out the right value over and
over (we're forcing it to read the value each time another bean uses the
stateless session bean to read it).  But when we restart the server, the
bean reports the default value instead of the mapped one.  What's more, the
entry is completely gone from the orion-ejb-jar.xml file.

I can provide more information, but I thought I'd check first if this smacks
of anything obvious.

Thanks,
Rian





Re: Shutting down orion server!

2001-07-20 Thread RejathM



Hi Rajiv,
You can stop the orion server by going to the orion home directory
where admin.jar file is availalble and in command prompt you can type
java -jar admin.jar ormi://:/  

where
host = ip address or if its ur machine then localhost
port = default port of ormi is 23791 if its not changed then you can
avoid this option
  &  =  is your password and id available in
principals.xml file under the group administrators
options = -shutdown does the shutdown
 = -restart does the restart (but it is better to do shutdown and
then start)
You can make a bat file with this command and execute it.
regards
rejath





"Rajiv R" <[EMAIL PROTECTED]>@orionserver.com on 20/07/2001 18:49:50

Please respond to Orion-Interest <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest <[EMAIL PROTECTED]>
cc:
Subject:  Shutting down orion server!



Having started orion server, I shutdown using  "Ctrl+C" is
this correct way?

Can I make a file (something like a .bat file)  which when run will
shutdown the server?

thanx
regards
rajiv


With Regards,
Rajiv. R
Systems  Engineer,
Wipro Technologies, ITPL, Bangalore
Ph:91-80-8410470-479   Extn:6422
[EMAIL PROTECTED]
http://www.rajspace.org
_
Wipro  Technologies
The World's First SEI-CMM Level 5 Software Services  Company
_
´¯`·.    .·´¯`:
 '·.   ?`·.   .·´?    .·'
 `:--·´    `·--:´
   `·. ' '   .·´
 ;`·-·´;

(See attached file: Wipro_Disclaimer.txt)


 =?iso-8859-1?Q?Wipro=5FDisclaimer.txt?=


Illegal removing from cache

2001-07-20 Thread Simon Harris



I have just encountered the same thing. I have 
registered it as a bug (558). Seems to happen for me in a BMP EJB that has 
exclusive-write-access="false".


RE: Java HotSpot Server VM

2001-07-20 Thread Ed Kuerner

yes, we saw a huge delta in performance between 'client' mode and
'server' mode on solaris 8...and it affected everything from memory,
connection latency, and native i/o calls. we always run in server mode
now..

-Original Message-
From: Setlur, Atul (MED) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 8:07 AM
To: Orion-Interest
Subject: Java HotSpot Server VM


Has anyone compared the performance of their application running using
the HotSpot Clinet VM versus the HotSpot Server VM? I would be
interested in knowing if they found a significant variance in the
numbers. Additionally, what VM execution parameters has anyone tweaked
to improve performance?

On the line of performance, is there a reference to performance tuning
for the Orion App Server? Any information would be appreciated.

Thanks,
-Atul





RE: Shutting down orion server!

2001-07-20 Thread elephantwalker

Please take care with runnable attachtments. If its a .bat or .vbs file,
rename it .bat.txt or .vbs.txt. Likewise for .exe files. Windows isn't as
smart as other operating systems. Another bad file type in windows is .reg,
since opening that kind of file will blow away your operating system
registry.

Regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andre Vanha
Sent: Friday, July 20, 2001 10:04 AM
To: Orion-Interest
Subject: RE: Shutting down orion server!




-Original Message-
From: Rajiv R [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 7:20 AM
To: Orion-Interest
Subject: Shutting down orion server!


Having started orion server, I shutdown using "Ctrl+C" is this
correct way?

Can I make a file (something like a .bat file) which when run will shutdown
the server?

thanx
regards
rajiv


With Regards,
Rajiv. R
Systems Engineer,
Wipro Technologies, ITPL, Bangalore
Ph:91-80-8410470-479  Extn:6422
[EMAIL PROTECTED] 
http://www.rajspace.org 
_
Wipro Technologies
The World's First SEI-CMM Level 5 Software Services Company
_
´¯`·.   .·´¯`:
 '·.   *`·.   .·´*   .·'
 `:--·´   `·--:´
   `·. ' '  .·´
 ;`·-·´;







RE: Shutting down orion server!

2001-07-20 Thread Simon Evans

oh great, i opened the attachment and it ran the bat file!
damn windows!


-Original Message-
From: Andre Vanha [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 10:04 AM
To: Orion-Interest
Subject: RE: Shutting down orion server!


 

-Original Message-
From: Rajiv R [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 7:20 AM
To: Orion-Interest
Subject: Shutting down orion server!


Having started orion server, I shutdown using "Ctrl+C" is this
correct way?
 
Can I make a file (something like a .bat file) which when run will shutdown
the server?
 
thanx
regards
rajiv
 
 
With Regards,
Rajiv. R
Systems Engineer,
Wipro Technologies, ITPL, Bangalore
Ph:91-80-8410470-479  Extn:6422
[EMAIL PROTECTED]  
http://www.rajspace.org  
_
Wipro Technologies
The World's First SEI-CMM Level 5 Software Services Company
_
´¯`·.   .·´¯`:
 '·.   *`·.   .·´*   .·'
 `:--·´   `·--:´
   `·. ' '  .·´
 ;`·-·´; 






RE: Datasource Question - is there a way to setup a JDBC log file?

2001-07-20 Thread Peter Brown

speaking of logging, can anyone explain the best way to see all the JDBC SQL
activity my servlets are causing? Maybe someone has a link that explains the
basics...

Thanks Much

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Attila Bodis
Sent: Friday, July 20, 2001 9:49 AM
To: Orion-Interest
Subject: Re: Datasource Question - is there a way to setup a JDBC log
file?


Bill,

I do just that, i.e. open the log file for writing in the init() method of a
dumb servlet that gets preloaded at startup.  I pick up the path/filename of
the log file from a context-param which I set in web.xml (and override in
orion-web.xml if necessary).

A better way to do all this would be to use log4j, but I haven't had a
chance to look into it in any depth.

Hope this helps,

Attila



- Original Message -
From: "Bill Clinton" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 6:50 AM
Subject: Re: Datasource Question - is there a way to setup a JDBC log file?


> Attila,
>  Thanks alot.  I believe this is what I need, but I am going to
> trouble you with one more question:  Where would you recommend doing
> this in a web application?  I was hoping that there would be somewhere
> to set a log file in the definition of the datasource.  I assume I only
> need to set the logWriter once, so could I do it in the init method of a
> dumb servlet that gets preloaded? Or is there a better time and place to
> set the logWriter?
>
> Thanks again for your response
> Bill
>
> Attila Bodis wrote:
>
> > Bill,
> >
> >   // Use JNDI lookup to locate the data source:
> >   InitialContext ctx = new InitialContext(System.getProperties());
> >   DataSource ds = (DataSource)ctx.lookup(dsName);
> >
> >   // Have the connection pool log to the specified log file:
> >   ds.setLogWriter(myPrintWriter);
> >
> > Where dsName is the name of your datasource (as specified in
> > data-sources.xml) and myPrintWriter is a java.io.PrintWriter object
which
> > writes to the log file of your choice.
> >
> > Hope this helps,
> >
> > Attila
> >
> >
> > - Original Message -
> > From: "Bill Clinton" <[EMAIL PROTECTED]>
> > To: "Orion-Interest" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 18, 2001 4:37 PM
> > Subject: Datasource Question - is there a way to setup a JDBC log file?
> >
> >
> >
> >> Hello,
> >>I am curious on how to set up logging for JDBC.  I thought there
> >> would be a parameter in the data-source definition that would allow
> >> logging.  Does this exist?
> >>
> >> Bill
> >>
> >> btw: I am using oracle
> >>
> >>
> >>
>
>
>







Re: How to bind entityBean's cmp-field attribute with DataBase table' field?

2001-07-20 Thread jacker54

Thanks , That works fine.


- Original Message - 
From: "Jeff Hubbach" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 10:12 PM
Subject: Re: How to bind entityBean's cmp-field attribute with DataBase table' field?


> First, you're going to want to set 2 tags in your orion-application.xml.
> Add these 2 attributes to the  tag at the top:
> autocreate-tables="false" autodelete-tables="false"
> If you're wondering what these tags do, go to:
> http://www.orionserver.com/docs/orion-application.xml.html
> 
> Now go ahead and deploy your bean by adding an  tag to
> this same file. Once it's deployed, go into your application-deployments
> directory (specified in your server.xml), and dig down the following
> path:
> [application-deployments path]/[application name]/[path you set in the
> ejb-module tag]/
> In this directory, there's an orion-ejb-jar.xml file. Go to this URL, it
> is your friend
> http://www.orionserver.com/docs/orion-ejb-jar.xml.html
> 
> In this file, you specify the mappings of your fields, as well as which
> tablename to map to.
> 
> Now the datasource. In your data-source.xml file, you specified an
> ejb-location. You need to add a resource-ref to that location in your
> ejb-jar.xml in the form:
> 
>  
> jdbc/DSN
> com.evermind.sql.OrionCMTDataSource
> Container
>  
> 
> That's it :-)
> 
> Jeff.
> 
> jacker54 wrote:
> 
> > Hi, I am transfer my application from weblogic to orion platform. I
> > encounter some problem with entityBean. How can I bind entityBean's
> > cmp-field attribute with DataBase table' field. my ejb_jar.xml
> > is  
> >sequence.SequenceHome
> >sequence.SequenceHome
> >sequence.Sequence
> >sequence.SequenceBean
> >Container
> >sequence.SequencePK
> >False
> >
> > sequenceId
> >
> >
> > lastNumber
> >
> >
> > minNumber
> >
> >   -- my Question is how to
> > tell entityBean to use which table?and how to combine cmp-field with
> > database field?and althogh I have specified datasource at
> > data-sources.xml, how to specify method to connect with database, ?
> > any help thanks.
> 
> --
> Jeff Hubbach
> Internet Developer
> New Media Designs, Inc.
> www.nmd.com
> 
> 
> 
> 




APJ13 experiences?

2001-07-20 Thread Aaron Tavistock

I'm currently using Apache as a frontend to Orion, where Apache and Orion
are on different machines and different places in the network.  Right now it
works quite well but there are some little minor annoyances (like seeing the
Proxy servers IP in Orions logs instead of the real client, et al). 

At JavaOne Karl told me that APJ13 would solve most of these problems, so
I'm trying to get mod_jk working with Apache.  While setting up mod_jk I
notice that its pretty tomcat specific, but it seems like mod_jk or jserv
are the only options.  

It would be nice to hear if there are any good or bad experiences out there
with using APJ13 on Orion. 




RE: best way to build a link to work in different deployment configurations??

2001-07-20 Thread Patrick Lightbody

Or, to abstract one step further, just have a "url" tag:

">
">

webwork has a tag that does exactly this. It's also a very nice 
framework... check it out.

-Pat

At 08:39 AM 7/20/2001 -0700, elephantwalker wrote:
>Another solution is to create a usr tld/tag for  img
>
>
>
>regards,
>
>the elephantwalker
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Brian Thompson
>Sent: Friday, July 20, 2001 8:02 AM
>To: Orion-Interest
>Subject: best way to build a link to work in different deployment
>configurations??.
>
>
>I have an application that during development is deployed multiple times
>with the following...
> http://devwebsite/customerApp1
> http://devwebsite/customerApp2
>
>In production, I'd like to deploy the applications as...
> http://customerApp1
> http://customerApp2
>
>In the first case file references would look like the following
> 
>while in the second case it should be
> 
>
>My question is what is the best way to handle file references (links,
>images, etc) within the application to support both deployments. We could
>use the request.getContextPath() as a prefix to all file references
> 
>but to do this across an entire application seems like extra overhead. It
>seems like there should be a more elegant solution. I've scoured the orion
>doc to see if there is a way to do this through configuring websites and
>webapps, but with no success. Has anyone discovered a better way??
>
>Thanks.





Re: Shutting down orion server!

2001-07-20 Thread Kishore Atigre

See the options available in

java -jar admin.jar

- Kishor





"Rajiv R" <[EMAIL PROTECTED]> on 07/20/2001 09:19:50 AM

Please respond to Orion-Interest <[EMAIL PROTECTED]>

To:   Orion-Interest <[EMAIL PROTECTED]>
cc:(bcc: Kishore Atigre)

Subject:  Shutting down orion server!



Having started orion server, I shutdown using "Ctrl+C" is this correct
way?

Can I make a file (something like a .bat file) which when run will shutdown the
server?

thanx
regards
rajiv


With Regards,
Rajiv. R
Systems Engineer,
Wipro Technologies, ITPL, Bangalore
Ph:91-80-8410470-479  Extn:6422
[EMAIL PROTECTED]
http://www.rajspace.org
_
Wipro Technologies
The World's First SEI-CMM Level 5 Software Services Company
_



´¯`·.   .·´¯`:
 '·.   




ò`·.   .·´




ò   .·'
 `:--·´   `·--:´
   `·. ' '  .·´
 ;`·-·´;





Having started orion server, I shutdown using 
"Ctrl+C" is this correct way?
 
Can I make a file (something like a .bat file) 
which when run will shutdown the server?
 
thanx
regards
rajiv
 
 
With Regards,Rajiv. RSystems 
Engineer,Wipro Technologies, ITPL, BangalorePh:91-80-8410470-479  
Extn:6422[EMAIL PROTECTED]http://www.rajspace.org_Wipro 
TechnologiesThe World's First SEI-CMM Level 5 Software Services 
Company_´¯`·.   
.·´¯`: '·.   •`·.   .·´•   
.·' `:--·´   
`·--:´   `·. ' '  
.·´ ;`·-·´; 

 Text - character set unknown


Re: best way to build a link to work in different deploymentconfigurations??

2001-07-20 Thread Joseph B. Ottinger

I use a tag to do it, myself.

On Fri, 20 Jul 2001, Brian Thompson wrote:

> I have an application that during development is deployed multiple times
> with the following...
>   http://devwebsite/customerApp1
>   http://devwebsite/customerApp2
> 
> In production, I'd like to deploy the applications as...
>   http://customerApp1
>   http://customerApp2
> 
> In the first case file references would look like the following
>   
> while in the second case it should be
>   
> 
> My question is what is the best way to handle file references (links,
> images, etc) within the application to support both deployments. We could
> use the request.getContextPath() as a prefix to all file references
>   
> but to do this across an entire application seems like extra overhead. It
> seems like there should be a more elegant solution. I've scoured the orion
> doc to see if there is a way to do this through configuring websites and
> webapps, but with no success. Has anyone discovered a better way??
> 
> Thanks.
> 
> 
> 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://adjacency.org/ IT Consultant





RE: best way to build a link to work in different deploymentconfigurations??

2001-07-20 Thread Alex Paransky

Instead of deploying on different path, how about deploying in a different
website on a different port?

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brian Thompson
Sent: Friday, July 20, 2001 8:02 AM
To: Orion-Interest
Subject: best way to build a link to work in different deployment
configurations??


I have an application that during development is deployed multiple times
with the following...
http://devwebsite/customerApp1
http://devwebsite/customerApp2

In production, I'd like to deploy the applications as...
http://customerApp1
http://customerApp2

In the first case file references would look like the following

while in the second case it should be


My question is what is the best way to handle file references (links,
images, etc) within the application to support both deployments. We could
use the request.getContextPath() as a prefix to all file references

but to do this across an entire application seems like extra overhead. It
seems like there should be a more elegant solution. I've scoured the orion
doc to see if there is a way to do this through configuring websites and
webapps, but with no success. Has anyone discovered a better way??

Thanks.







RE: Shutting down orion server!

2001-07-20 Thread Andre Vanha

 

-Original Message-
From: Rajiv R [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 7:20 AM
To: Orion-Interest
Subject: Shutting down orion server!


Having started orion server, I shutdown using "Ctrl+C" is this
correct way?
 
Can I make a file (something like a .bat file) which when run will shutdown
the server?
 
thanx
regards
rajiv
 
 
With Regards,
Rajiv. R
Systems Engineer,
Wipro Technologies, ITPL, Bangalore
Ph:91-80-8410470-479  Extn:6422
[EMAIL PROTECTED]  
http://www.rajspace.org  
_
Wipro Technologies
The World's First SEI-CMM Level 5 Software Services Company
_
´¯`·.   .·´¯`:
 '·.   *`·.   .·´*   .·'
 `:--·´   `·--:´
   `·. ' '  .·´
 ;`·-·´; 



 shutdown.bat


Re: Datasource Question - is there a way to setup a JDBC log file?

2001-07-20 Thread Attila Bodis

Bill,

I do just that, i.e. open the log file for writing in the init() method of a
dumb servlet that gets preloaded at startup.  I pick up the path/filename of
the log file from a context-param which I set in web.xml (and override in
orion-web.xml if necessary).

A better way to do all this would be to use log4j, but I haven't had a
chance to look into it in any depth.

Hope this helps,

Attila



- Original Message -
From: "Bill Clinton" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 6:50 AM
Subject: Re: Datasource Question - is there a way to setup a JDBC log file?


> Attila,
>  Thanks alot.  I believe this is what I need, but I am going to
> trouble you with one more question:  Where would you recommend doing
> this in a web application?  I was hoping that there would be somewhere
> to set a log file in the definition of the datasource.  I assume I only
> need to set the logWriter once, so could I do it in the init method of a
> dumb servlet that gets preloaded? Or is there a better time and place to
> set the logWriter?
>
> Thanks again for your response
> Bill
>
> Attila Bodis wrote:
>
> > Bill,
> >
> >   // Use JNDI lookup to locate the data source:
> >   InitialContext ctx = new InitialContext(System.getProperties());
> >   DataSource ds = (DataSource)ctx.lookup(dsName);
> >
> >   // Have the connection pool log to the specified log file:
> >   ds.setLogWriter(myPrintWriter);
> >
> > Where dsName is the name of your datasource (as specified in
> > data-sources.xml) and myPrintWriter is a java.io.PrintWriter object
which
> > writes to the log file of your choice.
> >
> > Hope this helps,
> >
> > Attila
> >
> >
> > - Original Message -
> > From: "Bill Clinton" <[EMAIL PROTECTED]>
> > To: "Orion-Interest" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 18, 2001 4:37 PM
> > Subject: Datasource Question - is there a way to setup a JDBC log file?
> >
> >
> >
> >> Hello,
> >>I am curious on how to set up logging for JDBC.  I thought there
> >> would be a parameter in the data-source definition that would allow
> >> logging.  Does this exist?
> >>
> >> Bill
> >>
> >> btw: I am using oracle
> >>
> >>
> >>
>
>
>





Re: To many open files ???

2001-07-20 Thread Robert L Gause


This is generally an OS/Shell tunable.

On Unix, take a look at the ulimit command. You may also have to reconfigure
the kernel (OS) for more file handles.

Good luck,
Bob



From: "Eddie" <[EMAIL PROTECTED]>@orionserver.com on 07/20/2001 02:47 PM
  ZE2

Please respond to "Orion-Interest" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   "Orion-Interest" <[EMAIL PROTECTED]>
cc:
Subject:  To many open files ???



I just noticed that the site www.orionserver.com was unreachable and it  give
the error "To many open files"
I have the same problem sometimes. How do you solve  that or how do you monitor
which causes this (without buying tons of memory)  ?  I am running Linux BTW.

Eddie








RE: best way to build a link to work in different deployment configurations??

2001-07-20 Thread elephantwalker

Another solution is to create a usr tld/tag for  img



regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brian Thompson
Sent: Friday, July 20, 2001 8:02 AM
To: Orion-Interest
Subject: best way to build a link to work in different deployment
configurations??.


I have an application that during development is deployed multiple times
with the following...
http://devwebsite/customerApp1
http://devwebsite/customerApp2

In production, I'd like to deploy the applications as...
http://customerApp1
http://customerApp2

In the first case file references would look like the following

while in the second case it should be


My question is what is the best way to handle file references (links,
images, etc) within the application to support both deployments. We could
use the request.getContextPath() as a prefix to all file references

but to do this across an entire application seems like extra overhead. It
seems like there should be a more elegant solution. I've scoured the orion
doc to see if there is a way to do this through configuring websites and
webapps, but with no success. Has anyone discovered a better way??

Thanks.







Re: Shutting down orion server!

2001-07-20 Thread Sergei Batiuk



You must use admin.jar for this 
purpose.
 
You can make the following .bat file:
 
java -jar admin.jar ormi://host<:port> 
username password -shutdown.
 
HTH,
Sergei.

  - Original Message - 
  From: 
  Rajiv R 
  
  To: Orion-Interest 
  Sent: Friday, July 20, 2001 4:19 PM
  Subject: Shutting down orion 
server!
  
  Having started orion server, I shutdown using 
  "Ctrl+C" is this correct way?
   
  Can I make a file (something like a .bat file) 
  which when run will shutdown the server?
   
  thanx
  regards
  rajiv
   
   
  With Regards,Rajiv. RSystems 
  Engineer,Wipro Technologies, ITPL, BangalorePh:91-80-8410470-479  
  Extn:6422[EMAIL PROTECTED]http://www.rajspace.org_Wipro 
  TechnologiesThe World's First SEI-CMM Level 5 Software Services 
  Company_ґЇ`·.   
  .·ґЇ`: '·.   •`·.   .·ґ•   
  .·' `:--·ґ   
  `·--:ґ   `·. ' '  
  .·ґ ;`·-·ґ; 
  


best way to build a link to work in different deployment configurations??

2001-07-20 Thread Brian Thompson

I have an application that during development is deployed multiple times
with the following...
http://devwebsite/customerApp1
http://devwebsite/customerApp2

In production, I'd like to deploy the applications as...
http://customerApp1
http://customerApp2

In the first case file references would look like the following

while in the second case it should be


My question is what is the best way to handle file references (links,
images, etc) within the application to support both deployments. We could
use the request.getContextPath() as a prefix to all file references

but to do this across an entire application seems like extra overhead. It
seems like there should be a more elegant solution. I've scoured the orion
doc to see if there is a way to do this through configuring websites and
webapps, but with no success. Has anyone discovered a better way??

Thanks.






Re: Datasource Question - is there a way to setup a JDBC log file?

2001-07-20 Thread Bill Clinton

Attila,
 Thanks alot.  I believe this is what I need, but I am going to 
trouble you with one more question:  Where would you recommend doing 
this in a web application?  I was hoping that there would be somewhere 
to set a log file in the definition of the datasource.  I assume I only 
need to set the logWriter once, so could I do it in the init method of a 
dumb servlet that gets preloaded? Or is there a better time and place to 
set the logWriter?

Thanks again for your response
Bill

Attila Bodis wrote:

> Bill,
> 
>   // Use JNDI lookup to locate the data source:
>   InitialContext ctx = new InitialContext(System.getProperties());
>   DataSource ds = (DataSource)ctx.lookup(dsName);
> 
>   // Have the connection pool log to the specified log file:
>   ds.setLogWriter(myPrintWriter);
> 
> Where dsName is the name of your datasource (as specified in
> data-sources.xml) and myPrintWriter is a java.io.PrintWriter object which
> writes to the log file of your choice.
> 
> Hope this helps,
> 
> Attila
> 
> 
> - Original Message -
> From: "Bill Clinton" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 4:37 PM
> Subject: Datasource Question - is there a way to setup a JDBC log file?
> 
> 
> 
>> Hello,
>>I am curious on how to set up logging for JDBC.  I thought there
>> would be a parameter in the data-source definition that would allow
>> logging.  Does this exist?
>> 
>> Bill
>> 
>> btw: I am using oracle
>> 
>> 
>> 





Seting up Orion's for handling JSP

2001-07-20 Thread sachin




  Hi all ,
  I want to know how can i create a context in 
  Orion server for handling my  jsp's.
  Its very easy with tomcat , i have to just place 
  the context directory in the webapps directory and the tomcat handles 
  it.
   
  Does any one know  how to do 
  this
   
  Regards
   
  Sachin Z


Shutting down orion server!

2001-07-20 Thread Rajiv R



Having started orion server, I shutdown using 
"Ctrl+C" is this correct way?
 
Can I make a file (something like a .bat file) 
which when run will shutdown the server?
 
thanx
regards
rajiv
 
 
With Regards,Rajiv. RSystems 
Engineer,Wipro Technologies, ITPL, BangalorePh:91-80-8410470-479  
Extn:6422[EMAIL PROTECTED]http://www.rajspace.org_Wipro 
TechnologiesThe World's First SEI-CMM Level 5 Software Services 
Company_´¯`·.   
.·´¯`: '·.   •`·.   .·´•   
.·' `:--·´   
`·--:´   `·. ' '  
.·´ ;`·-·´; 


The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail & notify us immediately at [EMAIL PROTECTED] 




Storing application scoped data in EJB

2001-07-20 Thread Mikael Ståldal

How do I store application scoped data in the EJB tier? Like using
setAttribute()/getAttribute() in ServletContext ("application" in JSP) in
the web tier.

Using instance attributes in Stateless Session Beans doesn't work, since
there can be several instances, and you never know which one is used. Using
static attributes in an EJB class doesn't work well either, since they may
be shared among several applications running in the same server.

Is it possible to use JNDI for this? Can I just use rebind() and lookup()
with arbitrary objects on the EJB JNDI InitialContext, just like I use
ServletContext?





To many open files ???

2001-07-20 Thread Eddie



I just noticed that the site www.orionserver.com was unreachable and it 
give the error "To many open files"
I have the same problem sometimes. How do you solve 
that or how do you monitor which causes this (without buying tons of memory) 
?  I am running Linux BTW.
 
Eddie


Bean managed persistance - connection management.

2001-07-20 Thread Manuel De Jesus

I'm pretty new to EJBs and was wondering about connection pooling mechanism
used. In the J2EE reference implementation the examples of Bean managed
persistance (see below) obtains a reference to a datasource and then it
obtains a connection from the datasource when it is instantiated. The bean
then uses the connection for all database interactions, only calling the
close method when the bean is removed from the container. Does this mean
that for the duration of the existance of the Bean it maintains an open
connection to database ? If this is the case then that would mean if I had
1 beans I would have 1 open DB connections ... ?

Is there a reason why they do not cache the Datasource reference from the
lookup and do a ds.getConnection() in the store and load methods and then
call the con.close() after each is complete ? Does orion/app servers in
general use some kind of wrapper on the Connection object to perform the
pooling at a lower level through the Connection object ? Is there a better
way to handle the connections ... ?

Regards,
Manuel 

> Manuel De Jesus
> Software Engineer - IT
> Vodacom World Online (Pty) Ltd
> 80 Strand Street, Cape Town
> [EMAIL PROTECTED]
> 
> 
> 
/*
 *
 * Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */

import java.sql.*;
import javax.sql.*;
import java.util.*;
import javax.ejb.*;
import javax.naming.*;

public class AccountEJB implements EntityBean {

private String id;
private String firstName;
private String lastName;
private double balance;
private EntityContext context;
private Connection con;
private String dbName = "java:comp/env/jdbc/AccountDB";

public void debit(double amount) 
   throws InsufficientBalanceException {

   if (balance - amount < 0) {
   throw new InsufficientBalanceException();
   }
   balance -= amount;
}

public void credit(double amount) {

   balance += amount;
}
 
public String getFirstName() {
 
   return firstName;
}
 
public String getLastName() {
 
   return lastName;
}
  
public double getBalance() {

   return balance;
}

public String ejbCreate(String id, String firstName, 
   String lastName, double balance)
   throws CreateException {

   if (balance < 0.00) {
  throw new CreateException
 ("A negative initial balance is not allowed.");
   }

   try {
  insertRow(id, firstName, lastName, balance);
   } catch (Exception ex) {
   throw new EJBException("ejbCreate: " + 
  ex.getMessage());
   }

   this.id = id;
   this.firstName = firstName;
   this.lastName = lastName;
   this.balance = balance;

   return id;
}

   public String ejbFindByPrimaryKey(String primaryKey) 
  throws FinderException {

  boolean result;

  try {
 result = selectByPrimaryKey(primaryKey);
   } catch (Exception ex) {
   throw new EJBException("ejbFindByPrimaryKey: " + 
  ex.getMessage());
   }
  if (result) {
 return primaryKey;
  }
  else {
 throw new ObjectNotFoundException
("Row for id " + primaryKey + " not found.");
  }
   }

   public Collection ejbFindByLastName(String lastName)
  throws FinderException {

  Collection result;

  try {
 result = selectByLastName(lastName);
   } catch (Exception ex) {
   throw new EJBException("ejbFindByLastName " + 
  ex.getMessage());
   }

  if (result.isEmpty()) {
 throw new ObjectNotFoundException("No rows found.");
  }
  else {
 return result;
  }
   }

   public Collection ejbFindInRange(double low, double high)
  throws FinderException {

  Collection result;

  try {
 result = selectInRange(low, high);

   } catch (Exception ex) {
   throw new EJBException("ejbFindInRange: " + 
  ex.getMessage());
   }
  if (result.isEmpty()) {
 throw new ObjectNotFoundException("No rows found.");
  }
  else {
 return result;
  }
   }

   public void ejbRemove() {

  try {
 deleteRow(id);
   } catch (Exception ex) {
   throw new EJBException("ejbRemove: " + 
  ex.getMessage());
   }
   } 

   public void setEntityContext(EntityContext context) {

  this.context = context;
  try {
 makeConnection();
  } catch (Exception ex) {
  throw new EJBException("Unable to connect to database. " +
 ex.getMessage());
  }
   }

   public void unsetEntityContext() {

  try {
 con.close();
  } catch (SQLException ex) {
  throw new EJBException("unsetEntityContext: " + ex.getMessage());
  }
   }

   pub

serialization of session data

2001-07-20 Thread John Richardson

Is there any way to get orion to serialize session data
quickly?  I'm looking for a setting to cause the http
session to be passified quickly so I can test 
the serialization of my servlet's http session attributes.

Does orion passivate http sessions at all?

John


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Location Of META-INF folder(s)

2001-07-20 Thread albert

Hi everyone, 
I just have a short query,
I seem to have configured orion to need two META-INF folders,
one at where I have said the path is at in server.xml.
It contains my application.xml file.
the other is with my classes it contains my application-client.xml and my ejb-jar.xml 
files,
What have I done wrong?
Please note that ejbs deployed still work, I just think this loooks incorrect!
Where is my configuration problem?
Thanks,
Albert

Express yourself @ another.com
http://another.com


Orion's JSP generated code

2001-07-20 Thread Sergei Batiuk



Hi forum,
 
I have noticed that when I use scriplets or 
tags in my JSPs , orion puts "\r\n" into the output stream code for 
each tag. This results in many blank lines in the generated HTML code. In 
comparison, PHP scriplets do not produce these blank lines. Does 
anyone know how to "beautify" the generated code?
 
Thanks in advance,
Sergei.


AW: EJB, JDBC and transactions

2001-07-20 Thread Jens Stutte

It's not only OK - you must do it (the connection returned is a wrapper for
a pooled connection and returns it to the pool after the transaction has
finished).
Furthermore you should check very carefull to close explicitely all created
statements, too - some databases will make trouble, otherwise.

Regards

Jens Stutte

> -Ursprüngliche Nachricht-
> Von: Mikael Ståldal [mailto:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 20. Juli 2001 10:54
> An: Orion-Interest
> Betreff: SV: EJB, JDBC and transactions
> 
> > U should manage the JDBC connections as u would do normally.
> 
> And that is?
> 
> Should I do like this in every method?
> 
> {
>   Connection conn = dataSource.getConnection();
> 
>   // use the connection
> 
>   conn.close();
> }
> 
> Is it OK to close() a connection even if the transaction 
> isn't finished?
> 




SV: EJB, JDBC and transactions

2001-07-20 Thread Mikael Ståldal

> U should manage the JDBC connections as u would do normally.

And that is?

Should I do like this in every method?

{
Connection conn = dataSource.getConnection();

// use the connection

conn.close();
}

Is it OK to close() a connection even if the transaction isn't finished?




connectionpooling

2001-07-20 Thread Morten Wilken



i was wondering what the most commen strategy is 
concerning using the connection pool. 
Do you lookup a new Datasource for each call to the 
database (thus keeping connections the shortest time) or do you look up per 
request (thus minimizin lookup overhead)?
what is the best strategy, how do you guys do 
it?
 
sincerely
Morten Wilken


Re: clustering problem

2001-07-20 Thread Morten Wilken

i got it to work quite by chance (it figures, 1 week of failure, and 5 mins
after i posted i figured it out)

and i can offer this piece of advice.. as i stated i followed the howto on
orionserver.com, and the only thing i added was the load-on-startup=true
attribute in the default-web-site.xml, so i guess this is vital

cheers
Morten Wilken
- Original Message -
From: "elephantwalker" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 9:38 PM
Subject: RE: clustering problem


> Morten,
>
> post your server.xml, default-web-site.xml, application.xml, web.xml, and
orion-web.xml. If you are using the load-balancer.xml, post that too.
>
> Regards,
>
> the elephantwalker
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
> Sent: Thursday, July 19, 2001 3:32 AM
> To: Orion-Interest
> Subject: clustering problem
>
>
> hi all
>
> i have a problem configuring orion clustering
> i have downloaded the latest stable release 1.5.2, and followed the howto
on
> the orion site.
> i have 2 pc running and i have made a web application in the default web
> site.
> here i have a simple jsp file a la SessionServlet, that just increments a
> counter
> what happends is this:
> i start the loadbalancer, and then the 2 servers. both registers ok and i
> load up my jsp
> one of the server serves the jsp and the counter increments... i do this
> until it reaches ie 5 and the shut the server down. the other server then
> takes over, imports the session (or so it says), but the counter is the
back
> to 1... then i increment it to ie 10 and start up the first server and
shuts
> down the second and bing the counter is back to 5
>
> so you may say, multicasting on my lan doesnt work and the state is not
sent
> over the multicast ip. i the wrote a small multicast listener that listens
> on 230.0.0.1 port 9128, and the state is sent.. so what gives?
>
> i might add that when using the debug mode on oion, i can see tht the
state
> is sent
>
> Sending HTTP-cluster session value update for session
GIOMGHDOHEJAAfaAuASBA:
> count=7...
>
> but i never see a corresponding
>
> Recieving blabla...
>
> on the other server
>
> if anyone knows whats going on here, or can give some pointers please let
me
> know
>
> sincirely
> Morten Wilken
>
>
>
>