Re: Globally available environment vars

2001-01-05 Thread Reid Hartenbower

Yes.  I use domain contexts just like you describe to store page hit counts,
so I can see traffic from a remote client.

- Original Message -
From: "Tim Endres" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 3:23 PM
Subject: RE: Globally available environment vars


> Are you sure? Seems to me that all you have to do is use the constructor
> InitialContext( Properties props ) to specify the environment that you
wish
> via the java.naming.provider.url property. In other words, can't a web
module
> just use "ormi://host:port/appname" to get a Context that can access the
> environment of the ejb module "appname"?
>
> > well, the problem is that there seems not to be a context which is
> > accessable from all the modules! It looks like this may be a J2EE
deficiency
> > .. I'm just gonna use a properties file ..
> >
> > jd
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith
> > > Sent: Friday, January 05, 2001 1:19 PM
> > > To: Orion-Interest
> > > Subject: RE: Globally available environment vars
> > >
> > >
> > > How about having an initializer bind some property files into
> > > JNDI that can
> > > then be accessed by the web & ejb modules.
> > >
> >
> >
>
>






File Upload Servlet

2001-01-05 Thread Seung Bang

Hello, folks! Happy new year!
I wrote a servlet that uploads files to the server.
The problem with the servlet is that it works but it takes too much time.
I put a couple of print statements at the beginning of the servlet and at the end of
the servlet
for a debuging purpose. Both the print statements responded immediately and uploaded
a file correctly.
At the second upload, when I clicked on the upload button, nothing happended for a
very long time and
then started to print the two statements. The servlet part seems OK. The servlet
itself is processed
quickly enough as all the print statements prints almost at the same time. Now,,
then what?
Something must be taking process before the servlet call.

I searched the orionsupport pages and found a cool class specially designed for
uploading files, which is
com.evermind.io.PostFileInputStream. This appeared great for the first time, but it
started giving
me the `500 Internal Server Error' as follows:


500 Internal Server Error

java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.evermind.io.PostFileInputStream.read(JAX)
at com.freightstream.servlet.FileUpload.writeOut(FileUpload.java:72)
at com.freightstream.servlet.FileUpload.service(FileUpload.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)



What am I doing wrong?  As usual, orion does not have much documentation on how to
use the class.
Please give me a clue. Any idea will help. Thanks a billion.







RE: Question about automated testing with Orion

2001-01-05 Thread Jeff Schnitzer

Out of curiosity, why do you have so much logic in servlets that you
need to test them?  Is your page transition logic that complicated?

I have found that by keeping all my business logic in session beans
(which are tested with JUnitEE, http://www.infohazard.org/junitee), my
servlets/JSPs stay pretty much paper-thin.  Simple functional testing is
all that is required, mostly just to make sure that the html looks good.

Or maybe I'm missing something.  What are you trying to accomplish with
your tests?

Jeff

>-Original Message-
>From: Eric Hodges [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 05, 2001 12:32 PM
>To: Orion-Interest
>Subject: Question about automated testing with Orion
>
>
>I'm trying to set up some automated unit tests for our 
>servlets.  I'm using
>HttpUnit and JUnit, but the authentication in HttpUnit doesn't 
>work with
>Orion.  Does anyone out there have experience at this?  Is 
>there a better
>tool?  Some sort of trick?  I've been talking to the HttpUnit 
>folks, and
>they don't know what to do.  Thanks for any help.
>
>
>




RE: ResultSet Caching

2001-01-05 Thread Neal Kaiser

Right, I definitely wouldn't use an entity bean for list/search
functionality. Way too much
overhead. Stateless session beans is the way to go, but I don't think
throwing in large variable
sets into a session is a good solution either.  Bloated sessions don't
perform well either.
Some app servers provide a caching solution, like Gemstone I believe, and I
was just wondering
if Orion had something similar. I guess it makes most sense to just
re-issue the query for each
page. But if someone has any better ideas, I'm all ears! Thank you.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Conrad Chan
> Sent: Friday, January 05, 2001 5:57 PM
> To: Orion-Interest
> Subject: RE: ResultSet Caching
>
>
> I don't think entity bean can effectively solve your problem
> since calling entity bean can potentially be remote calls.
>
> Why not use session variables?  Session variable is intended for
> temporary storage, like cache data.
>
> Conrad
>
> -Original Message-
> From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 1:18 PM
> To: Orion-Interest
> Subject: RE: ResultSet Caching
>
>
> What's the benefit of using those products over an entity bean then? How
> does it differ?
> Thanks.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wilson
> > Sent: Friday, January 05, 2001 3:50 PM
> > To: Orion-Interest
> > Subject: RE: ResultSet Caching
> >
> >
> > There are products that act as middlemen between you and the
> > Database.  They
> > also offer database object abstraction  (so you can have an object
> > representing table data.  You define field -> property mappings, and the
> > product handles the transfer of data.)
> >
> > These products usually have built-in caching.
> >
> > Two products are
> > TopLink (expensive, but nice)  http://www.objectpeople.com
> > VBSF (pretty inexpensive, and still nice) http://www.objectmatter.com
> >
> > -Original Message-
> > From:   Neal Kaiser [mailto:[EMAIL PROTECTED]]
> > Sent:   Friday, January 05, 2001 10:49 AM
> > To: Orion-Interest
> > Subject:ResultSet Caching
> >
> > Does Orion have any built in caching functionality? Let's
> > say I have a
> > database query which returns 1,000 records and the user will
> > page thru 100
> > at a time.  Instead of re-issuing the query each time (each
> > page), is there
> > some sort of cache object?  How do you guys typically handle
> > this?
> >
> > Thanks, Neal
> >
> >
>
>





Re: Open source and license

2001-01-05 Thread Gerald Gutierrez

At 12:40 PM 1/5/2001 -0600, you wrote:
>If Orion is a full J2EE implementation, they are probably right in not 
>legally releasing the source code as open source.  I found this in the 
>openEJB letter archive at 
>http://openejb.exolab.org/list-archive/msg00103.html, under www.openejb.org

So what are the restrictions?

No one seems to know.

I see this inside the J2EE 1.2 specification:

Sun hereby grants you a fully-paid, non-exclusive, non-transferable, 
worldwide, limited license (without the right to sublicense), under
Sun's intellectual property rights that are essential to practice this 
Specification, to internally practice this Specification solely for the
purpose of creating a clean room implementation of this Specification that: 
(i) includes a complete implementation of the current version of
this Specification, without subsetting or supersetting; (ii) implements all 
of the interfaces and functionality of this Specification, as defined
by Sun, without subsetting or supersetting; (iii) includes a complete 
implementation of any optional components (as defined by Sun in this
Specification) which you choose to implement, without subsetting or 
supersetting; (iv) implements all of the interfaces and functionality of
such optional components, without subsetting or supersetting; (v) does not 
add any additional packages, classes or interfaces to the
"java.*" or "javax.*" packages or subpackages (or other packages defined by 
Sun); (vi) satisfies all testing requirements available from Sun
relating to the most recently published version of this Specification six 
(6) months prior to any release of the clean room implementation or
upgrade thereto; (vii) does not derive from any Sun source code or binary 
code materials; and (viii) does not include any Sun source code or
binary code materials without an appropriate and separate license from Sun. 
This Specification contains the proprietary information of Sun
and may only be used in accordance with the license terms set forth herein. 
This license will terminate immediately without notice from
Sun if you fail to comply with any provision of this license. Sun may, at 
its sole option, terminate this license without cause upon ten (10)
days notice to you. Upon termination of this license, you must cease use of 
or destroy this Specification.

which doesn't say anything about license violations if you open source a 
J2EE implementation, or provide source to a J2EE implementation given a 
customer's agreement to a vendor-provided license.

If there is a legal issue, someone please point it out and provide a 
reference to where it is written.







RE: Globally available environment vars

2001-01-05 Thread Tim Endres

Are you sure? Seems to me that all you have to do is use the constructor
InitialContext( Properties props ) to specify the environment that you wish
via the java.naming.provider.url property. In other words, can't a web module
just use "ormi://host:port/appname" to get a Context that can access the
environment of the ejb module "appname"?

> well, the problem is that there seems not to be a context which is
> accessable from all the modules! It looks like this may be a J2EE deficiency
> .. I'm just gonna use a properties file ..
> 
> jd
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith
> > Sent: Friday, January 05, 2001 1:19 PM
> > To: Orion-Interest
> > Subject: RE: Globally available environment vars
> >
> >
> > How about having an initializer bind some property files into
> > JNDI that can
> > then be accessed by the web & ejb modules.
> >
> 
> 





RE: Accessing multiple databases in the same application

2001-01-05 Thread Tim Endres

If I understand correctly, while it appears that this file is generated,
which it is, if you place your own version in your deployment, the version
you provide will be used as a base, and Orion will just fill in any missing
elements that it requires.

tim.

> There is a default-data-source parameter in orion-application.xml, as in:
> 
>  default-data-source="jdbc/MSSQLDS">
> 
> It looks like this data-source gets propagated to the EJB deployment
> description in orion-ejb-jar.xml, but I don't see a way to specify the
> database prior to deployment so the table gets created in the correct place.
> Am I missing something?





RE: ResultSet Caching

2001-01-05 Thread Conrad Chan

I don't think entity bean can effectively solve your problem since calling entity bean 
can potentially be remote calls.

Why not use session variables?  Session variable is intended for temporary storage, 
like cache data.

Conrad

-Original Message-
From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 1:18 PM
To: Orion-Interest
Subject: RE: ResultSet Caching


What's the benefit of using those products over an entity bean then? How
does it differ?
Thanks.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wilson
> Sent: Friday, January 05, 2001 3:50 PM
> To: Orion-Interest
> Subject: RE: ResultSet Caching
>
>
> There are products that act as middlemen between you and the
> Database.  They
> also offer database object abstraction  (so you can have an object
> representing table data.  You define field -> property mappings, and the
> product handles the transfer of data.)
>
> These products usually have built-in caching.
>
> Two products are
> TopLink (expensive, but nice)  http://www.objectpeople.com
> VBSF (pretty inexpensive, and still nice) http://www.objectmatter.com
>
>   -Original Message-
>   From:   Neal Kaiser [mailto:[EMAIL PROTECTED]]
>   Sent:   Friday, January 05, 2001 10:49 AM
>   To: Orion-Interest
>   Subject:ResultSet Caching
>
>   Does Orion have any built in caching functionality? Let's
> say I have a
>   database query which returns 1,000 records and the user will
> page thru 100
>   at a time.  Instead of re-issuing the query each time (each
> page), is there
>   some sort of cache object?  How do you guys typically handle
> this?
>
>   Thanks, Neal
>
>





Troubles with DataSourceUserManager and RoleManager

2001-01-05 Thread Lawrence8080

Hi all,

I've been struggling with DataSourceUserManager for the past week or so, and

could really use some help. I'm running out of ideas, if anyone can help me

get this last piece figured out, I will create a complete document for

OrionSupport detailing how DataSourceUserManager works, and hopefully stop

these types of questions from floating through here again (how's that for

incentive!)

The problem is occurring when I try to add a user to a role, and Oracle is

kicking back the following error message:

SQL error: ORA-01008: not all variables bound

This looks to me like a problem with the generated SQL code from Orion.



The version of Orion is 1.3.8 and the database is Oracle 8.1.7 Release 2.

The DataSourceUserManager is using two tables for authentication, one to

verify the user and password, and then another to perform the role mappings

for each user.

I can verify a user, their password and their roles. This works with users

that only have one role and users that have more than one role. All the

users are being permitted and restricted properly.

The problem is adding a user to a role. I am trying to do this using a

Servlet that just creates a user and adds them to a role using the

RoleManager.

e.g. a user logs in with Tod / test and then the Servlet runs and tries to

create a user, Bob / test. Then Bob is added to the role "users".

I get this error from the Servlet when trying to execute the method

addToRole(principal, "users"). I am logging in with the user Tod, who has

permission to run the servlet.



Here is the code to add a user to the role:

=

// Handles the HTTP GET request

public void doGet(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException

{

Principal principal;

ServletOutputStream out = response.getOutputStream();

response.setContentType("text/html");

out.println("");

out.println("About to add a new user named Bob");

System.out.println("Starting the addition of a new user.");

try {

RoleManager roleManager = (RoleManager) new

InitialContext().lookup("java:comp/RoleManager");

// This will create a user.

principal = roleManager.createPrincipal("Bob","test");

// This is where the user should be added to the role "users"

roleManager.addToRole(principal, "users"); // this is where bad

things happen

roleManager.store();

} catch (Exception e) {

System.out.println("bad things happened!");

e.printStackTrace();

}

}



If I run this code, I see the following on the output:

=

Starting the addition of a new user.

DataSourceUserManager.getUser(Bob)

I have gotten a reference to the principal.

bad things happened!

java.lang.RuntimeException: SQL error: ORA-01008: not all variables bound

at com.evermind.sql.DataSourceUser.addToGroup(JAX)

at com.evermind.server.he.addToRole(JAX)

at TodServlet.doGet(TodServlet.java:65)

at javax.servlet.http.HttpServlet.service(HttpServlet.java)

at javax.servlet.http.HttpServlet.service(HttpServlet.java)

at javax.servlet.http.HttpServlet.service(HttpServlet.java)

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)

=



If I open up Oracle, the user was successfully added to the users table, but

the role mapping was not set up.

Here's the configuration from the orion-application.xml file:



























Any help to shed some light on this would be much appreciated. It would be

nice to see this documented finally...

Thanks

Lawrence.











RE: Question about automated testing with Orion

2001-01-05 Thread Tony Wilson

 On top of that, I am looking for a way to automate the compilation of JSP
files offline (i.e. not through a web browser, or even hitting the web
page).

JRun and TomCat each exposed their JSP compiler interfaces so that you can
run them offline and capture the errors/warnings.  I cannot seem to find
that interface in Orion.

Anybody have any suggestions?

Tony Wilson

-Original Message-
From: Eric Hodges
To: Orion-Interest
Sent: 1/5/01 12:32 PM
Subject: Question about automated testing with Orion

I'm trying to set up some automated unit tests for our servlets.  I'm
using
HttpUnit and JUnit, but the authentication in HttpUnit doesn't work with
Orion.  Does anyone out there have experience at this?  Is there a
better
tool?  Some sort of trick?  I've been talking to the HttpUnit folks, and
they don't know what to do.  Thanks for any help.





Security constraint and directory browsing

2001-01-05 Thread Christian Billen

Hi all,

has anyone been able to get basic authentication working on a directory with
directory browsing enabled?

If I enable directory browing in my orion-web.xml and set a security
constraint on an empty directory (say /mydir/ ), I do not get a security
authentication when I access http://myserver/mydir/, however if I specifies
a file: http://myserver/mydir/somefile.html then it works.  Any way to get
the authentication working on the directory browsing?

Thanks,

Christian Billen
HyperQuest Solutions, Inc.





Null pointer exception in Wrapper class

2001-01-05 Thread revivalatgt revivalatgt

Anyone get anything like this?  This is in a CMP bean, being called from a 
servlet, and I'm just calling a method generated by Orion.  Could this be an 
error in my ejb-jar.xml file?  My find methods are just generic find all 
methods, so I'm not touching the generated xml files in any way.  Is there a 
way I can at least see the generated source?  Thanks for the help!


java.lang.NullPointerException:
at 
CarrierCompanyHome_EntityHomeWrapper8.hashCode(CarrierCompanyHome_EntityHomeWrapper8.java:117)
at com.evermind.util.ExternalHashSet.get(JAX, Compiled Code)
at 
CarrierCompanyHome_EntityHomeWrapper8.findAllCarriers(CarrierCompanyHome_EntityHomeWrapper8.java,
 
Compiled Code)
at CommandServlet.doPost(CommandServlet.java, Compiled Code)
Robert Smith
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





RE: There seems to be no datetime mapping in the SQL Server database schema.

2001-01-05 Thread Michael S. Kelly

Never mind.  I found my answer in the archive.  Sorry for the trouble.

-=michael=-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael S.
Kelly
Sent: Friday, January 05, 2001 10:43 AM
To: Orion-Interest
Subject: There seems to be no datetime mapping in the SQL Server
database schema.


The ms-sql.xml file contains the following:


















Note that there is no mapping for the datetime data type.  I'm assuming this
is an oversight and there should be a mapping like this in the file:

   

Am I missing something?

-=michael=-

==
 Michael S. Kelly      _
 Axian, Inc. // |_  __(_) ___  _ __
 4800 SW Griffith Dr., Ste. 202 //| |\\/ /| |/ _ \| '_ \
 Beaverton, OR  97005 USA _//_| | / / | | |_| | | | |
 Voice: (503)644-6106 x122   ((   //  |_|/_/\\|_|\_/|_|_| |_|
 Fax:   (503)643-8425 ``-''  ``-''
 http://www2.axian.com   Software Consulting and Training
 mailto:[EMAIL PROTECTED]
==








RE: JSP vs Servlet

2001-01-05 Thread Duffey, Kevin

Heh..point well taken, but do keep in mind, some people actually like the
Model 1 approach better than the Model 2. I used to be one of those people
for many months, until some other developers started adding their own code
to the JSP pages and it didn't conform too well like I had it. Thus..I
realized it was a major pain in the ass to keep track of the changes and
maintain it, especially since JSP scriplet code isn't usually the place
comments are put in (no reason not to..just that it appears that they are
"html" pages with a little bit of code..therefore I have thus far seen
examples of JSP without any comments in it, and have done so myself for the
most part).


> -Original Message-
> From: Fyffe Carl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 12:34 PM
> To: Orion-Interest
> Subject: RE: JSP vs Servlet
> 
> 
> This was not neccessarily a request for the explaination of 
> MVC or CVM or
> VCM or whatever :) Many people learn by example, and this 
> example will cause
> newbies to put their code in the JSP if they don't already 
> know MVC.  I
> think it is up to the more knowledgable folks to lead us less 
> knowledgable
> down the correct path, whether they explain all of the 
> reasons is up to the
> ammount of time the writers have.  This article is VERY good, 
> and I learned
> alot from it.  Just please be sure you are using "best practices" when
> writing a tutorial.  You never know if those little eyes are 
> watching :)
> 
> --Carl
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> Christian Sell
> Sent: Friday, January 05, 2001 3:11 AM
> To: Orion-Interest
> Subject: Re: JSP vs Servlet
> 
> 
> > Anyway, IMHO adding a methodology on top of the purpose of 
> the article -
> > showing the CMP stuff - would have been yet more to learn. 
> I'm of the
> > opinion that something like that needs to show off one aspect of the
> > technology rather than all aspects, so MVC - while useful - 
> would have
> > been yet another thing to track.
> 
> and then he would have had to decide which methodology to 
> use. They all
> speak of MVC, but nowadays almost everyone seems to have 
> his/her own idea of
> how to implement it. There are so many frameworks out there 
> (e.g., Turbine,
> Struts, WebWork, WebMacro, Freemarker, Velocity, to name but 
> a few) that it
> is hard to keep track, IMO.
> 
> 
> 
> 




RE: Accessing multiple databases in the same application

2001-01-05 Thread Michael S. Kelly

There is a default-data-source parameter in orion-application.xml, as in:



It looks like this data-source gets propagated to the EJB deployment
description in orion-ejb-jar.xml, but I don't see a way to specify the
database prior to deployment so the table gets created in the correct place.
Am I missing something?

-=michael=-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi
(Chile)
Sent: Friday, January 05, 2001 7:09 AM
To: Orion-Interest
Subject: RE: Accessing multiple databases in the same application


yap, check out orion-ejb-jar.xml
In either CMP or BMP entitys you can modify deployment settings at any time

with CMP you can even modify the field mapping scheme

BUT, i think in another of the orion*.xml (i think orion-application.xml)
you may specify the datasources PRIOR
to deployment (thus the table creation command will be issued to the correct
DB)

HTH

JP

-Original Message-
From: Michael S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 04 de Enero de 2001 19:43
To: Orion-Interest
Subject: Accessing multiple databases in the same application


I know how to set up datasources.  And I know how to set the default
datasource in the orion-application.xml.  But what if I want one application
to access data in multiple databases?  Is there some way to specify that
certain entity beans use one datasource while other entity beans use
another?

-=michael=-

==
 Michael S. Kelly      _
 Axian, Inc. // |_  __(_) ___  _ __
 4800 SW Griffith Dr., Ste. 202 //| |\\/ /| |/ _ \| '_ \
 Beaverton, OR  97005 USA _//_| | / / | | |_| | | | |
 Voice: (503)644-6106 x122   ((   //  |_|/_/\\|_|\_/|_|_| |_|
 Fax:   (503)643-8425 ``-''  ``-''
 http://www2.axian.com   Software Consulting and Training
 mailto:[EMAIL PROTECTED]
==








RE: ResultSet Caching

2001-01-05 Thread Neal Kaiser

What's the benefit of using those products over an entity bean then? How
does it differ?
Thanks.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wilson
> Sent: Friday, January 05, 2001 3:50 PM
> To: Orion-Interest
> Subject: RE: ResultSet Caching
>
>
> There are products that act as middlemen between you and the
> Database.  They
> also offer database object abstraction  (so you can have an object
> representing table data.  You define field -> property mappings, and the
> product handles the transfer of data.)
>
> These products usually have built-in caching.
>
> Two products are
> TopLink (expensive, but nice)  http://www.objectpeople.com
> VBSF (pretty inexpensive, and still nice) http://www.objectmatter.com
>
>   -Original Message-
>   From:   Neal Kaiser [mailto:[EMAIL PROTECTED]]
>   Sent:   Friday, January 05, 2001 10:49 AM
>   To: Orion-Interest
>   Subject:ResultSet Caching
>
>   Does Orion have any built in caching functionality? Let's
> say I have a
>   database query which returns 1,000 records and the user will
> page thru 100
>   at a time.  Instead of re-issuing the query each time (each
> page), is there
>   some sort of cache object?  How do you guys typically handle
> this?
>
>   Thanks, Neal
>
>





RE: Accessing multiple databases in the same application

2001-01-05 Thread Michael S. Kelly

Thank you, thank you, thank you (and you too Juan).

-=michael=-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rafael Alvarez
Sent: Friday, December 22, 2000 4:51 AM
To: Orion-Interest
Subject: Re: Accessing multiple databases in the same application


Hello Michael,

Check the docs for the orion-ejb-jar.xml.

In the entry for entity beans ()
you can specify the datasource and table to be used using the
parameters data-source and table.

You can find the file in $(APP-DEPLOYMENT-DIR)/$(APP-NAME)/ejb

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]








RE: Globally available environment vars

2001-01-05 Thread John D'Ausilio

well, the problem is that there seems not to be a context which is
accessable from all the modules! It looks like this may be a J2EE deficiency
.. I'm just gonna use a properties file ..

jd

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith
> Sent: Friday, January 05, 2001 1:19 PM
> To: Orion-Interest
> Subject: RE: Globally available environment vars
>
>
> How about having an initializer bind some property files into
> JNDI that can
> then be accessed by the web & ejb modules.
>





RE: ResultSet Caching

2001-01-05 Thread Tony Wilson

There are products that act as middlemen between you and the Database.  They
also offer database object abstraction  (so you can have an object
representing table data.  You define field -> property mappings, and the
product handles the transfer of data.)  

These products usually have built-in caching.

Two products are 
TopLink (expensive, but nice)  http://www.objectpeople.com
VBSF (pretty inexpensive, and still nice) http://www.objectmatter.com

-Original Message-
From:   Neal Kaiser [mailto:[EMAIL PROTECTED]]
Sent:   Friday, January 05, 2001 10:49 AM
To: Orion-Interest
Subject:ResultSet Caching

Does Orion have any built in caching functionality? Let's
say I have a
database query which returns 1,000 records and the user will
page thru 100
at a time.  Instead of re-issuing the query each time (each
page), is there
some sort of cache object?  How do you guys typically handle
this?

Thanks, Neal





Kawa

2001-01-05 Thread Ervin Jakab

Maybe some of you are interested to find out that Kawa 5.0 Enterprise from
Allaire has out-of-the-box support for Orion deployment. Check this out:
http://www.allaire.com/products/kawa/productinformation/enterprise.cfm .






Re: User guide

2001-01-05 Thread Ray Harrison

There's more info and examples,etc on www.orionsupport.com. Check it out.

--- Laurent Vansuypeene <[EMAIL PROTECTED]> wrote:
> hi everybody,
>
> I need to evaluate orionserver but i don't find any user
> guide on the site and the documentation is quiet not enough.
> For example, i want to know how to define servlet context,
> EJB2.0 (how to define EQL, where are the generated stub...)
> Has someone a user guide ?
>
> Thanks in advance
> __
> Boîte aux lettres - Caramail - http://www.caramail.com
>
>


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/




Question about automated testing with Orion

2001-01-05 Thread Eric Hodges

I'm trying to set up some automated unit tests for our servlets.  I'm using
HttpUnit and JUnit, but the authentication in HttpUnit doesn't work with
Orion.  Does anyone out there have experience at this?  Is there a better
tool?  Some sort of trick?  I've been talking to the HttpUnit folks, and
they don't know what to do.  Thanks for any help.





RE: User guide

2001-01-05 Thread APapada


I agree, farming out documentation tasks is a great idea.  I'm sure I speek
for all technical developers when I say that documentation, although vital,
is a pain to do :-)


   
 
Kemp Randy-W18971  
 
<[EMAIL PROTECTED]To: Orion-Interest   
 
> <[EMAIL PROTECTED]> 
 
Sent by:  cc:  
 
owner-orion-interest@orionSubject: RE: User guide  
 
server.com 
 
   
 
   
 
01/05/2001 10:43 AM
 
Please respond to  
 
Orion-Interest 
 
   
 
   
 




Very easy for them to do, and I have suggested the solution to them.  Farm
out the task to a group of technical writers.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 11:32 AM
To: Orion-Interest
Subject: Re: User guide



Orion, with it's many configuration files, appears very complex to
configure to someone who is working with it for the first time.  It would
be alot more 'developer' friendly if there was some sort of technical
guide, other than the simple examples presented in the jsp pages that are
found in the base download.  I would think that if Orion were to develop
some sort of technical documentation, as other application server
distributors have, it would increase it's share in the market.  Is there
any plan to implement sort of system documentation?



[EMAIL PROTECTED]

Sent by:  To:
Orion-Interest
owner-orion-interest@orion
<[EMAIL PROTECTED]>
server.comcc:

  Subject: Re: User
guide

01/05/2001 08:21 AM

Please respond to

Orion-Interest








Don't be surprised.  Unfortunately, the documentation, what you can find of
it, is very poor.  I doubt that an user guide even exists.



Laurent Vansuypeene

<[EMAIL PROTECTED]To:
Orion-Interest
m>
<[EMAIL PROTECTED]>
Sent by:  cc:

owner-orion-interest@orionSubject: User
guide
server.com



01/05/2001 01:43 PM

Please respond to

Orion-Interest







hi everybody,

I need to evaluate orionserver but i don't find any user
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context,
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com



















RE: User guide

2001-01-05 Thread Duffey, Kevin

That sad thing is, Orion is easy to configure..once you figure it out.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 9:32 AM
> To: Orion-Interest
> Subject: Re: User guide
> 
> 
> 
> Orion, with it's many configuration files, appears very complex to
> configure to someone who is working with it for the first 
> time.  It would
> be alot more 'developer' friendly if there was some sort of technical
> guide, other than the simple examples presented in the jsp 
> pages that are
> found in the base download.  I would think that if Orion were 
> to develop
> some sort of technical documentation, as other application server
> distributors have, it would increase it's share in the 
> market.  Is there
> any plan to implement sort of system documentation?
> 
> 
>   
>   
> [EMAIL PROTECTED]  
>   
> Sent by:  To: 
> Orion-Interest
> owner-orion-interest@orion
> <[EMAIL PROTECTED]>  
> server.comcc: 
>   
>   
> Subject: Re: User guide   
>   
>   
> 01/05/2001 08:21 AM   
>   
> Please respond to 
>   
> Orion-Interest
>   
>   
>   
>   
>   
> 
> 
> 
> 
> 
> Don't be surprised.  Unfortunately, the documentation, what 
> you can find of
> it, is very poor.  I doubt that an user guide even exists.
> 
> 
> 
> Laurent Vansuypeene
> 
> <[EMAIL PROTECTED]To:
> Orion-Interest
> m>
> <[EMAIL PROTECTED]>
> Sent by:  cc:
> 
> owner-orion-interest@orion
> Subject: User
> guide
> server.com
> 
> 
> 
> 01/05/2001 01:43 PM
> 
> Please respond to
> 
> Orion-Interest
> 
> 
> 
> 
> 
> 
> 
> hi everybody,
> 
> I need to evaluate orionserver but i don't find any user
> guide on the site and the documentation is quiet not enough.
> For example, i want to know how to define servlet context,
> EJB2.0 (how to define EQL, where are the generated stub...)
> Has someone a user guide ?
> 
> Thanks in advance
> __
> Boîte aux lettres - Caramail - http://www.caramail.com
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 




ResultSet Caching

2001-01-05 Thread Neal Kaiser

Does Orion have any built in caching functionality? Let's say I have a
database query which returns 1,000 records and the user will page thru 100
at a time.  Instead of re-issuing the query each time (each page), is there
some sort of cache object?  How do you guys typically handle this?

Thanks, Neal





RE: User guide

2001-01-05 Thread Kemp Randy-W18971

Very easy for them to do, and I have suggested the solution to them.  Farm out the 
task to a group of technical writers.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 11:32 AM
To: Orion-Interest
Subject: Re: User guide



Orion, with it's many configuration files, appears very complex to
configure to someone who is working with it for the first time.  It would
be alot more 'developer' friendly if there was some sort of technical
guide, other than the simple examples presented in the jsp pages that are
found in the base download.  I would think that if Orion were to develop
some sort of technical documentation, as other application server
distributors have, it would increase it's share in the market.  Is there
any plan to implement sort of system documentation?


   
 
[EMAIL PROTECTED]   
 
Sent by:  To: Orion-Interest   
 
owner-orion-interest@orion<[EMAIL PROTECTED]> 
 
server.comcc:  
 
  Subject: Re: User guide  
 
   
 
01/05/2001 08:21 AM
 
Please respond to  
 
Orion-Interest 
 
   
 
   
 





Don't be surprised.  Unfortunately, the documentation, what you can find of
it, is very poor.  I doubt that an user guide even exists.



Laurent Vansuypeene

<[EMAIL PROTECTED]To:
Orion-Interest
m>
<[EMAIL PROTECTED]>
Sent by:  cc:

owner-orion-interest@orionSubject: User
guide
server.com



01/05/2001 01:43 PM

Please respond to

Orion-Interest







hi everybody,

I need to evaluate orionserver but i don't find any user
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context,
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com














Open source and license

2001-01-05 Thread Kemp Randy-W18971

If Orion is a full J2EE implementation, they are probably right in not legally 
releasing the source code as open source.  I found this in the openEJB letter archive 
at http://openejb.exolab.org/list-archive/msg00103.html, under www.openejb.org

Unfortunately, we still do not have a complete implementation of the J2EE platform to 
release under an Open Source license. But this is not only an engineering issue, but 
also a legal one: you need to understand that Intalio, Inc. still is not allowed by 
Sun Microsystems, Inc. to make available such an implementation under an Open Source 
license, according to the "licensing terms" of the J2EE specification and related 
interfaces. There is not that much we can do about it outside lobbying. 

 




There seems to be no datetime mapping in the SQL Server database schema.

2001-01-05 Thread Michael S. Kelly

The ms-sql.xml file contains the following:


















Note that there is no mapping for the datetime data type.  I'm assuming this
is an oversight and there should be a mapping like this in the file:

   

Am I missing something?

-=michael=-

==
 Michael S. Kelly      _
 Axian, Inc. // |_  __(_) ___  _ __
 4800 SW Griffith Dr., Ste. 202 //| |\\/ /| |/ _ \| '_ \
 Beaverton, OR  97005 USA _//_| | / / | | |_| | | | |
 Voice: (503)644-6106 x122   ((   //  |_|/_/\\|_|\_/|_|_| |_|
 Fax:   (503)643-8425 ``-''  ``-''
 http://www2.axian.com   Software Consulting and Training
 mailto:[EMAIL PROTECTED]
==






RE: Globally available environment vars

2001-01-05 Thread Jason Smith

How about having an initializer bind some property files into JNDI that can
then be accessed by the web & ejb modules.





RE: Redirection

2001-01-05 Thread Tim Endres

Path mapping works perfectly in Orion, and we do exactly what you suggest in
your posting and it works perfectly.
tim.

> Sure it is. I am not sure if its possible in Servlet 2.1/2.2 to "path map"
> to a specific controller servlet, but I think it is. I use extension mapping
> myself. But basically you would do something in your web.xml file like:
> 
> 
>   controller
>   controller
>   com.mvc.servlets.ControllerServlet
> 
> 
>   controller
>   /ss/
> 
> 
> Now, anytime the /ss/ appears in the request path, it should pass everything
> after the /ss/ as path info to the controller servlet its mapped to. Thus,
> anytime the /ss/ is in your path, the servlet you map it to is invoked, and
> I think the request.getPathInfo() or one of those calls returns everyting
> after the /ss/. Therefore, a link like:
> 
> Click
> 
> Should call your servlet, and you would recieve a DoThis as a String
> parameter or something.
> 
> Once you have that, you call upon your EJB session bean (or some business
> logic class) that looks up in the database and returns you a path to go to.
> Then you simply do:
> 
> try
> {
>   request.getRequestDispatcher(url-from-database).forward(request,response);
> }
> catch(Exception e)
> {
> }
> 
> That will forward you to the new URL.
> 
> Ask if you have any questions..but that should help a bit I hope.
> 
> 
> > Hi everyone,
> >
> > Since it seems that the list is alive and well, although with very
> > little traffic, I would like to ask a question which has been bothering
> > me for a while.
> >
> > I am trying to do what I would define as dynamic redirection. What that
> > means is that if someone writes an URL like http://myserver/name, I
> > would like to look for "name" in a database and redirect the user to
> > some other URL. This would allow me to avoid modifying manually the
> > configuration file every time a mapping is added,removed or modified.
> >
> > Is this possible? Any suggestions?
> >
> > Thanks in advance and Happy New Year!
> >
> > Huibert Aalbers
> >
> 
> 





Re: User guide

2001-01-05 Thread APapada


Orion, with it's many configuration files, appears very complex to
configure to someone who is working with it for the first time.  It would
be alot more 'developer' friendly if there was some sort of technical
guide, other than the simple examples presented in the jsp pages that are
found in the base download.  I would think that if Orion were to develop
some sort of technical documentation, as other application server
distributors have, it would increase it's share in the market.  Is there
any plan to implement sort of system documentation?


   
 
[EMAIL PROTECTED]   
 
Sent by:  To: Orion-Interest   
 
owner-orion-interest@orion<[EMAIL PROTECTED]> 
 
server.comcc:  
 
  Subject: Re: User guide  
 
   
 
01/05/2001 08:21 AM
 
Please respond to  
 
Orion-Interest 
 
   
 
   
 





Don't be surprised.  Unfortunately, the documentation, what you can find of
it, is very poor.  I doubt that an user guide even exists.



Laurent Vansuypeene

<[EMAIL PROTECTED]To:
Orion-Interest
m>
<[EMAIL PROTECTED]>
Sent by:  cc:

owner-orion-interest@orionSubject: User
guide
server.com



01/05/2001 01:43 PM

Please respond to

Orion-Interest







hi everybody,

I need to evaluate orionserver but i don't find any user
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context,
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com














RE: JSP vs Servlet

2001-01-05 Thread Fyffe Carl

This was not neccessarily a request for the explaination of MVC or CVM or
VCM or whatever :) Many people learn by example, and this example will cause
newbies to put their code in the JSP if they don't already know MVC.  I
think it is up to the more knowledgable folks to lead us less knowledgable
down the correct path, whether they explain all of the reasons is up to the
ammount of time the writers have.  This article is VERY good, and I learned
alot from it.  Just please be sure you are using "best practices" when
writing a tutorial.  You never know if those little eyes are watching :)

--Carl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
Sent: Friday, January 05, 2001 3:11 AM
To: Orion-Interest
Subject: Re: JSP vs Servlet


> Anyway, IMHO adding a methodology on top of the purpose of the article -
> showing the CMP stuff - would have been yet more to learn. I'm of the
> opinion that something like that needs to show off one aspect of the
> technology rather than all aspects, so MVC - while useful - would have
> been yet another thing to track.

and then he would have had to decide which methodology to use. They all
speak of MVC, but nowadays almost everyone seems to have his/her own idea of
how to implement it. There are so many frameworks out there (e.g., Turbine,
Struts, WebWork, WebMacro, Freemarker, Velocity, to name but a few) that it
is hard to keep track, IMO.








RE: JSP vs Servlet

2001-01-05 Thread Kevin Duffey

I will try my hand at this as soon as my framework is done. I plan to use
the Model 3 approach..which is using Model 2 but instead of forwarding to
JSP, it passes the JSP output (which would be XML tags with dynamic data)
and an XSL to XALAN and transforms it to HTML, then sends that back. In this
way, the tutorial will properly show a clear cut solution to separating data
from logic from the view. It won't be for a little bit though..so don't hold
your breath. I will ask for reviews by this list before I post it, to see if
it makes sense, works, etc.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
> Randy-W18971
> Sent: Friday, January 05, 2001 6:16 AM
> To: Orion-Interest
> Subject: RE: JSP vs Servlet
>
>
> I did address this same question to the folks at www.jollem.com
> and their suggestion, which was a fine one, was to create a
> tutorial.  Jollem has a mechanism in place to create tutorials
> (see website).  Since I am not an expert, I would ask if some
> expert (with some spare time) could show us how to create the
> Orion CMP example in a model two format.
>
> -Original Message-
> From: Fyffe Carl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 2:08 AM
> To: Orion-Interest
> Subject: JSP vs Servlet
>
>
> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC
> calls for the
> code to be in the controller while there is little code in the
> view portion
> of the application.  This allows the designers to design and the coders to
> code.
>
> Were the rules broken for convience or has a new methodology
> taken over?  It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
>
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some
> useful URL's
> that you guys used to get started.
>
> --Carl
>
>





RE: JSP vs Servlet MVC - CMV

2001-01-05 Thread Kevin Duffey

Actually..you are correct for the most part, but think of it this way. Most
sites you just type in the www.company.com and hit enter. You don't type a
specific path (that would be mapped to a controller servlet)..for the most
part. There are a lot of sites you do such things..but for the most part,
you type in the company name to get to the site. Now, the first thing that
shows up is index.html (or index.jsp) usually, so in retrospect, the VIEW is
first, then when a link is clicked the CONTROLLER is accessed, then the
MODEL, then the VIEW again. So, it should probably be called VCM.



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi
> (Chile)
> Sent: Friday, January 05, 2001 7:59 AM
> To: Orion-Interest
> Subject: RE: JSP vs Servlet MVC - CMV
>
>
> it's a circular pattern...
> you access the controller from a view, which is generated by the model...
>
> all of this brings us back to the important question:
>
> what was first--- the egg or the chicken?
>
> My 2c,
>
> JP
>
> -Original Message-
> From: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
> Sent: Viernes, 05 de Enero de 2001 9:25
> To: Orion-Interest
> Subject: Re: JSP vs Servlet MVC - CMV
>
>
> I've seen the abbreviation MVC on a lot of places, but shouldn't it be
>
> CMV
>
> for Controller / Model / View
>
> where Controller receives a request, handles it using model and
> displays it
> using view?
>
> Not important to me, just wondered... =)
>
>
> //Johan
> - Original Message -
> From: "Fyffe Carl" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Friday, January 05, 2001 9:07 AM
> Subject: JSP vs Servlet
>
>
> > I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> > thinking about a topic that concerns most people that are in large
> > development groups.  Seperation of code and html.  Proper MVC calls for
> the
> > code to be in the controller while there is little code in the view
> portion
> > of the application.  This allows the designers to design and
> the coders to
> > code.
> >
> > Were the rules broken for convience or has a new methodology taken over?
> It
> > seems to me that the CMP Primer would have been easier to read and
> > understand if MVC had been used.
> >
> > This one short coming can easily overlooked to find a gem of an article.
> > Are there other primers of jollem.com's caliber?  What are some useful
> URL's
> > that you guys used to get started.
> >
> > --Carl
> >
>
>





Re: User guide

2001-01-05 Thread Drew Kidder

There's always the Servlet 2.2 spec, from Sun..that should answer a 
bunch of questions about defining servlet contexts.  Orion conforms to the 
Servlet spec.  Other than that, I think you're left with the stuff from the 
website, and the downloadable documentation.

Personally, I have found the archives of this newsgroup to be invaluable in 
setting up and running Orion.


At 04:43 PM 01/05/2001 -0500, you wrote:
>hi everybody,
>
>I need to evaluate orionserver but i don't find any user
>guide on the site and the documentation is quiet not enough.
>For example, i want to know how to define servlet context,
>EJB2.0 (how to define EQL, where are the generated stub...)
>Has someone a user guide ?
>
>Thanks in advance
>__
>Boîte aux lettres - Caramail - http://www.caramail.com


--
Andrew Kidder
L3 SW/Support Engineer
Tivoli Systems

512-436-4544
[EMAIL PROTECTED]
http://www.tivoli.com






RE: Redirection

2001-01-05 Thread Tony Wilson

 it seems that this doesn't actually send the redirect right away.  It only
Marks the redirect to happen after the JSP is finished.  This means any
logic AFTER the redirect will still happen.  Not only that, but if you do a
second sendRedirect, it replaces the first.

We have found that putting "return;" on the next line helps (it returns from
the generated service() method).

Does anyone else know a way around this!

Tony

-Original Message-
From: Petr Podsednik
To: Orion-Interest
Sent: 1/5/01 1:02 AM
Subject: Re: Redirection

I use this approach in my jsp:
   
response.sendRedirect("newSelectedURL");
   
This causes pointing my browser to the "newSelectedURL" and it works
fine.
Petr

- Original Message - 
From: Huibert Aalbers <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 5:07 PM
Subject: Redirection


> Hi everyone,
> 
> Since it seems that the list is alive and well, although with very
> little traffic, I would like to ask a question which has been
bothering
> me for a while.
> 
> I am trying to do what I would define as dynamic redirection. What
that
> means is that if someone writes an URL like http://myserver/name, I
> would like to look for "name" in a database and redirect the user to
> some other URL. This would allow me to avoid modifying manually the
> configuration file every time a mapping is added,removed or modified.
> 
> Is this possible? Any suggestions?
> 
> Thanks in advance and Happy New Year!
> 
> Huibert Aalbers
> 





RE: JSP vs Servlet

2001-01-05 Thread Tony Wilson

 In general, you can consider JSPs the easy way to make a servlet.
Basically, it becomes a matter of location of files.



The way I suggest doing it (and we do on our projects) is to have all of the
'GUI'(or html) portions of the JSP in a separate location.  We have our top
level 'logic' jsp's in the root directories, and when it comes time to
actually display the GUI, we do a jsp (or pageContext) include of the GUI
file.

example: 

/myForm.jsp (sets up cookies, gathers query string params, does some logic) 
/GUI/myForm_en.jsp (display the form elements in English) 
/GUI/myForm_sp.jsp (display the form elements in Spanish) 

/myFormProcess.jsp (collect information and do logic (no GUI include) 

This allows us to still have the ease of jsp coding, recompiling, and
distribution and keep the non-GUI (or controller/view) portions of the
application separated from the GUI portions.  Another aspect of this is that
our html/GUI engineers have access to the form collection and logic portions
of the JSP, if they need it.  An example of why they might need it is if
they change the name of an element and then they have to change the
processing page for that form.  Any business logic and hard-core processing
is done in java classes or java beans used by the JSP, which GUI programmers
have limited access to.

We disallow access to GUI from outside (we use Apache to do this). 
And the difference between GUI files and non-GUI files are specified by
naming convention (directory AND file names). 

I hope this helps. 

Tony Wilson 



-Original Message-
From: Fyffe Carl
To: Orion-Interest
Sent: 1/5/01 12:07 AM
Subject: JSP vs Servlet

I went to jollem.com and read the CMP Primer.  Good read.  But it got me
thinking about a topic that concerns most people that are in large
development groups.  Seperation of code and html.  Proper MVC calls for
the
code to be in the controller while there is little code in the view
portion
of the application.  This allows the designers to design and the coders
to
code.

Were the rules broken for convience or has a new methodology taken over?
It
seems to me that the CMP Primer would have been easier to read and
understand if MVC had been used.

This one short coming can easily overlooked to find a gem of an article.
Are there other primers of jollem.com's caliber?  What are some useful
URL's
that you guys used to get started.

--Carl





Message-driven beans get attached to queues HOW?

2001-01-05 Thread Joseph B. Ottinger

I've been playing around with developing my own queue consumer, and I'm
stuck trying to figure out how to tell the EJB that it's listening to
controllerQueue. In BEA it's in the server-specific deployment file; I've
looked at the ATM example for a corresponding entry in orion-ejb-jar.xml
with no luck.

Does anyone else know the format of this XML stanza?

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant





Re: User guide

2001-01-05 Thread APapada


Don't be surprised.  Unfortunately, the documentation, what you can find of
it, is very poor.  I doubt that an user guide even exists.


   
 
Laurent Vansuypeene
 
<[EMAIL PROTECTED]To: Orion-Interest   
 
m><[EMAIL PROTECTED]> 
 
Sent by:  cc:  
 
owner-orion-interest@orionSubject: User guide  
 
server.com 
 
   
 
   
 
01/05/2001 01:43 PM
 
Please respond to  
 
Orion-Interest 
 
   
 
   
 




hi everybody,

I need to evaluate orionserver but i don't find any user
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context,
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com









Globally available environment vars

2001-01-05 Thread John D'Ausilio

We're getting to the point where we're integrating a bunch of stuff into a
web app .. two different ejb modules plus a web module. I'd like to have a
single central place where user-customizable configuration can be stored.
Experimenting with env-entry in the web.xml file seems to indicate that
those environment vars are not available (by any naming convention I've been
able to think up) in the ejb modules. I can put the env-entry into the
deployment descriptor for the bean that needs the value and get access, but
that would be too messy for the end-user to be messing with! Anyone have any
ideas?





RE: User guide

2001-01-05 Thread Kemp Randy-W18971

There are three sources for documentation:
Download the doc at www.orionserver.com
Look at the questions and answers at www.orionsupport.com
Look at the examples at www.jollem.com
Unfortunately, the documentation for Orion and the open source initiatives (jboss, 
jonas, openejb) are not up to the same caliber as high price products like Webspere or 
Weblogic.  But, then again, the prices are great. 

-Original Message-
From: Laurent Vansuypeene [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 3:44 PM
To: Orion-Interest
Subject: User guide


hi everybody,

I need to evaluate orionserver but i don't find any user 
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context, 
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com





RE: JSP vs Servlet MVC - CMV

2001-01-05 Thread Juan Lorandi (Chile)

it's a circular pattern...
you access the controller from a view, which is generated by the model...

all of this brings us back to the important question:

what was first--- the egg or the chicken?

My 2c,

JP

-Original Message-
From: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
Sent: Viernes, 05 de Enero de 2001 9:25
To: Orion-Interest
Subject: Re: JSP vs Servlet MVC - CMV


I've seen the abbreviation MVC on a lot of places, but shouldn't it be

CMV

for Controller / Model / View

where Controller receives a request, handles it using model and displays it
using view?

Not important to me, just wondered... =)


//Johan
- Original Message -
From: "Fyffe Carl" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 9:07 AM
Subject: JSP vs Servlet


> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC calls for
the
> code to be in the controller while there is little code in the view
portion
> of the application.  This allows the designers to design and the coders to
> code.
>
> Were the rules broken for convience or has a new methodology taken over?
It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
>
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some useful
URL's
> that you guys used to get started.
>
> --Carl
>





RE: URGENT: Problems with Orion load balancer.

2001-01-05 Thread Juan Lorandi (Chile)

tony, what are you using as a load-balancer?

won't it be the load-balancer.jar? it's buggy, slow, etc. It's only there to
help configure a cluster without having
a layer 7 switch at hand(and that's not little)

also, I suggest reading about bugs #161 & #170 in bugzilla

HTH

JP

-Original Message-
From: Tony J Brooks [mailto:[EMAIL PROTECTED]]
Sent: Viernes, 05 de Enero de 2001 6:24
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: URGENT: Problems with Orion load balancer.




Happy New Year everyone,

Apologies for re-posting this so soon, but given
that a lot of people will have been away during
the festive period and the necessity for a solution
to my problem intensifies, I want to pass this in
front of you all again.

I'm very grateful for your interest.

Tony.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tony J Brooks
Sent: 22 December 2000 12:39
To: Orion-Interest
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Problems with Orion load balancer.



Dear All,

I'm having problems with load-balancing a single island of two orion
appservers.  I have followed the instructions from the clustering 'howto'
document, and I've made changes to the relevant XML files.  Note, I made the
changes to the default web app files, rather than to the XML files specific
to my app.  From the documentation I expect the changes to therefore impact
*all* apps, and that I should experience the desired clustering and load
balancing for my app.

Using the Microsoft Web App Stress Tool, running 100 threads which
continually request a single page from the clustered app via the load
balancer, things seem to work fine for the first minute or so, despite the
fact that the balancer 'drops' servers periodically but then manages to
re-discover them.  The performance meters for the servers in the app cluster
show that both machines are working at close to full capacity during this
brief period.

At some point after that first minute or so, the load balancer will
typically drop one of the servers, re-discover it, add it back into the
island, but that server will thereafter be unloaded - the performance meter
registers 0% load.  Note that this is despite the fact that the other
server - still alive, is working flat out at 100%.

Has anyone experienced this before ?  I can't find anything in the archive.
I'm especially perplexed since a lot of other people claim to have
load-balancing and clustering working fine - after working from the same
'howto' as me.

I would really appreciate help on this.

Merry Christmas everyone.

Tony.

---
 Dr Tony J Brooks
 Apama (UK) Ltd
 17 Millers Yard
 Cambridge, UK

 Mobile : 07748 767 110
 eMail  : [EMAIL PROTECTED]






RE: JSP vs Servlet MVC - CMV

2001-01-05 Thread Amir Yasin

Its somewhat of a chicken and egg problem.  The controller interacts with
the model in response to user actions on the view, the view formats and
displays data it querys from the controller, and the model holds the actual
data that the controller querys/updates.  There is no real "main" peice as
they can all be modified/repaced independently.  And MVC is used all over
the liturature so its accepted (just like TCP/IP should really be IP/TCP
based on packing order, but if you say the latter people will look at you
funny hehe) and people will know what you are talking about.

Just my 2 cents,
Amir

-Original Message-
From: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 6:25 AM
To: Orion-Interest
Subject: Re: JSP vs Servlet MVC - CMV


I've seen the abbreviation MVC on a lot of places, but shouldn't it be

CMV

for Controller / Model / View

where Controller receives a request, handles it using model and displays it
using view?

Not important to me, just wondered... =)


//Johan
- Original Message -
From: "Fyffe Carl" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 9:07 AM
Subject: JSP vs Servlet


> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC calls for
the
> code to be in the controller while there is little code in the view
portion
> of the application.  This allows the designers to design and the coders to
> code.
>
> Were the rules broken for convience or has a new methodology taken over?
It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
>
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some useful
URL's
> that you guys used to get started.
>
> --Carl
>





RE: Accessing multiple databases in the same application

2001-01-05 Thread Juan Lorandi (Chile)

yap, check out orion-ejb-jar.xml
In either CMP or BMP entitys you can modify deployment settings at any time

with CMP you can even modify the field mapping scheme

BUT, i think in another of the orion*.xml (i think orion-application.xml)
you may specify the datasources PRIOR
to deployment (thus the table creation command will be issued to the correct
DB)

HTH

JP

-Original Message-
From: Michael S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 04 de Enero de 2001 19:43
To: Orion-Interest
Subject: Accessing multiple databases in the same application


I know how to set up datasources.  And I know how to set the default
datasource in the orion-application.xml.  But what if I want one application
to access data in multiple databases?  Is there some way to specify that
certain entity beans use one datasource while other entity beans use
another?

-=michael=-

==
 Michael S. Kelly      _
 Axian, Inc. // |_  __(_) ___  _ __
 4800 SW Griffith Dr., Ste. 202 //| |\\/ /| |/ _ \| '_ \
 Beaverton, OR  97005 USA _//_| | / / | | |_| | | | |
 Voice: (503)644-6106 x122   ((   //  |_|/_/\\|_|\_/|_|_| |_|
 Fax:   (503)643-8425 ``-''  ``-''
 http://www2.axian.com   Software Consulting and Training
 mailto:[EMAIL PROTECTED]
==






RE: Tomcat 3.2 and Orion

2001-01-05 Thread Kemp Randy-W18971

This may not answer Tomcat specifically, but if you go to www.caucho.com, and search 
for the EJB section, there is a solution to set up Resin with Orion (you may need to 
download Resin and look at the Doc).  It would seem to me, since Resin is a JSP 
engine, you could adapt a similar solution for Tomcat. 

-Original Message-
From: Ratz, Peter [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 6:59 AM
To: Orion-Interest
Subject: Tomcat 3.2 and Orion


I have to use Tomcat as JSP and Servlet Engine and i want to use
Orion as EJB-Server.
My Problem is that i do not know how to setup tomcat so that i can use
EJBs from Orion (JNDI setup ).

My last error message was :-)
java.lang.ClassFormatError: __Proxy2 (Repeative method name/signature)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at com.evermind.net.jm.findClass(JAX)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.reflect.Proxy.arm(JAX)
at com.evermind.reflect.Proxy.arl(JAX)
at com.evermind.reflect.Proxy.arj(JAX)
at com.evermind.server.rmi.bd.hc(JAX)
at com.evermind.server.rmi.ba.resolveObject(JAX)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:399)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at com.evermind.server.rmi.ba.gq(JAX)
at com.evermind.server.rmi.bd.h0(JAX)
at com.evermind.server.rmi.bd.run(JAX)
at java.lang.Thread.run(Thread.java:484)

Are there any information available how to setup this configuration?

Thanks

Peter




RE: JSP vs Servlet

2001-01-05 Thread Kemp Randy-W18971

Would you be interested in writing a Model three CMP primer (given the time)?  It 
would be helpful to use newcomers to see the CMP primer in three flavors: models 1, 2, 
and 3. 

-Original Message-
From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 1:59 AM
To: Orion-Interest
Subject: RE: JSP vs Servlet


Interesting point. I agree, and infact I found the CMP primer a bit hard to
read because it wasn't so clean (as far as the code used). However, for the
sake of brevity I am sure they had to cut corners so as not to have a
200-page book. I would have liked to seen a bit more detail and info on the
examples, however. I think a CMP II article should be written, to include
the "latest" MVC model, which is sometimes called Model 3. That is, Using
JSP to return XML output, which is then transformed into HTML, WML or
whatever via XSL, and the output is then returned to the browser. I am
working on just such a thing in my streamlined mvc framework, which I offer
as free source. My framework works very well, and offers some things I
haven't seen in other frameworks, such as auto-population of javabeans used
on the page with support added to handle nested object population within a
javabean. Also, you can choose whether to use auto-population or not on a
per request basis, as well as a very simple to use action class..simply
supply the command=MethodName and implement a public String MethodName()
method in an action class, and its called. I use a small bit of reflection
to call the method in the action class, instead of the command/swtich()
approach often used. Anyways, I have been thinking for quite some time of
creating a small "book" that specifically targets the MVC framework (in
detail) and how to separate the business logic (ejb session beans) from the
controlling logic (controller servlet and instances of action classes) from
the front-end stateful bean (javabean stored in HttpSession), and the JSP
page (view of dynamic data). I just haven't had the time to play around with
it all yet. I am working on my framework to simplify using JSP to return XML
output, and applying XSL to that output to get HTML or something else. When
I am done with this I plan on posting the framework info to this list and
jsp-interest list.





> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Fyffe Carl
> Sent: Friday, January 05, 2001 12:08 AM
> To: Orion-Interest
> Subject: JSP vs Servlet
>
>
> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC
> calls for the
> code to be in the controller while there is little code in the
> view portion
> of the application.  This allows the designers to design and the coders to
> code.
>
> Were the rules broken for convience or has a new methodology
> taken over?  It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
>
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some
> useful URL's
> that you guys used to get started.
>
> --Carl
>





RE: Is the List alive?

2001-01-05 Thread Kemp Randy-W18971

Agreed.  Ozone of the messages mentioned a server problem, which could explain the 
silence.  I also subscribe to the Python, Jboss, and Resin mailing lists, and they 
didn't stop for the holidays.  

-Original Message-
From: Jarek Skreta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 2:20 PM
To: Orion-Interest
Subject: RE: Is the List alive?


Not necessarily. I get messages from some other lists and there people seem
to be working round the clock (XMS or not).

Jarek

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wilson
> Sent: 04 January 2001 17:50
> To: Orion-Interest
> Subject: RE: Is the List alive?
>
>
> I can get there... and I think the quiet list can be attributed to the
> holidays.
> Either everyone was gone, or in a state of happiness and bliss :-):-)
>
> Tony
>
>   -Original Message-
>   From:   Ray Harrison [mailto:[EMAIL PROTECTED]]
>   Sent:   Thursday, January 04, 2001 7:52 AM
>   To: Orion-Interest
>   Subject:Re: Is the List alive?
>
>   I haven't received anything either. Can you get to
> www.orionserver.com? I can't
>   The quiet list and being unable to access the main site
> seems strange...
>   --- Jarek Skreta <[EMAIL PROTECTED]> wrote:
>   > Hi Everybody,
>   >
>   > Happy New Year!
>   >
>   > I haven't received a single message since 29-Dec-2000. Has
> the service gone
>   > down, nobody is working on Orion or is it just my link
> that's gone quiet?
>   >
>   > Jarek
>   >
>   >
>
>   > ATTACHMENT part 2 application/ms-tnef name=winmail.dat
>
>
>
>   __
>   Do You Yahoo!?
>   Yahoo! Photos - Share your holiday photos online!
>   http://photos.yahoo.com/
>





RE: JSP vs Servlet

2001-01-05 Thread Kemp Randy-W18971

I did address this same question to the folks at www.jollem.com and their suggestion, 
which was a fine one, was to create a tutorial.  Jollem has a mechanism in place to 
create tutorials (see website).  Since I am not an expert, I would ask if some expert 
(with some spare time) could show us how to create the Orion CMP example in a model 
two format.  

-Original Message-
From: Fyffe Carl [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 2:08 AM
To: Orion-Interest
Subject: JSP vs Servlet


I went to jollem.com and read the CMP Primer.  Good read.  But it got me
thinking about a topic that concerns most people that are in large
development groups.  Seperation of code and html.  Proper MVC calls for the
code to be in the controller while there is little code in the view portion
of the application.  This allows the designers to design and the coders to
code.

Were the rules broken for convience or has a new methodology taken over?  It
seems to me that the CMP Primer would have been easier to read and
understand if MVC had been used.

This one short coming can easily overlooked to find a gem of an article.
Are there other primers of jollem.com's caliber?  What are some useful URL's
that you guys used to get started.

--Carl





RE: What's going on with Orion? - an answer

2001-01-05 Thread Kemp Randy-W18971

Again, my reply to Orion is that they need to get up to speed quickly.  They have a 
first class product, but because of their pricing structure, their completion is 
present on two fronts.
1.  Create a notch in markets where much higher priced products like WebSphere and 
WebLogic are king.
2.  Convince companies not taking the high priced options that their low priced 
product is better then open source initiatives like Jboss, OpenEJB, and Jonas.
There was some talk a while ago about why Orion is not open source, and now they plan 
to increase Support.  Resin, which is a great product, has a wonderful support 
structure (providing you want to pay for it) in addition to being open source and 
charging a product fee, and they are doing very well in the sales area.  


-Original Message-
From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 12:55 PM
To: Orion-Interest
Subject: RE: What's going on with Orion? - an answer


The Orion team replied about a month ago to similar questions. They are in
the process of restructuring to get their name out, get more people for
support, etc. Its a lengthy process as they told us, trying to get the
company going. It is quite a shock for us after seeing so many updates so
quickly, to see several months of no activity at all. I hope something
happens soon.


> -Original Message-
> From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 04, 2001 6:34 AM
> To: Orion-Interest
> Subject: What's going on with Orion?
> 
> 
> Hello,
> 
> This list has become awfully quiet.  What's going on with 
> Orion?  There
> haven't been any new releases or bug fixes.  Does anyone have any
> information?  Perhaps, someone on the Orion team can give us 
> an update.
> Personally, I'm getting a little concerned.
> 
> Vidur
> 
> 
> 




RE: Security Manager, Policy File and Orion

2001-01-05 Thread Kemp Randy-W18971

I know that there is a tutorial at www.jollem.com about adding security to Orion, but 
it probably doesn't address your specific question. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 4:37 PM
To: Orion-Interest
Subject: Security Manager, Policy File and Orion



Is anybody out there know how to run Orion with a security manager and a
policy file?
I have a very simple servlet which whose init method looks like the
following:

 String parameter;

 public void init(ServletConfig config) throws ServletException
 {
  super.init(config);
  parameter = config.getInitParameter("log-file-path");
   try {
   File file = new File(parameter);
   if (!file.exists() || !file.isDirectory() )
file.mkdirs();
  }
  catch(Exception e )
  {
   System.err.println("Failed to verify directory: " +
parameter);
   System.err.println(e.getMessage());
   e.printStackTrace(System.err);
  }

 }

I start Orion as follows:

java -Djava.security.manager -Djava.security.policy
==file:/C:/Orion/java.policy  -jar orion.jar

The java.policy file is:

grant  {
  permission java.security.AllPermission ;
};

But I always get an AccessControlException in the  file.exists() call in
the init method.

Thanks,
Daniel G. Chandran
Reuters, Inc.





RE: JSP vs Servlet

2001-01-05 Thread Kemp Randy-W18971

A while back, some folks talked about Model 1 (code and HTML mixed in JSP) and Model 2 
(HTML and code separated into Javabean) of JSP.  The tutorials at www.jollem.com use 
Model 1 JSP for the CMP primer.  The jollem folks are creating a method to build 
tutorials, which is found at the main site.  Perhaps some brave volunteers who are 
well versed in MVC or Model 2 can refine the existing tutorials to show us newcomers 
(I know the basics, but I am not an expert) how things should be done.  The way I even 
came this far, was to break down everything they did at jollem (Ant script, beans, 
etc.) to see how the pieces fit together. 

-Original Message-
From: Christian Sell [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 5:11 AM
To: Orion-Interest
Subject: Re: JSP vs Servlet


> Anyway, IMHO adding a methodology on top of the purpose of the article -
> showing the CMP stuff - would have been yet more to learn. I'm of the
> opinion that something like that needs to show off one aspect of the
> technology rather than all aspects, so MVC - while useful - would have
> been yet another thing to track.

and then he would have had to decide which methodology to use. They all
speak of MVC, but nowadays almost everyone seems to have his/her own idea of
how to implement it. There are so many frameworks out there (e.g., Turbine,
Struts, WebWork, WebMacro, Freemarker, Velocity, to name but a few) that it
is hard to keep track, IMO.






Re: Help with Java obfuscators

2001-01-05 Thread Serge Knystautas

- Original Message -
From: "Christian Sell" <[EMAIL PROTECTED]>


> I dont think freeware is the right term, if I read the website correctly.
> What you get there is a 90 day evaluation for non-commercial purposes.
After
> that you may request a commercial license, but it does not say for how
much.

Most all software on alphaworks are being licensed for $1,000 for unlimited
use with no support.  I'm not sure about something like JAX since it's just
a utility... seems like it should be less. (like jikes which was made open
source)

Serge Knystautas
Loki Technologies
http://www.lokitech.com/

>
> >
> > I'm real happy with IBM's freeware product "JAX":
> > http://www.alphaworks.ibm.com/tech/JAX.
> >
> > Incidentally this seems to be the same tool Evermind uses.
> >
> > --Mark
> >






User guide

2001-01-05 Thread Laurent Vansuypeene

hi everybody,

I need to evaluate orionserver but i don't find any user
guide on the site and the documentation is quiet not enough.
For example, i want to know how to define servlet context,
EJB2.0 (how to define EQL, where are the generated stub...)
Has someone a user guide ?

Thanks in advance
__
Boîte aux lettres - Caramail - http://www.caramail.com




Tomcat 3.2 and Orion

2001-01-05 Thread Ratz, Peter

I have to use Tomcat as JSP and Servlet Engine and i want to use
Orion as EJB-Server.
My Problem is that i do not know how to setup tomcat so that i can use
EJBs from Orion (JNDI setup ).

My last error message was :-)
java.lang.ClassFormatError: __Proxy2 (Repeative method name/signature)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at com.evermind.net.jm.findClass(JAX)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.reflect.Proxy.arm(JAX)
at com.evermind.reflect.Proxy.arl(JAX)
at com.evermind.reflect.Proxy.arj(JAX)
at com.evermind.server.rmi.bd.hc(JAX)
at com.evermind.server.rmi.ba.resolveObject(JAX)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:399)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at com.evermind.server.rmi.ba.gq(JAX)
at com.evermind.server.rmi.bd.h0(JAX)
at com.evermind.server.rmi.bd.run(JAX)
at java.lang.Thread.run(Thread.java:484)

Are there any information available how to setup this configuration?

Thanks

Peter




Re: Accessing multiple databases in the same application

2001-01-05 Thread Rafael Alvarez

Hello Michael,

Check the docs for the orion-ejb-jar.xml.

In the entry for entity beans ()
you can specify the datasource and table to be used using the
parameters data-source and table.

You can find the file in $(APP-DEPLOYMENT-DIR)/$(APP-NAME)/ejb

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Re: JSP vs Servlet MVC - CMV

2001-01-05 Thread Johan Fredriksson

I've seen the abbreviation MVC on a lot of places, but shouldn't it be

CMV

for Controller / Model / View

where Controller receives a request, handles it using model and displays it
using view?

Not important to me, just wondered... =)


//Johan
- Original Message -
From: "Fyffe Carl" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 9:07 AM
Subject: JSP vs Servlet


> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC calls for
the
> code to be in the controller while there is little code in the view
portion
> of the application.  This allows the designers to design and the coders to
> code.
>
> Were the rules broken for convience or has a new methodology taken over?
It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
>
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some useful
URL's
> that you guys used to get started.
>
> --Carl
>





Re: load-on-startup

2001-01-05 Thread Johan Fredriksson

If I'm not completely mistaken is the load order for servlets.

Meaning if load-on-startup is 1, that is the first servlet to load, 2 second
to load.

to load - being loaded by Orion.

//Johan



- Original Message -
From: "Neal Kaiser" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 7:10 PM
Subject: load-on-startup


> What are the possible values for   ? I
> thought it was
> just 0 or 1.
>
> I have a Servlet which I wanted to be auto loaded and have a value of 1 in
> there. It wouldn't start up.
> I bumped it up to 4 and it works. Weird, I know
>





Re: JSP vs Servlet

2001-01-05 Thread Christian Sell

> Anyway, IMHO adding a methodology on top of the purpose of the article -
> showing the CMP stuff - would have been yet more to learn. I'm of the
> opinion that something like that needs to show off one aspect of the
> technology rather than all aspects, so MVC - while useful - would have
> been yet another thing to track.

and then he would have had to decide which methodology to use. They all
speak of MVC, but nowadays almost everyone seems to have his/her own idea of
how to implement it. There are so many frameworks out there (e.g., Turbine,
Struts, WebWork, WebMacro, Freemarker, Velocity, to name but a few) that it
is hard to keep track, IMO.






Re: Help with Java obfuscators

2001-01-05 Thread Christian Sell

I dont think freeware is the right term, if I read the website correctly.
What you get there is a 90 day evaluation for non-commercial purposes. After
that you may request a commercial license, but it does not say for how much.

>
> I'm real happy with IBM's freeware product "JAX":
> http://www.alphaworks.ibm.com/tech/JAX.
>
> Incidentally this seems to be the same tool Evermind uses.
>
> --Mark
>






URGENT: Problems with Orion load balancer.

2001-01-05 Thread Tony J Brooks



Happy New Year everyone,

Apologies for re-posting this so soon, but given
that a lot of people will have been away during
the festive period and the necessity for a solution
to my problem intensifies, I want to pass this in
front of you all again.

I'm very grateful for your interest.

Tony.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tony J Brooks
Sent: 22 December 2000 12:39
To: Orion-Interest
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Problems with Orion load balancer.



Dear All,

I'm having problems with load-balancing a single island of two orion
appservers.  I have followed the instructions from the clustering 'howto'
document, and I've made changes to the relevant XML files.  Note, I made the
changes to the default web app files, rather than to the XML files specific
to my app.  From the documentation I expect the changes to therefore impact
*all* apps, and that I should experience the desired clustering and load
balancing for my app.

Using the Microsoft Web App Stress Tool, running 100 threads which
continually request a single page from the clustered app via the load
balancer, things seem to work fine for the first minute or so, despite the
fact that the balancer 'drops' servers periodically but then manages to
re-discover them.  The performance meters for the servers in the app cluster
show that both machines are working at close to full capacity during this
brief period.

At some point after that first minute or so, the load balancer will
typically drop one of the servers, re-discover it, add it back into the
island, but that server will thereafter be unloaded - the performance meter
registers 0% load.  Note that this is despite the fact that the other
server - still alive, is working flat out at 100%.

Has anyone experienced this before ?  I can't find anything in the archive.
I'm especially perplexed since a lot of other people claim to have
load-balancing and clustering working fine - after working from the same
'howto' as me.

I would really appreciate help on this.

Merry Christmas everyone.

Tony.

---
 Dr Tony J Brooks
 Apama (UK) Ltd
 17 Millers Yard
 Cambridge, UK

 Mobile : 07748 767 110
 eMail  : [EMAIL PROTECTED]






Re: JSP vs Servlet

2001-01-05 Thread Joseph B. Ottinger

Well, Ernst did a fine job, but it'd be better if he'd done those things
in XML... *runs* 

Anyway, IMHO adding a methodology on top of the purpose of the article -
showing the CMP stuff - would have been yet more to learn. I'm of the
opinion that something like that needs to show off one aspect of the
technology rather than all aspects, so MVC - while useful - would have
been yet another thing to track.

BTW, Ernst *is* in the process of writing a DTD for the primers. :)

On Fri, 5 Jan 2001, Fyffe Carl wrote:

> I went to jollem.com and read the CMP Primer.  Good read.  But it got me
> thinking about a topic that concerns most people that are in large
> development groups.  Seperation of code and html.  Proper MVC calls for the
> code to be in the controller while there is little code in the view portion
> of the application.  This allows the designers to design and the coders to
> code.
> 
> Were the rules broken for convience or has a new methodology taken over?  It
> seems to me that the CMP Primer would have been easier to read and
> understand if MVC had been used.
> 
> This one short coming can easily overlooked to find a gem of an article.
> Are there other primers of jollem.com's caliber?  What are some useful URL's
> that you guys used to get started.
> 
> --Carl
> 
> 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant





RE: Redirection

2001-01-05 Thread Kevin Duffey

Sure it is. I am not sure if its possible in Servlet 2.1/2.2 to "path map"
to a specific controller servlet, but I think it is. I use extension mapping
myself. But basically you would do something in your web.xml file like:


  controller
  controller
  com.mvc.servlets.ControllerServlet


  controller
  /ss/


Now, anytime the /ss/ appears in the request path, it should pass everything
after the /ss/ as path info to the controller servlet its mapped to. Thus,
anytime the /ss/ is in your path, the servlet you map it to is invoked, and
I think the request.getPathInfo() or one of those calls returns everyting
after the /ss/. Therefore, a link like:

Click

Should call your servlet, and you would recieve a DoThis as a String
parameter or something.

Once you have that, you call upon your EJB session bean (or some business
logic class) that looks up in the database and returns you a path to go to.
Then you simply do:

try
{
  request.getRequestDispatcher(url-from-database).forward(request,response);
}
catch(Exception e)
{
}

That will forward you to the new URL.

Ask if you have any questions..but that should help a bit I hope.


> Hi everyone,
>
> Since it seems that the list is alive and well, although with very
> little traffic, I would like to ask a question which has been bothering
> me for a while.
>
> I am trying to do what I would define as dynamic redirection. What that
> means is that if someone writes an URL like http://myserver/name, I
> would like to look for "name" in a database and redirect the user to
> some other URL. This would allow me to avoid modifying manually the
> configuration file every time a mapping is added,removed or modified.
>
> Is this possible? Any suggestions?
>
> Thanks in advance and Happy New Year!
>
> Huibert Aalbers
>





Re: Redirection

2001-01-05 Thread Petr Podsednik

I use this approach in my jsp:
   
response.sendRedirect("newSelectedURL");
   
This causes pointing my browser to the "newSelectedURL" and it works fine.
Petr

- Original Message - 
From: Huibert Aalbers <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 5:07 PM
Subject: Redirection


> Hi everyone,
> 
> Since it seems that the list is alive and well, although with very
> little traffic, I would like to ask a question which has been bothering
> me for a while.
> 
> I am trying to do what I would define as dynamic redirection. What that
> means is that if someone writes an URL like http://myserver/name, I
> would like to look for "name" in a database and redirect the user to
> some other URL. This would allow me to avoid modifying manually the
> configuration file every time a mapping is added,removed or modified.
> 
> Is this possible? Any suggestions?
> 
> Thanks in advance and Happy New Year!
> 
> Huibert Aalbers
>