Re[2]: Fwd: file upload

2001-07-13 Thread Christoph Sturm

Hello Nick,

Thursday, July 12, 2001, 5:57:56 PM, you wrote:

NN Hi Christoph,

NN Sending a file to the server is a specialized little job.  The Orion server 
NN supplies some orion-specific classes to help (see www.orionsupport.com and 
NN search for 'upload').  Alternatively, I have written some generic J2EE code 
NN for the same task, and you are welcome to have that - just drop me a 
NN line.  (The orionsupport guys said they'd post it on their website, but so 
NN far it's not there.)

Hey nick!

It would be great if you could send me your code.
I have the upload from the client to the webserver already going. What
I need now is to get the file into a ejb.

regards
 chris





Re: HOT deployment ??

2001-07-13 Thread Eddie

Helllu, noc noc...

Can someone please help me with the problem I did send a few days ago ??

I like to hear how Linux users correctly deploy their J2EE applications, and
the problems the are having with this ?


Eddie


- Original Message -
From: Eddie [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 2:45 PM
Subject: HOT deployment ??


 I still don't understand when my changes are NOT picked up ??
 During development I don't have a ear file, I just have a dir with all the
 classes/xml files.
 Untill now, when I change something in an EJB class, I have to stop orion,
 delete the deployment dir en start again
 Why like this ?? As if I do it the other ways, like:
 + using the admin.jar tool, something like: java -jar /opt/Orion/admin.jar
 ormi://localhost admin pass -deploy -file
 /opt/Orion/applications/sgs.ear -deploymentName sgs
 + touching the xml files in the META dir (the orion signals an update).
 + Removing the deployment dir during operation... it gives Java
Exception:
 Broken pipe errror...

 If I do it like above it ofter occurs that it doesn't pick up my changes.
 Also when I replace a class that is not part of the EJB's, which it loaded
 during runtime, it still keeps on using the old class... what am I doing
 wrong It can't believe that is can't be done more simple!!??

 BTW: when I do a:
 ++ java -jar /opt/Orion/admin.jar ormi://localhost admin pass -restart, I
do
 get:
 --
 Recovery completed, 0 connections committed and 0 rolled back...
 Orion/1.5.1 initialized

 Restarting...
 Error starting JMS-Server: Unable to bind socket: Address already in use
 Error starting RMI-Server: IO Error: Address already in use
 -

 ++ The shutdown command does work however.

 So please some advices on what I am doing wrong, and how I should do it
(do
 I needs to change some JVM settings ??).
 I am running RedHat 7.0.

 Eddie






Re: UNSUSCRIBE

2001-07-13 Thread binesh gummadi




From: Carlo Diaz [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: UNSUSCRIBE
Date: Fri, 13 Jul 2001 12:20:03 +1000





_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Transaction problems

2001-07-13 Thread Christian Bagnoli

Hi,

we're implementing an entity bean with transactional (container managed)
methods. This bean is accessed by
a session statefull bean. We have transactional problem when a method fails
(that is throws an EJBException) because orion doesn't rollback the
transaction.
Does anybody figure out how to make orion rollback the transaction?
We have also tried with a session stateless/stateful having the same problem
.
Also implementing the SessionSycronization interface doesn't trap the
transaction
boundaries.

Our data-source.xml is:

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=SetmoveDS
  location=jdbc/SetmoveDS
  xa-location=jdbc/xa/MySetmoveDS
  ejb-location=jdbc/myEJBDS
  connection-driver=oracle.jdbc.OracleDriver
  username=test
  password=test
  url=jdbc:oracle:thin:test/test@testsun:1521:test
  inactivity-timeout=30
 /

we use orion 1.5.2.

the ejb-jar.xml is:
.
 session
   display-nameLogEntJAR/display-name
   descriptionLogEntJAR/description
   ejb-nameMyLogEnt/ejb-name
   homesetmove.beans.logica.LogEntHome/home
   remotesetmove.beans.logica.LogEnt/remote
   ejb-classsetmove.beans.logica.LogEntEJB/ejb-class
   session-typeStateful/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
ejb-ref-nameMyEntUtente/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homesetmove.beans.logica.EntUtenteHome/home
remotesetmove.beans.logica.EntUtente/remote
   /ejb-ref
  /session
.
  entity
   display-nameEntUtenteJAR/display-name
   descriptionEntUtenteJAR/description
   ejb-nameMyEntUtente/ejb-name
   homesetmove.beans.logica.EntUtenteHome/home
   remotesetmove.beans.logica.EntUtente/remote
   ejb-classsetmove.beans.logica.EntUtenteEJB/ejb-class
   persistence-typeBean/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantfalse/reentrant
   resource-ref
descriptiondescription/description
res-ref-namejdbc/SetmoveDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref
  /entity
.
container-transaction
method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

thanks a lot.

Christian





deployment error

2001-07-13 Thread Armin Michel

Hi.

I've got an j2ee-app that works fine with: Orion1.5.2, linux, Sun JDK 1.3.1.
Now I am forced to move to: Orion 1.5.2, Win2k (sp2), Sun JDK 1.3.1.

When I try to deploy my app, I get the following error-msgs:

Error in application protestanttester: Error loading package at 
file:/D:/java/protestant/protestanttester/protestant-ejb.jar, Unable to 
find/read assembly info for 
D:\java\protestant\protestanttester/protestant-ejb.jar (META-INF/ejb-jar.xml)

Error instantiating application 'protestanttester' at
file:/D:/java/protestant/protestanttester.ear: Error auto-deploying 
application-client at protestanttester-client.jar: Unable to find/read 
assembly info for D:\java\protestant\protestant
tester/protestanttester-client.jar (META-INF/application-client.xml)

Any ideas?
Could it be a problem that is related to the '/' versus '\' issue? The 
error-msg mixes these two versions heavily.


A desperate

Armin Michel




Re: Re[2]: Fwd: file upload

2001-07-13 Thread Joseph B. Ottinger

www.orionsupport.com now has Nick's classes on it (see the File
Upload link.) 

As for storing it in an EJB... beware, here be dragons and really poor
network latency.

On Fri, 13 Jul 2001, Christoph Sturm wrote:

 Hello Nick,
 
 Thursday, July 12, 2001, 5:57:56 PM, you wrote:
 
 NN Hi Christoph,
 
 NN Sending a file to the server is a specialized little job.  The Orion server 
 NN supplies some orion-specific classes to help (see www.orionsupport.com and 
 NN search for 'upload').  Alternatively, I have written some generic J2EE code 
 NN for the same task, and you are welcome to have that - just drop me a 
 NN line.  (The orionsupport guys said they'd post it on their website, but so 
 NN far it's not there.)
 
 Hey nick!
 
 It would be great if you could send me your code.
 I have the upload from the client to the webserver already going. What
 I need now is to get the file into a ejb.
 
 regards
  chris
 
 

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





No Subject

2001-07-13 Thread chry_ba

Hi,

we're implementing an entity bean with transactional (container managed)
methods. This bean is accessed by
a session statefull bean. We have transactional problem when a method fails
(that is throws an EJBException) because orion doesn't rollback the
transaction.
Does anybody figure out how to make orion rollback the transaction?
We have also tried with a session stateless/stateful having the same problem
.
Also implementing the SessionSycronization interface doesn't trap the
transaction
boundaries.

Our data-source.xml is:

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=SetmoveDS
  location=jdbc/SetmoveDS
  xa-location=jdbc/xa/MySetmoveDS
  ejb-location=jdbc/myEJBDS
  connection-driver=oracle.jdbc.OracleDriver
  username=test
  password=test
  url=jdbc:oracle:thin:test/test@testsun:1521:test
  inactivity-timeout=30
 /

we use orion 1.5.2.

the ejb-jar.xml is:
.
 session
   display-nameLogEntJAR/display-name
   descriptionLogEntJAR/description
   ejb-nameMyLogEnt/ejb-name
   homesetmove.beans.logica.LogEntHome/home
   remotesetmove.beans.logica.LogEnt/remote
   ejb-classsetmove.beans.logica.LogEntEJB/ejb-class
   session-typeStateful/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
ejb-ref-nameMyEntUtente/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homesetmove.beans.logica.EntUtenteHome/home
remotesetmove.beans.logica.EntUtente/remote
   /ejb-ref
  /session
.
  entity
   display-nameEntUtenteJAR/display-name
   descriptionEntUtenteJAR/description
   ejb-nameMyEntUtente/ejb-name
   homesetmove.beans.logica.EntUtenteHome/home
   remotesetmove.beans.logica.EntUtente/remote
   ejb-classsetmove.beans.logica.EntUtenteEJB/ejb-class
   persistence-typeBean/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantfalse/reentrant
   resource-ref
descriptiondescription/description
res-ref-namejdbc/SetmoveDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref
  /entity
.
container-transaction
method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

thanks a lot.

Christian






RE: Apache and Orion

2001-07-13 Thread Klonicki, Stephen A


For those that access PL/SQL through the application server (Oracle 9iAS),
there is mod_plsql for Apache.

Is there an equivalent for OrionServer?  I do not believe that there is so
those users would still need to rely on Apache.

-Original Message-
From: Michael J. Cannon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 4:52 PM
To: Orion-Interest
Subject: Re: Apache and Orion


So why use Apache?

The Orionserver will serve up static http pages...I've looked and tehre are
no issues I can see that Orion won't handle with regards the content 9i and
the v.11/12 Oracle Apps...

This is not meant as a criticism or flame...it's for my info, as I also
support Oracle and have no prob running w/ just the OrionServer (w/ out
Apache).  Of course, all my apps are written to run that way.  What does
Apache do for Oracle that Orion can't do better?

Michael J. Cannon
[EMAIL PROTECTED]
- Original Message -
From: Gurinder Randhawa [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 12, 2001 12:10 PM
Subject: RE: Apache and Orion





 I am running an orion cluster behind a  load balancer and Apache at the
 front end on same machine, its on a test
 system so theirs no real load. We are using Oracles 9i Application Server.

 We use Apache for oracle reports and SSL and of course serving up static
 content etc.
 The problem is with mod_proxy which is just plain slow.

 Oracle is coming out with a ojp protocol which is based on ajp13 which
will
 solve my problems,
 but until then (late october) I wanted to use Orion but it just doesn't
 integrate well with apache.

 Any suggestions ? No i haven't tried the tunnelServlet, I will look into
 that.

 I was just wondering if anyone else has this kind of setup. Note we are
 using
 Oracle's OC4J (which is essentially orion). They bought Orion and popped
it
 into their next release
 of application server.

 Regards

 Gurinder






 elephantwalker [EMAIL PROTECTED] on 07/10/2001 08:45:30 PM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  RE: Apache and Orion




 Have you tried using the tunnelServlet to pass all static requests to
 Apache? Its a little bass-ackwards, but orion could be faster than
apache
 in this respect.

 Also, are you running orion, the loadbalancer,  and apache on the same
 machine? This could be just a load issue.

 Lastly, orion is generally faster than apache at serving up static
content.
 There are very good reasons for using apache for static content, though,
 that have nothing to do with speed. (For example, you have one ssl cert
for
 apache, and you don't want to pay for another one for orion.).

 regards,

 the elephantwalker

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
 Randhawa
 Sent: Tuesday, July 10, 2001 7:36 PM
 To: Orion-Interest
 Subject: Apache and Orion






 Is anyone using Apache as a front end to Orion. I find that using
mod_proxy
   to forward web application requests

 is quite slow compared to using tomcat. Does anyone know if there is
   something else i can use beside mod_proxy

 for Apache to serve static pages and orion to serve my web applications ?



 I do need to use Apache as a front end server.

 I am also using a loadbalancer and a cluster for my orion setup behind
   apache.



 Any help would be much appreciated



 Gurinder

















text database type ?

2001-07-13 Thread Eddie

Can someone please tell me how I map a database type text (postgres type)
to a String in Java, to handle large data ??

There already exists a mapping:
type-mapping type=java.lang.String name=varchar /

I if I inculde another one of this kind:
type-mapping type=java.lang.String name=text /

Orion will not know to which type it has to cast, does it ??

Please some advice,

Eddie






RE: Transaction problems

2001-07-13 Thread J Davis

We would also be interested in a solution to this problem as we have
encountered the same thing.  We are using 1.5.2 and Oracle 8.1.6 for our
situation.
We have also run into an issue where if you start a transaction and
inside hit a lot of different data/ejbs the Orion server maxes out it's
CURSOR allocation to oracle.  It creates a new connection and continues
on, but the error is thrown to the logs and can cause some code to skip
steps (due to catching the exception). We were assuming that since the
transaction was still open Orion was not closing any cursors to wait for
a commit, but we don't really know what is going on in the background.

Any ideas?

Greg


-Original Message-
From: Christian Bagnoli [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 6:00 AM
To: Orion-Interest
Subject: Transaction problems


Hi,

we're implementing an entity bean with transactional (container managed)
methods. This bean is accessed by
a session statefull bean. We have transactional problem when a method
fails
(that is throws an EJBException) because orion doesn't rollback the
transaction.
Does anybody figure out how to make orion rollback the transaction?
We have also tried with a session stateless/stateful having the same
problem
.
Also implementing the SessionSycronization interface doesn't trap the
transaction
boundaries.

Our data-source.xml is:

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=SetmoveDS
  location=jdbc/SetmoveDS
  xa-location=jdbc/xa/MySetmoveDS
  ejb-location=jdbc/myEJBDS
  connection-driver=oracle.jdbc.OracleDriver
  username=test
  password=test
  url=jdbc:oracle:thin:test/test@testsun:1521:test
  inactivity-timeout=30
 /

we use orion 1.5.2.

the ejb-jar.xml is:
.
 session
   display-nameLogEntJAR/display-name
   descriptionLogEntJAR/description
   ejb-nameMyLogEnt/ejb-name
   homesetmove.beans.logica.LogEntHome/home
   remotesetmove.beans.logica.LogEnt/remote
   ejb-classsetmove.beans.logica.LogEntEJB/ejb-class
   session-typeStateful/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
ejb-ref-nameMyEntUtente/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homesetmove.beans.logica.EntUtenteHome/home
remotesetmove.beans.logica.EntUtente/remote
   /ejb-ref
  /session
.
  entity
   display-nameEntUtenteJAR/display-name
   descriptionEntUtenteJAR/description
   ejb-nameMyEntUtente/ejb-name
   homesetmove.beans.logica.EntUtenteHome/home
   remotesetmove.beans.logica.EntUtente/remote
   ejb-classsetmove.beans.logica.EntUtenteEJB/ejb-class
   persistence-typeBean/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantfalse/reentrant
   resource-ref
descriptiondescription/description
res-ref-namejdbc/SetmoveDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref
  /entity
.
container-transaction
method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

thanks a lot.

Christian








Auto-reply: RE: Apache and Orion

2001-07-13 Thread ORAPOST


Bonjour, 
Je serai absent jusqu'au30 juillet 2001.En cas d'urgence, vous 
pouvez contacter mon assistante Stéphanie Vikar. Tél: 01.47.62.23.24 - 
e-mail:sté[EMAIL PROTECTED] 
Cordialement, -- Philippe ELINCK Oracle +33 1 47 62 29 28 
+33 6 07 34 06 08 [EMAIL PROTECTED] 
Votre accès privilégié à l'information technologique d'Oracle Your 
definitive source for Oracle technical information Oracle Technology Network 
http://technet.oracle.com/ 
 



For those that access PL/SQL through the application server (Oracle 9iAS),
there is mod_plsql for Apache.

Is there an equivalent for OrionServer?  I do not believe that there is so
those users would still need to rely on Apache.

-Original Message-
From: Michael J. Cannon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 4:52 PM
To: Orion-Interest
Subject: Re: Apache and Orion


So why use Apache?

The Orionserver will serve up static http pages...I've looked and tehre are
no issues I can see that Orion won't handle with regards the content 9i and
the v.11/12 Oracle Apps...

This is not meant as a criticism or flame...it's for my info, as I also
support Oracle and have no prob running w/ just the OrionServer (w/ out
Apache).  Of course, all my apps are written to run that way.  What does
Apache do for Oracle that Orion can't do better?

Michael J. Cannon
[EMAIL PROTECTED]
- Original Message -
From: Gurinder Randhawa [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 12, 2001 12:10 PM
Subject: RE: Apache and Orion





 I am running an orion cluster behind a  load balancer and Apache at the
 front end on same machine, its on a test
 system so theirs no real load. We are using Oracles 9i Application Server.

 We use Apache for oracle reports and SSL and of course serving up static
 content etc.
 The problem is with mod_proxy which is just plain slow.

 Oracle is coming out with a ojp protocol which is based on ajp13 which
will
 solve my problems,
 but until then (late october) I wanted to use Orion but it just doesn't
 integrate well with apache.

 Any suggestions ? No i haven't tried the tunnelServlet, I will look into
 that.

 I was just wondering if anyone else has this kind of setup. Note we are
 using
 Oracle's OC4J (which is essentially orion). They bought Orion and popped
it
 into their next release
 of application server.

 Regards

 Gurinder






 elephantwalker [EMAIL PROTECTED] on 07/10/2001 08:45:30 PM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  RE: Apache and Orion




 Have you tried using the tunnelServlet to pass all static requests to
 Apache? Its a little bass-ackwards, but orion could be faster than
apache
 in this respect.

 Also, are you running orion, the loadbalancer,  and apache on the same
 machine? This could be just a load issue.

 Lastly, orion is generally faster than apache at serving up static
content.
 There are very good reasons for using apache for static content, though,
 that have nothing to do with speed. (For example, you have one ssl cert
for
 apache, and you don't want to pay for another one for orion.).

 regards,

 the elephantwalker

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
 Randhawa
 Sent: Tuesday, July 10, 2001 7:36 PM
 To: Orion-Interest
 Subject: Apache and Orion






 Is anyone using Apache as a front end to Orion. I find that using
mod_proxy
   to forward web application requests

 is quite slow compared to using tomcat. Does anyone know if there is
   something else i can use beside mod_proxy

 for Apache to serve static pages and orion to serve my web applications ?



 I do need to use Apache as a front end server.

 I am also using a loadbalancer and a cluster for my orion setup behind
   apache.



 Any help would be much appreciated



 Gurinder


















Re: Transaction problems

2001-07-13 Thread Rafael Alvarez

Hello Christian,
The ejb-name tag in method must match the ejb-name in entity
or session. Also, specify a trans-attribute.

Try putting this in your ejb-jar.xml:

container-transaction
  method
ejb-nameMyLogEnt/ejb-name
method-name*/method-name
trans-attributeRequired/trans-attribute
  /method
  method
 ejb-nameMyEntUtente/ejb-name
 method-name*/method-name
 trans-attributeRequired/trans-attribute
  /method
/container-transaction





-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Re: Transaction problems

2001-07-13 Thread aby


Hi Christian,
Frankly we have the same problem, trying to access the entity bean
through a session bean and not being able to rollback. However
rollback is working perfectly fine in stateful/stateless session bean.

One thing which I noticed in your xml file is that you have not given
the tranas-attribute 'Required'. You have to do that in order to get
at least the stateless or stateful beans to work on transactions. E.g.
do two sql 'inserts' in one session bean in one method and if one
fails throw EJBException and the rollback happens.

But in the case of an entity bean being accessed by a session bean, if
the entity throws an EJBException in the ejbStore() that is not being
caught by the session bean and so the rollback does not occur.

If you want the code for the session beans working with rollback, I
can send it to you. I have to thank Mr Rob Lapenese for that bit of
help.

Kind Regards
Aby Philip





RE: Transaction problems

2001-07-13 Thread Jon Rue

As far as I have seen Orion behaves as per spec in regard to transactions. I
am not sure what the default transaction type Orion will assume if you do
not explicitly declare one in the ejb-jar.xml file but I imagine it defaults
to supports. You should explicitly declare your transaction attribute to
required in order to ensure that the session beans join the transaction of
the entity beans. 

Like so:

container-transaction
  method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
trans-attributeRequired/trans-attribute
  /method
  method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
trans-attributeRequired/trans-attribute
  /method
/container-transaction

Cheers,
-Jon


-Original Message-
From: Christian Bagnoli [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 5:00 AM
To: Orion-Interest
Subject: Transaction problems


Hi,

we're implementing an entity bean with transactional (container managed)
methods. This bean is accessed by
a session statefull bean. We have transactional problem when a method fails
(that is throws an EJBException) because orion doesn't rollback the
transaction.
Does anybody figure out how to make orion rollback the transaction?
We have also tried with a session stateless/stateful having the same problem
.
Also implementing the SessionSycronization interface doesn't trap the
transaction
boundaries.

Our data-source.xml is:

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=SetmoveDS
  location=jdbc/SetmoveDS
  xa-location=jdbc/xa/MySetmoveDS
  ejb-location=jdbc/myEJBDS
  connection-driver=oracle.jdbc.OracleDriver
  username=test
  password=test
  url=jdbc:oracle:thin:test/test@testsun:1521:test
  inactivity-timeout=30
 /

we use orion 1.5.2.

the ejb-jar.xml is:
.
 session
   display-nameLogEntJAR/display-name
   descriptionLogEntJAR/description
   ejb-nameMyLogEnt/ejb-name
   homesetmove.beans.logica.LogEntHome/home
   remotesetmove.beans.logica.LogEnt/remote
   ejb-classsetmove.beans.logica.LogEntEJB/ejb-class
   session-typeStateful/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
ejb-ref-nameMyEntUtente/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homesetmove.beans.logica.EntUtenteHome/home
remotesetmove.beans.logica.EntUtente/remote
   /ejb-ref
  /session
.
  entity
   display-nameEntUtenteJAR/display-name
   descriptionEntUtenteJAR/description
   ejb-nameMyEntUtente/ejb-name
   homesetmove.beans.logica.EntUtenteHome/home
   remotesetmove.beans.logica.EntUtente/remote
   ejb-classsetmove.beans.logica.EntUtenteEJB/ejb-class
   persistence-typeBean/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantfalse/reentrant
   resource-ref
descriptiondescription/description
res-ref-namejdbc/SetmoveDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref
  /entity
.
container-transaction
method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

thanks a lot.

Christian





RE: Transaction problems

2001-07-13 Thread elephantwalker

check out the bad name on your session bean. Looks like that could be an
issue.

container-transaction
method
ejb-nameLogEntEJB/ejb-name !- should be MyEntEJB --
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

regards,

the elephantwalker

.ps We use transaction control with Oracle, and roll backs are only a
problem when there
is a time-out issue. That is, Oracle times out on the transaction before
the server is finished.

If you have nested transactions, are some of them still pending? I mean, a
sfsb is around as long as the session is open or the session times out.
Usually the session time-out is 56 minutes in orion, unless you change it.
Your Oracle time-out is 30 minutes. That mismatch could be the issue.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of J Davis
Sent: Friday, July 13, 2001 7:44 AM
To: Orion-Interest
Subject: RE: Transaction problems


We would also be interested in a solution to this problem as we have
encountered the same thing.  We are using 1.5.2 and Oracle 8.1.6 for our
situation.
We have also run into an issue where if you start a transaction and
inside hit a lot of different data/ejbs the Orion server maxes out it's
CURSOR allocation to oracle.  It creates a new connection and continues
on, but the error is thrown to the logs and can cause some code to skip
steps (due to catching the exception). We were assuming that since the
transaction was still open Orion was not closing any cursors to wait for
a commit, but we don't really know what is going on in the background.

Any ideas?

Greg


-Original Message-
From: Christian Bagnoli [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 6:00 AM
To: Orion-Interest
Subject: Transaction problems


Hi,

we're implementing an entity bean with transactional (container managed)
methods. This bean is accessed by
a session statefull bean. We have transactional problem when a method
fails
(that is throws an EJBException) because orion doesn't rollback the
transaction.
Does anybody figure out how to make orion rollback the transaction?
We have also tried with a session stateless/stateful having the same
problem
.
Also implementing the SessionSycronization interface doesn't trap the
transaction
boundaries.

Our data-source.xml is:

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=SetmoveDS
  location=jdbc/SetmoveDS
  xa-location=jdbc/xa/MySetmoveDS
  ejb-location=jdbc/myEJBDS
  connection-driver=oracle.jdbc.OracleDriver
  username=test
  password=test
  url=jdbc:oracle:thin:test/test@testsun:1521:test
  inactivity-timeout=30
 /

we use orion 1.5.2.

the ejb-jar.xml is:
.
 session
   display-nameLogEntJAR/display-name
   descriptionLogEntJAR/description
   ejb-nameMyLogEnt/ejb-name
   homesetmove.beans.logica.LogEntHome/home
   remotesetmove.beans.logica.LogEnt/remote
   ejb-classsetmove.beans.logica.LogEntEJB/ejb-class
   session-typeStateful/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
ejb-ref-nameMyEntUtente/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homesetmove.beans.logica.EntUtenteHome/home
remotesetmove.beans.logica.EntUtente/remote
   /ejb-ref
  /session
.
  entity
   display-nameEntUtenteJAR/display-name
   descriptionEntUtenteJAR/description
   ejb-nameMyEntUtente/ejb-name
   homesetmove.beans.logica.EntUtenteHome/home
   remotesetmove.beans.logica.EntUtente/remote
   ejb-classsetmove.beans.logica.EntUtenteEJB/ejb-class
   persistence-typeBean/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantfalse/reentrant
   resource-ref
descriptiondescription/description
res-ref-namejdbc/SetmoveDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref
  /entity
.
container-transaction
method
ejb-nameLogEntEJB/ejb-name
method-name*/method-name
   /method
   method
ejb-nameEntUtenteEJB/ejb-name
method-name*/method-name
   /method
  /container-transaction

thanks a lot.

Christian










Re: Apache and Orion

2001-07-13 Thread Paolo Ramasso

ciao
yes can divide your site urls in urls needing j2ee, these are proxyed by apache
to oc4j (orion) and those asking for pl/sql code passing through using
mod_pl/sql to the DB for execution (pure pl/sql code generating html code) or
retrieval of the page skeleton from the DB and  execution/ page resolution
performed by a particular servlet (parallelservlet page engine) running on jserv
(Portal) .
ciao
Paolo

Klonicki, Stephen A wrote:

 For those that access PL/SQL through the application server (Oracle 9iAS),
 there is mod_plsql for Apache.

 Is there an equivalent for OrionServer?  I do not believe that there is so
 those users would still need to rely on Apache.

 -Original Message-
 From: Michael J. Cannon [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 12, 2001 4:52 PM
 To: Orion-Interest
 Subject: Re: Apache and Orion

 So why use Apache?

 The Orionserver will serve up static http pages...I've looked and tehre are
 no issues I can see that Orion won't handle with regards the content 9i and
 the v.11/12 Oracle Apps...

 This is not meant as a criticism or flame...it's for my info, as I also
 support Oracle and have no prob running w/ just the OrionServer (w/ out
 Apache).  Of course, all my apps are written to run that way.  What does
 Apache do for Oracle that Orion can't do better?

 Michael J. Cannon
 [EMAIL PROTECTED]
 - Original Message -
 From: Gurinder Randhawa [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, July 12, 2001 12:10 PM
 Subject: RE: Apache and Orion

 
 
 
  I am running an orion cluster behind a  load balancer and Apache at the
  front end on same machine, its on a test
  system so theirs no real load. We are using Oracles 9i Application Server.
 
  We use Apache for oracle reports and SSL and of course serving up static
  content etc.
  The problem is with mod_proxy which is just plain slow.
 
  Oracle is coming out with a ojp protocol which is based on ajp13 which
 will
  solve my problems,
  but until then (late october) I wanted to use Orion but it just doesn't
  integrate well with apache.
 
  Any suggestions ? No i haven't tried the tunnelServlet, I will look into
  that.
 
  I was just wondering if anyone else has this kind of setup. Note we are
  using
  Oracle's OC4J (which is essentially orion). They bought Orion and popped
 it
  into their next release
  of application server.
 
  Regards
 
  Gurinder
 
 
 
 
 
 
  elephantwalker [EMAIL PROTECTED] on 07/10/2001 08:45:30 PM
 
  Please respond to Orion-Interest [EMAIL PROTECTED]
 
  To:   Orion-Interest [EMAIL PROTECTED]
  cc:(bcc: Gurinder Randhawa/Travel Underwriters)
  Subject:  RE: Apache and Orion
 
 
 
 
  Have you tried using the tunnelServlet to pass all static requests to
  Apache? Its a little bass-ackwards, but orion could be faster than
 apache
  in this respect.
 
  Also, are you running orion, the loadbalancer,  and apache on the same
  machine? This could be just a load issue.
 
  Lastly, orion is generally faster than apache at serving up static
 content.
  There are very good reasons for using apache for static content, though,
  that have nothing to do with speed. (For example, you have one ssl cert
 for
  apache, and you don't want to pay for another one for orion.).
 
  regards,
 
  the elephantwalker
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
  Randhawa
  Sent: Tuesday, July 10, 2001 7:36 PM
  To: Orion-Interest
  Subject: Apache and Orion
 
 
 
 
 
 
  Is anyone using Apache as a front end to Orion. I find that using
 mod_proxy
to forward web application requests
 
  is quite slow compared to using tomcat. Does anyone know if there is
something else i can use beside mod_proxy
 
  for Apache to serve static pages and orion to serve my web applications ?
 
 
 
  I do need to use Apache as a front end server.
 
  I am also using a loadbalancer and a cluster for my orion setup behind
apache.
 
 
 
  Any help would be much appreciated
 
 
 
  Gurinder
 
 
 
 
 
 
 
 
 
 
 
 
 


begin:vcard 
n:ramasso;paolo
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:paolo ramasso
end:vcard



Some questions on Orion

2001-07-13 Thread Florian Werner

Hi!

I'm currently evaluating Orion for internal use and a customer.
Does Orion support/include:

RMI over JRMP   ?
any OODBMS ?
any ORMapping Tools ?
Realm-Integration  like LDAP, RDBMS ?

Are the any IDEs supporting Orion (beside Kawa from Macromedia) ?

Is ORACLE going to by Orion ?

Regards
   Florian Werner








Re: EJB 2.0 local interfaces

2001-07-13 Thread Scot Weber

Vincent,

  OrionServer 1.5.2 is EJB2.0 Proposed Final Draft 1 compliant (i think there
may be some PFD2 things in there as well) but, i don't believe much more is
going to be completed towards the 2.0 spec until the 2.0 spec is final.  Therein
lies the partiality of the EJB2.0 support.

peace - scot

Vincent Massol wrote:

 Does anyone know when EJB 2.0 local interfaces will be available in Orion ?

 Apparently they are not currently implemented (see
 http://www.c2.com/cgi/wiki?OrionServerSpecSupport).

 What would be really nice would be to detail more what is supported in Orion
 1.5.2 on the main page of the orion web site. Instead of saying Partial EJB
 2.0 support, detail what is supported ... (and what date of the spec. as it
 has recently changed ...).

 Thanks
 -Vincent





RE: Some questions on Orion

2001-07-13 Thread elephantwalker

see below...

regards,

the elephantwalker

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Florian Werner
Sent: Friday, July 13, 2001 9:53 AM
To: Orion-Interest
Subject: Some questions on Orion


Hi!

I'm currently evaluating Orion for internal use and a customer.
Does Orion support/include:

RMI over JRMP   ?
any OODBMS ?
any ORMapping Tools ?
Realm-Integration  like LDAP, RDBMS ?

 j2ee support for rmi uses the over the wire protocol ormi.
 AFAIK, If you can create a schema for the databank (should be easily done
with OODBMS) this should work.
 Like most j2ee vendors, Orion has its own OR mapping tool
 EJBUserManager and DataSourceUserManager can be used directly with a
database
  and a new custom usermanager can easily use an LDAP server. There is also
a rolemanager api.


Are the any IDEs supporting Orion (beside Kawa from Macromedia) ?

 We use Sun's Forte debugging with Orion all of the time.

Is ORACLE going to by Orion ?

 Oracle has already licensed Orion as oc4j. So you can pay Oracle $30 k for
Orion, or pay Ironflare $1.5 k ;). oc4j is exactly the same as Orion.

Regards
   Florian Werner









RE: Apache and Orion

2001-07-13 Thread Klonicki, Stephen A


Yes.  I was responding to messages regarding Oracle's 9iAS asking if Apache
is even necessary if orionserver can serve up web pages.

If you are using pl/sql then you will need Apache/mod_plsql.  orionserver
alone will not work.

Regards,
Steve Klonicki

-Original Message-
From: Paolo Ramasso [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:40 PM
To: Orion-Interest
Subject: Re: Apache and Orion


ciao
yes can divide your site urls in urls needing j2ee, these are proxyed by
apache
to oc4j (orion) and those asking for pl/sql code passing through using
mod_pl/sql to the DB for execution (pure pl/sql code generating html code)
or
retrieval of the page skeleton from the DB and  execution/ page resolution
performed by a particular servlet (parallelservlet page engine) running on
jserv
(Portal) .
ciao
Paolo

Klonicki, Stephen A wrote:

 For those that access PL/SQL through the application server (Oracle 9iAS),
 there is mod_plsql for Apache.

 Is there an equivalent for OrionServer?  I do not believe that there is so
 those users would still need to rely on Apache.

 -Original Message-
 From: Michael J. Cannon [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 12, 2001 4:52 PM
 To: Orion-Interest
 Subject: Re: Apache and Orion

 So why use Apache?

 The Orionserver will serve up static http pages...I've looked and tehre
are
 no issues I can see that Orion won't handle with regards the content 9i
and
 the v.11/12 Oracle Apps...

 This is not meant as a criticism or flame...it's for my info, as I also
 support Oracle and have no prob running w/ just the OrionServer (w/ out
 Apache).  Of course, all my apps are written to run that way.  What does
 Apache do for Oracle that Orion can't do better?

 Michael J. Cannon
 [EMAIL PROTECTED]
 - Original Message -
 From: Gurinder Randhawa [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, July 12, 2001 12:10 PM
 Subject: RE: Apache and Orion

 
 
 
  I am running an orion cluster behind a  load balancer and Apache at the
  front end on same machine, its on a test
  system so theirs no real load. We are using Oracles 9i Application
Server.
 
  We use Apache for oracle reports and SSL and of course serving up static
  content etc.
  The problem is with mod_proxy which is just plain slow.
 
  Oracle is coming out with a ojp protocol which is based on ajp13 which
 will
  solve my problems,
  but until then (late october) I wanted to use Orion but it just doesn't
  integrate well with apache.
 
  Any suggestions ? No i haven't tried the tunnelServlet, I will look into
  that.
 
  I was just wondering if anyone else has this kind of setup. Note we are
  using
  Oracle's OC4J (which is essentially orion). They bought Orion and popped
 it
  into their next release
  of application server.
 
  Regards
 
  Gurinder
 
 
 
 
 
 
  elephantwalker [EMAIL PROTECTED] on 07/10/2001 08:45:30 PM
 
  Please respond to Orion-Interest [EMAIL PROTECTED]
 
  To:   Orion-Interest [EMAIL PROTECTED]
  cc:(bcc: Gurinder Randhawa/Travel Underwriters)
  Subject:  RE: Apache and Orion
 
 
 
 
  Have you tried using the tunnelServlet to pass all static requests to
  Apache? Its a little bass-ackwards, but orion could be faster than
 apache
  in this respect.
 
  Also, are you running orion, the loadbalancer,  and apache on the same
  machine? This could be just a load issue.
 
  Lastly, orion is generally faster than apache at serving up static
 content.
  There are very good reasons for using apache for static content, though,
  that have nothing to do with speed. (For example, you have one ssl cert
 for
  apache, and you don't want to pay for another one for orion.).
 
  regards,
 
  the elephantwalker
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
  Randhawa
  Sent: Tuesday, July 10, 2001 7:36 PM
  To: Orion-Interest
  Subject: Apache and Orion
 
 
 
 
 
 
  Is anyone using Apache as a front end to Orion. I find that using
 mod_proxy
to forward web application requests
 
  is quite slow compared to using tomcat. Does anyone know if there is
something else i can use beside mod_proxy
 
  for Apache to serve static pages and orion to serve my web applications
?
 
 
 
  I do need to use Apache as a front end server.
 
  I am also using a loadbalancer and a cluster for my orion setup behind
apache.
 
 
 
  Any help would be much appreciated
 
 
 
  Gurinder
 
 
 
 
 
 
 
 
 
 
 
 
 





Application Name

2001-07-13 Thread Wayne Franklin

Is there a way to query the application name from JSP?

I apologize if this message is a duplicate.  I sent one several hours ago
and it hasn't showed up yet.  I don't know if this is normal for list
servers.

Wayne Franklin
Marathon Innovations, Inc.






How do I re-deploy my application?

2001-07-13 Thread Tim Kang - Syoni Communications Inc.

I have an EAR, WAR and JAR and I have successfully deployed them.

I made a change to a servlet and I have bulid the whole thing again with
ANT.

At this point how do I redeploy the modified application? (I've tried
restarting, and deloying options via admin.jar)

Thanks

Tim



_
Tim Kang
Database Developer
Syoni Communications Inc.

You can catch me at ~
mailto:[EMAIL PROTECTED]
TEL  604.871.1000 ext.2231
CELL 604.790.2566
CELL 604.788.4314
FAX  604.871.1001
FREE 888.440.4477 loc. 4
FAX  888.520.4477
Check out.
http://www.mediaco.ca
http://www.syoni.com
http://www.onlinebroadcasting.com





RE: Application Name

2001-07-13 Thread Kesav Kumar
Title: RE: Application Name





request.getContextPath() gives you the the application context name.


pageContext.getServletContext().getServletContextName()
Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.

Kesav Kumar Kolla
Voquette Inc
650 356 3740(W)
510 889 6840(R)
Voquette...Delivering Sound Information




-Original Message-
From: Wayne Franklin [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:31 PM
To: Orion-Interest
Subject: Application Name



Is there a way to query the application name from JSP?


I apologize if this message is a duplicate. I sent one several hours ago
and it hasn't showed up yet. I don't know if this is normal for list
servers.


Wayne Franklin
Marathon Innovations, Inc.






Re: How do I re-deploy my application?

2001-07-13 Thread Ray Harrison

Just copy the .ear file to where you copied the .ear file before and it will redeploy 
the app -
just add that functionality in your ant build file.


--- Tim Kang - Syoni Communications Inc. [EMAIL PROTECTED] wrote:
 I have an EAR, WAR and JAR and I have successfully deployed them.
 
 I made a change to a servlet and I have bulid the whole thing again with
 ANT.
 
 At this point how do I redeploy the modified application? (I've tried
 restarting, and deloying options via admin.jar)
 
 Thanks
 
 Tim
 
 
 
 _
 Tim Kang
 Database Developer
 Syoni Communications Inc.
 
 You can catch me at ~
 mailto:[EMAIL PROTECTED]
 TEL  604.871.1000 ext.2231
 CELL 604.790.2566
 CELL 604.788.4314
 FAX  604.871.1001
 FREE 888.440.4477 loc. 4
 FAX  888.520.4477
 Check out.
 http://www.mediaco.ca
 http://www.syoni.com
 http://www.onlinebroadcasting.com
 
 


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




Orion Tuts...

2001-07-13 Thread Wes Weems

Hello,

I am pretty new to orion, as well as EJB. I was wondering if somone could
point me to a place where I might ifnd information or possibly tutorials on
deploying a sample ejb. If there any sites other than orionserver and
orionsupport.com I would appreciate the urls. Thanks,

wes





RE: How do I re-deploy my application?

2001-07-13 Thread Doug Pham

Tim,
Just copy your ear file over your old ear file which if you go with the
default should in in your orion/applications directory.  You can modify your
build.xml to automatically copy the newly compiled ear file there or modify
the server.xml to point to your ear build directory.


Good Luck
Doug

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Kang - Syoni
Communications Inc.
Sent: Friday, July 13, 2001 3:49 PM
To: Orion-Interest
Subject: How do I re-deploy my application?

I have an EAR, WAR and JAR and I have successfully deployed them.

I made a change to a servlet and I have bulid the whole thing again with
ANT.

At this point how do I redeploy the modified application? (I've tried
restarting, and deloying options via admin.jar)

Thanks

Tim



_
Tim Kang
Database Developer
Syoni Communications Inc.

You can catch me at ~
mailto:[EMAIL PROTECTED]
TEL  604.871.1000 ext.2231
CELL 604.790.2566
CELL 604.788.4314
FAX  604.871.1001
FREE 888.440.4477 loc. 4
FAX  888.520.4477
Check out.
http://www.mediaco.ca
http://www.syoni.com
http://www.onlinebroadcasting.com




EJBUserManager not working?

2001-07-13 Thread Aaron Tavistock

I just setup the EJBUserManager, which seems like it would be a nice
alternative to the DataSourceUserManager for a newproject I'm working on.

Setting it up wasn't a problem -- Orion made the table, I've already got the
security constrints working, thats all fine.  But I do have a strange
problem, that doesn't make sense and is a huge stumbling block.

When I call the RoleManager.createPrinciple() do some operations and then
call RoleManager.store() an entity is created, but oddly the entity only
ever has a name (never a password or groups).  

I thought this was annoying, but I figured that I could get the entity and
modify it directly using EJBUser.setPassword() and EJBUser.addToGroup().
Since EJBUser is an actual entity CMP EJB it should persist automatically.
But these don't stick either...  

To add even more wierness into the mix, while I still have the original
principle reference I can authenticate as the user using
RoleManager.login().   But I can never reauthenticate as the user since the
password is NULL in the database, this seems to imply that the data is valid
in memory but is not being persisted.

A final important note is that I have no problems with EJBs in general, have
many CMP EJBs that work fine in the exact same deployment, so I'm pretty
sure its not the environment. 

ANyone have any insight into the EJBUserManager?





Internal server error

2001-07-13 Thread Ramin Heidari



hi,
i'm new in use orion aplication.. i ' m 
writting a session bean.. and deploy it in orion but when i open IE to 
see
it i recived Internal server error ...
my application attach to this mail ...

 convertor.zip


RE: Orion Tuts...

2001-07-13 Thread elephantwalker

try www.jollem.com, there are two tutorials there. They start you out with
baby steps, so they should be useful. These are also referenced on the
Orionserver site.

Regards,

the elephantwalker

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Wes Weems
Sent: Friday, July 13, 2001 3:57 PM
To: Orion-Interest
Subject: Orion Tuts...


Hello,

I am pretty new to orion, as well as EJB. I was wondering if somone could
point me to a place where I might ifnd information or possibly tutorials on
deploying a sample ejb. If there any sites other than orionserver and
orionsupport.com I would appreciate the urls. Thanks,

wes






Exception thrown in Entity bean not being caught by the session bean(butworks in J2EE RI)

2001-07-13 Thread aby

Hi everyone,

Basically what I am trying to do is I have a function in a session
bean called setDBItems(String, String, String, String). This function
is supposed to do (in sequence)

1) sql insert to a table 'sabra' with the first two parameters of the
function.
2) an entity bean update using the 'account.credit(100.00)' function.
It updates the table accountums.
3) another sql insert to the table 'sabra' using the last two
parameters of the function.

My aim is to have one of these steps fail so that all the 3 database
inserts/updates rollback. e.g. if the step 3 fails, step 1 and 3
should rollback. This is working in Orion. That is the insert is done
by a normal PreparedStatement and not by and entity bean.

The next aim is to have the entity bean 'update' fail so that the
other normal 'sqls' rollback. The balance field in the accountums
table has a length of NUMBER(5,2) so when I call the entity bean's
credit (account.credit(12345.00)) the entity update should fail, which
should rollback all the other sqls.

Since this is a transaction on the setDBItems() the ejbStore() is only
called towards the end of the setDBItems() i.e. step 1) and step 2)
and step 3) happen, but only at the end of the transaction of the
setDBItems () the ejbStore() of the entity is being called. This is
fine and this is how it should work. The ejbStore() throws an
EJBException, but this is not being caught in the setDBItems(). If
this happened, then the setDBItems would be able to throw an
EJBException which would rollback everything and I would be a happy
man.

Now the main thing is that the Exception thrown by the store does not
come to the Session bean. I tried using the UserTransaction so that
when I say ut.commit(), the ejbStore() would be called and I could
catch the Exception thrown by the entity bean, but still in this case
the Exception is not being caught by the Session bean although the
code is there. I tried throwing a RemoteException with same results.

We are using Oracle.
Using the thin driver. (jdbc:oracle:thin:@192.168.0.5:1521:dcom)

This same program works well in J2EE. I had a previous problem with
transactions in Orion sometime back and found out that it was because
the Remote was throwing Exception instead of any other. When I changed
it to some RemoteException, it worked. So I am beginning to wonder if
Orion has a different way of implementing things. but anyway I guess
you would be able to see better reason on this.

If anyone has a working example of what I am trying to do (in Orion),
I would appreciate it if someone could send the same thing to me.

Thanks very much.

Thanks
Kind Regards
Aby Philip