RE: INTERESTING FOR DEVELOPMENT TIME: Central location for classes and still able to use hot deployment

2001-07-08 Thread Dvornikov Victor

There is very simple solution to this problem - make ORION server embedded.
I use it. That's it.

-Original Message-
From:   Marcelo Schroeder [SMTP:[EMAIL PROTECTED]]
Sent:   ? 06  2001 7:57
To: Orion-Interest
Subject:INTERESTING FOR DEVELOPMENT TIME: Central location
for classes and still able to use hot deployment

I think this is something that a lot of people in the list would
like to have:
 
A central location for java classes in production or live mode
(located in a network drive for instance) and and classes in development
mode, so when a class doesn't exist in the development location, Orion would
pick them up from the production/live location, and that with Orion still
being able to hot-deploy for EJBs, servlets and helper classes shared by
both ejbs and servlets.
 
OK, I almost got there... I will share my success and also ask for
some help to complete the puzzle:
 
Classpath/classloader issue:
1) My ejbs and helper classes go in the ejb section. Hot
deployment is triggered by touching orion-application.xml. Since the ejb
classloader takes precedence over the servlet classloader, classes loaded
here can be accessed by the servlet classloader and the auto reload
feature can still be used by touching orion-application.xml.
2) Servlets and servlet specific beans go in the web section.
 
Central location for production/live classes
1) Servlets: by using the classpath element in the orion-web.xml
file it is possible to make Orion search for classes first in your
development directory and if it doesn't find them there, then it searches in
the production/live directory. Example:
 
classpath path= file:///C:/proj1/developmentclasses
file:///C:/proj1/developmentclasses /
classpath path= file:/fileserver/proj1/productionclasses
file:/fileserver/proj1/productionclasses /
 
Instead of directories (where you would the expanded classes) you
could also point to jar files.
This solution works fine and the hot deployment still works also
fine.
 
2) EJBs: this is my problem, I was not able to find a way to have
the same classpath set up I have for servlets and get the hot deployment to
work. You can use the library tag in the same way as the solution for
servlets above, but you lose the hot deployment feature.
 
So, my question is: is there a way to set the classpath for EJBs
(first local classes, then production/live classes) and still be able to use
ejb hot-deployment?
 
Any contribution will be highly appreciated. Thanks a lot.
 
Marcelo Schroeder
RecruitASP Pty Ltd - Sydney, Australia
Tel: +61 (0)2 8437 6311
Fax: +61 (0)2 8437 6399
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
http://www.recruitasp.com.au http://www.recruitasp.com.au/ 


  _  

RecruitASP Pty Ltd E-mail Confidentiality Notice

Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not copy or
deliver this message to anyone. In such case, you should destroy this
message and kindly notify the sender by reply email as soon as possible.
Opinions, conclusions and other information in this message that do not
relate to the official business of RecruitASP Pty Ltd shall be understood as
being neither given nor endorsed by RecruitASP Pty Ltd. 

  _  

 




Transaction rollback problems because of incomplete orion-ejb.jar

2001-07-08 Thread Ron van Pol



Hi,

I'm 
using orion 1.5.2 and I have the following problem: I have a session-bean that 
is accessing a datasource in transaction context. I have added an orion-ejb.jar 
in deployment jar/WEB-INF, containing a resource-ref-mapping pointing to 
the EJBDS for I want transaction support for this 
datasource.

session-deployment... 

 resource-ref-mapping 
location="jdbc/myEJBDS" name="jdbc/myDS" /
/session-deployment

After I deploy the application I can see in the deployment-directory that 
Orion only succesfully copiesall setting form my orion-ejb.jar for the 
entity-beans but fails to copy the settings for my session beans. The 
resource-ref-mapping for the sessionbeans lacks the 
location.

session-deployment... 

 resource-ref-mapping name="jdbc/myDS" /
/session-deployment

As a consequencethe 
datasource doesn't point to the EJBDS and therefore will not participate in a 
transaction, that is, transaction rollbacks do not affect the changes made 
through this datasource. 

The datasources.xml file looks like 
this:

data-sources
 
data-source
 
class="com.evermind.sql.DriverManagerDataSource"
 name="DS"
 location="jdbc/myDS"
 xa-location="jdbc/xa/myDS"
 ejb-location="jdbc/myEJBDS"
 
connection-driver="com.sap.dbtech.jdbc.DriverSapDB"
 url="jdbc:sapdb:DS"
 
username="DBA"
 
password="DBA"
 
inactivity-timeout="30"
 
schema="../../config/database-schemas/sapdb.xml"
 /
/data-sources


So, 
help!

Ron



2 parameter finder finding wrong thing

2001-07-08 Thread Kit Cragin

I am using EJB 2.0 and have a finder method that takes 2 parameters (e.g.
the WHERE clause looks something like WHERE columnOne = ?1 AND columnTwo =
?2).

No matter what I do, it does not return the right entity. I have tried
single-object return, Collection return, narrowing, not narrowing, checking
parameters, etc.

I am running Orion 1.4.7 on HypersonicSQL for my testbed. Any ideas?

Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com





RE: Transaction rollback problems because of incomplete orion-ejb.jar

2001-07-08 Thread elephantwalker



Ron,

Take a 
look at bug 512. Your orion-ejb-jar.xmlis being overwritten with a double 
deployment of the application. Same thing happened to me. AFAIK, the only work 
around is to use version 1.5.1 or earlier.

I 
reproduced this bug with a modified atm application. 

Regards,

the 
elephantwalker


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Ron van 
  PolSent: Sunday, July 08, 2001 9:29 AMTo: 
  Orion-InterestSubject: Transaction rollback problems because of 
  incomplete orion-ejb.jar
  Hi,
  
  I'm using orion 1.5.2 and I have the following 
  problem: I have a session-bean that is accessing a datasource in transaction 
  context. I have added an orion-ejb.jar in deployment jar/WEB-INF, 
  containing a resource-ref-mapping pointing to the EJBDS for I want transaction 
  support for this datasource.
  
  session-deployment... 
  
   resource-ref-mapping 
  location="jdbc/myEJBDS" name="jdbc/myDS" /
  /session-deployment
  
  After I deploy the application I can see in the deployment-directory 
  that Orion only succesfully copiesall setting form my orion-ejb.jar for 
  the entity-beans but fails to copy the settings for my session beans. The 
  resource-ref-mapping for the sessionbeans lacks the 
  location.
  
  session-deployment... 
  
   resource-ref-mapping 
  name="jdbc/myDS" 
  /
  /session-deployment
  
  As a consequencethe 
  datasource doesn't point to the EJBDS and therefore will not participate in a 
  transaction, that is, transaction rollbacks do not affect the changes made 
  through this datasource. 
  
  The datasources.xml file looks like 
  this:
  
  data-sources
   
  data-source
   
  class="com.evermind.sql.DriverManagerDataSource"
   name="DS"
   location="jdbc/myDS"
   xa-location="jdbc/xa/myDS"
   ejb-location="jdbc/myEJBDS"
   
  connection-driver="com.sap.dbtech.jdbc.DriverSapDB"
   url="jdbc:sapdb:DS"
   
  username="DBA"
   
  password="DBA"
   
  inactivity-timeout="30"
   
  schema="../../config/database-schemas/sapdb.xml"
   /
  /data-sources
  
  
  So, help!
  
  Ron
  


ejb-jar.xml -- orion-ejb-jar.xml bug? finder parameters

2001-07-08 Thread Kit Cragin

I have discovered that when creating a finder with 2 parameters, the
resulting orion-ejb-jar.xml that gets generated by Orion outputs

finder-method query=

instead of

finder-method query=$columnOne = $1 AND $columnTwo = $2

for the finder example below. Single-parameter finders seem to generate the
correct query. Has anyone experienced this problem? Is there a work-around
or should I report this as an enhancement request or bug? Please don't tell
me I have to edit this file by hand or some sort of processing during a
build!

- Kit

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kit Cragin
Sent: Sunday, July 08, 2001 12:30 PM
To: Orion-Interest
Subject: 2 parameter finder finding wrong thing


I am using EJB 2.0 and have a finder method that takes 2 parameters (e.g.
the WHERE clause looks something like WHERE columnOne = ?1 AND columnTwo =
?2).

No matter what I do, it does not return the right entity. I have tried
single-object return, Collection return, narrowing, not narrowing, checking
parameters, etc.

I am running Orion 1.4.7 on HypersonicSQL for my testbed. Any ideas?

Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com







RE: Transaction rollback problems because of incomplete orion-ejb.jar

2001-07-08 Thread Ron van Pol



Just 
looked at bug 512. The behavior is very similar to what I'm 
experiencing.Oninitial deployment the orion-ejb.jar file is copied 
to the deployment directory. THis is also ok in my case. Problems start arising 
similarly after redeployment of the ejb module. After this the orion-ejb.jar is 
incomplete, that is, ONLY my sessionbeans lack the specified location in 
resource-ref-mapping. My entitybeans are ok however. Modifying the orion-ejb.jar 
by hand after initial deployment seems to work but that is not a acceptable 
procedure.

Thanks,
Ron

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  elephantwalkerSent: Sunday, July 08, 2001 8:29 PMTo: 
  Orion-InterestSubject: RE: Transaction rollback problems because of 
  incomplete orion-ejb.jar
  Ron,
  
  Take 
  a look at bug 512. Your orion-ejb-jar.xmlis being overwritten with a 
  double deployment of the application. Same thing happened to me. AFAIK, the 
  only work around is to use version 1.5.1 or earlier.
  
  I 
  reproduced this bug with a modified atm application. 
  
  Regards,
  
  the 
  elephantwalker
  
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Ron van 
PolSent: Sunday, July 08, 2001 9:29 AMTo: 
Orion-InterestSubject: Transaction rollback problems because of 
incomplete orion-ejb.jar
Hi,

I'm using orion 1.5.2 and I have the following 
problem: I have a session-bean that is accessing a datasource in transaction 
context. I have added an orion-ejb.jar in deployment jar/WEB-INF, 
containing a resource-ref-mapping pointing to the EJBDS for I want 
transaction support for this datasource.

session-deployment... 

 resource-ref-mapping 
location="jdbc/myEJBDS" 
name="jdbc/myDS" 
/
/session-deployment

After I deploy the application I can see in the deployment-directory 
that Orion only succesfully copiesall setting form my orion-ejb.jar 
for the entity-beans but fails to copy the settings for my session beans. 
The resource-ref-mapping for the sessionbeans lacks the 
location.

session-deployment... 

 resource-ref-mapping 
name="jdbc/myDS" 
/
/session-deployment

As a 
consequencethe datasource doesn't point to the EJBDS and therefore 
will not participate in a transaction, that is, transaction rollbacks do not 
affect the changes made through this datasource. 

The datasources.xml file looks like 
this:

data-sources
 
data-source
 
class="com.evermind.sql.DriverManagerDataSource"
 name="DS"
 location="jdbc/myDS"
 
xa-location="jdbc/xa/myDS"
 ejb-location="jdbc/myEJBDS"
 
connection-driver="com.sap.dbtech.jdbc.DriverSapDB"
 url="jdbc:sapdb:DS"
 
username="DBA"
 
password="DBA"
 
inactivity-timeout="30"
 
schema="../../config/database-schemas/sapdb.xml"
 /
/data-sources


So, help!

Ron



RE: How can I get UserTransaction or TransactionManager

2001-07-08 Thread HyungKee Hwang

Thank you Aby
I tried java:comp/env/UserTransaction, but the same error occurred.

Any advice appreciated.

Regards,
-HK


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 3:47 PM
To: Orion-Interest
Subject: Re: How can I get UserTransaction or TransactionManager


Hi HK,
I think you should try

java:comp/env/UserTransaction

Regards
Aby




HyungKee Hwang [EMAIL PROTECTED]@orionserver.com on 07-07-2001
09:10:55 AM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:
Subject:  How can I get UserTransaction or TransactionManager


Hello, all.

Can you give me some advice how to get UserTransaction or
TrasactionManger?

I wrote some codes in my application as follows;

 // Below codes are from Orion FAQ
import javax.naming.*;
import javax.transaction.*;
...
TransactionManager manager = (TransactionManager)new InitialContext
().lookup(java:comp/UserTransaction);
I didn't have any problem compiling my codes, but I met below error
while running my application
avax.naming.NameNotFoundException: java:comp/UserTransaction not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
Thank you in advance.
-HK








Re: ejb-jar.xml -- orion-ejb-jar.xml bug? finder parameters

2001-07-08 Thread Jeff Hubbach

Kit,

Yes, you have to edit the file by hand. I know that isn't what you wanted
to hear, but it's alot nicer than what JRun was asking us to do for CMP
(writing the full query for everything, it wouldn't generate a single
findBy or create).
You can edit the orion-ejb-jar.xml, then include it in your ejb.jar. Just
remember that the only time this file gets copied over is on initial
deployment.

Jeff.

On Sun, 08 Jul 2001 17:13:47 -0500
Kit Cragin [EMAIL PROTECTED] wrote:

I have discovered that when creating a finder with 2 parameters, the
resulting orion-ejb-jar.xml that gets generated by Orion outputs

finder-method query=

instead of

finder-method query=$columnOne = $1 AND $columnTwo = $2

for the finder example below. Single-parameter finders seem to generate
the
correct query. Has anyone experienced this problem? Is there a
work-around
or should I report this as an enhancement request or bug? Please don't
tell
me I have to edit this file by hand or some sort of processing during a
build!

- Kit

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kit Cragin
Sent: Sunday, July 08, 2001 12:30 PM
To: Orion-Interest
Subject: 2 parameter finder finding wrong thing


I am using EJB 2.0 and have a finder method that takes 2 parameters (e.g.
the WHERE clause looks something like WHERE columnOne = ?1 AND columnTwo
=
?2).

No matter what I do, it does not return the right entity. I have tried
single-object return, Collection return, narrowing, not narrowing,
checking
parameters, etc.

I am running Orion 1.4.7 on HypersonicSQL for my testbed. Any ideas?

Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com








RE: How can I get UserTransaction or TransactionManager

2001-07-08 Thread aby


Hi HK,
I am getting puzzled now on this.
Maybe you could try UserTransaction ut = context.getUserTransaction();

where 'context' is the SessionContext or EntityContext variable which
is declared at the top of the EJB as a variable.

Kind Regards
Aby





RE: Orion 1.5.2 and ORM Map bug (SHOW STOPPER)

2001-07-08 Thread Simon Harris



I have checked this out and it does not seem to be 
the problem. The orion-ejb-jar.xml file remains intact. 

If I remove the deployment directory and do an 
initial deployment, all data created while the server is up is readable. Any 
data that already existed in the database is unreadable.

This is now a very serious problem for us and may 
require re-writing a large portion of the application to work-around 
it!

Regards,

Simon.


RE: How can I get UserTransaction or TransactionManager

2001-07-08 Thread Haeussler, Heinz

Hi HK,

you can't get UserTransaction from an Application-Client-or
RMI-Client-Context. This (optional) feature is not supported by Orion.

Heinz

-Ursprüngliche Nachricht-
Von: HyungKee Hwang [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 9. Juli 2001 02:35
An: Orion-Interest
Betreff: RE: How can I get UserTransaction or TransactionManager

Thank you Aby
I tried java:comp/env/UserTransaction, but the same error occurred.

Any advice appreciated.

Regards,
-HK


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 3:47 PM
To: Orion-Interest
Subject: Re: How can I get UserTransaction or TransactionManager


Hi HK,
I think you should try

java:comp/env/UserTransaction

Regards
Aby




HyungKee Hwang [EMAIL PROTECTED]@orionserver.com on 07-07-2001
09:10:55 AM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:
Subject:  How can I get UserTransaction or TransactionManager


Hello, all.

Can you give me some advice how to get UserTransaction or
TrasactionManger?

I wrote some codes in my application as follows;

 // Below codes are from Orion FAQ
import javax.naming.*;
import javax.transaction.*;
...
TransactionManager manager = (TransactionManager)new InitialContext
().lookup(java:comp/UserTransaction);
I didn't have any problem compiling my codes, but I met below error
while running my application
avax.naming.NameNotFoundException: java:comp/UserTransaction not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
Thank you in advance.
-HK








Help on List

2001-07-08 Thread Abhilash Koneri

HI,
I need to unsubscribe from this list and subscribe to a different mail
id. I managed
the secoud part. But how do I go about the former?? (The unsubscribe
button on the orionserver home
page does not work).

regards,
abhilash