Deploying a servlet ear, war: help an oroin newbie

2000-11-20 Thread Matthew TorreAlto

I am trying to deploy a servlet with Orion. The servlet runs fine in
JBuilder. It even runs in Orion if I stick it in the default web application 
directory. But I want to do it right and use the ear, war files. (or do I)

When I run Orion it seems to pick it up the ear and war file okay.
Orion finds the ear file and unbundles the war file inside.
But. When I post I get an Error...

I think I set up the web.xml and application.xml just so... I based this off 
the orion-primer example and I even reused the build.xml ant file with some 
modifications. (I really like ant.) Everything builds just groovy. I even 
check the war and ear files and everything seems in order.

I've enclosed what I think are the related parts of the application.xml,
web.xml and the entries in config/server.xml. And I show the html for the 
form post that does not work and the post that does work (running against 
the default web application). If you can help, I'd sure appreciate it. I may 
just have the post screwed up (listed at the bottom).

The web.xml file has the following entry... shortened.

servlet
 servlet-namecom.objectgeneration.sample.EmployeeForm
/servlet-name
 servlet-classcom.objectgeneration.sample.EmployeeForm/servlet-
class
/servlet

The application.xml has the following entry.

module
 web
   web-uriemployee-app-web.war/web-uri
   context-root/employee-app/context-root
 /web
/module

When I run Orion it seems to pick it up okay.

I made the following entries in the Orion setup files.
In config/server.xml I made this entry...

application name="employee-app"
 path="D:\Personal\Proto\CodeGen\Employee3
\rel\employee-app.ear" /

Orion finds it the ear file and unbundles the war file inside.

But. When I post I get an Error...

The post looks like this
form action="/employee-app/com.objectgeneration.sample.EmployeeForm"
method="post"

And it does not work
However when I post to the one I installed in the default web
application it works great.

form action="/servlet/com.objectgeneration.sample.EmployeeForm"
method="post"

-- Yours truly
[EMAIL PROTECTED]

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

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





Some pictures not loaded

2000-11-20 Thread Savotchkin Egor



Hi all,

 I've noticed that 
sometimes not all pictures are loaded on my site . When I right-click on the 
picture and choose "Show picture" it gets loaded! I treid with the same results 
on NT and on Solaris as well (all versions of orion). Is it an orion bug or 
server misconfiguration?

Egor Savotchkin.

P.S. The html page structure is not complex, 
so it's not likely an explorer bug.


Obtain a pooled postgres connection from JNDI datasource under Linux

2000-11-20 Thread Alexander Höher

Hi all,

how can I obtain a pooled postgres connection from a JNDI datasource
under Linux?
My client code always gets a SQLException with SQLSTATE=08001: No
suitable driver.

Postgres driver is jdbc6.5-1.2.jar, dropped into ORION_HOME/lib
(desparately also appended to the CLASSPATH).
I have tried several datasource configurations in
ORION_HOME/config/data-sources.xml, for instance:

   data-source
class="com.evermind.sql.DriverManagerDataSource"
location="DataSource"
name="DataSource"
url="jdbc:postgresql://server/db"
connection-driver="postgresql.Driver"
username="user"
password="secret"
/


Did not work. (With WebLogic, a similar configuration does).
The comments in data-sources.xml and the online documentation do not
make me happy.
From the Orion API I guess that somehow in data-sources.xml there should
be

1) a datasource with class
com.evermind.sql.DriverManagerConnectionPoolDataSource, where my driver
gets wrapped
2) a datasource that uses the first with class
com.evermind.sql.OrionPooledDataSource.

Does anybody know how to get this right?
Or where I can find supplementary information about Orion (besides the
online documentation)?

Thanks a lot,

Sascha

mailto:[EMAIL PROTECTED]
-- 
Alexander Höher
Entwicklung 
BEANS AG
Münchner Str. 15 a
D-82319 Starnberg
Tel +49-8151-3684-0
Fax +49-8151-3684-111
mailto:[EMAIL PROTECTED]
http://www.beans.de

begin:vcard 
n:Höher;Alexander
x-mozilla-html:FALSE
org:Beans Industry AG
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Alexander Höher
end:vcard



what shared on Web-Site XML exactly means?

2000-11-20 Thread Ismael Blesa Part

On the documentation I have found:
"shared - Whether or not multiple bindings (different sites/context
roots) are to be shared. Sharing implies sharing of sessions, servlet
instances etc.
   The default is 'false'."

But I would like to know how this works. Where could I specify which
context have to share its contexts? Is it possible to share a SSL
context and a non-secure one ?
Have any of you tried this?

Regards,
Ismael Blesa





ejbStore() not called ?!?

2000-11-20 Thread Mikko Kurki-Suonio

Hi,

 I'm having trouble with the following strange feature: I have data in a
field (let's say A) I wish to "pack" into another field (B) for DB
storage. These are, by nature, read-only objects, i.e. once created their
values do not change.

 I've written a ejbStore() method that translates the value of A into
B. ejbCreate() handles A directly.

 However, it appears that ejbStore() is never called and Orion stores NULL
for B.

 Did I miss something, or is this a bug? Should I explicitly call
ejbStore() in ejbPostCreate()?



//Mikko






RE: autoupdate errors

2000-11-20 Thread Russ White

try this

java -DproxyHost=proxy.your-domain.net -DproxyPort=your-port -jar autoupdate.jar

replace the appropriate values.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Arthur
 Copeland (Saphari.com - www.saphari.com)
 Sent: Monday, November 20, 2000 12:08 AM
 To: Orion-Interest
 Subject: autoupdate errors


 i have been trying to autoupdate orion for sometime now
 and have been unsuccessful.  i am using 1.4.0 and trying
 to get to 1.4.4.  i use the java -jar autoupdate.jar to
 update.  the only thing that happens is the says:
 "Sending fileinfo to server ", but no files get
 updated.  did something change?  is anyone else having
 the same trouble?  where can i find a zip file of 1.4.4?

 artie







custom finder duplication

2000-11-20 Thread Adam Cassar

'lo all

i'm having a wierd problem with custom finders with orion 1.3.8 and later:

a) custom finders to orion cmp fields such as 
- entity references and
- collections

b) my finders are being duplicated in orion-ejb.jar.xml ie

finder-method query="select domain.domain_id, domain.domain, domain.tld_id, 
domain.owner_id, domain.admin_id, domain.tech_id, domain.bill_id, domain.created, 
domain.modified, domain.expire from domain where domain.owner_id = $1" partial="false"
method
ejb-nameSomeName/ejb-name
method-intfHome/method-intf
method-namefindByOwner/method-name
method-params
method-paramlong/method-param
/method-params
/method
/finder-method

gets duplicated later in the deployed xml file however the first line will read
instead

finder-method query=""
!-- generated sql: blah blah blah

does anyone have any ideas?

-- 

Adam Cassar
Technical Development Manager
___  
NetRegistry http://www.netregistry.au.com
Tel: +61 2 9641 8605 | Fax: +61 2 9699 6088
PO Box 270 Broadway NSW 2007 Australia




I can't run news demo App in Orion 1.4.0

2000-11-20 Thread ³¯§Ê¹Å

Hello:

When I strat Orion 1.4.0 I get those error message:

SQL error: File input/output error: ./database/defaultdb.properties
Warning: Error creating table: File input/output error: ./database/defaultdb.properties
DataSourceConnection was not closed, check your code!

So I can't run news demo App, what should I do ?

Thanks in advance.

bubble chen(2000/11/20 PM 05:35:02)
[EMAIL PROTECTED]


==
 PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw 
 PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸ 
==




Another question on datasources

2000-11-20 Thread Tim Squires

Hi,

Error received on deployment:

Error loading package at
file:/D:/install/orion/applications/configurator/configurator-ejb/,
resource-ref 'jdbc/OracleEJBDS' referenced from resource-ref-mapping not
found

data-sources.xml(snip):

data-sources
data-source
 name="OracleDS"
 class="com.evermind.sql.ConnectionDataSource"
 location="jdbc/OracleDS"
 pooled-location="jdbc/OraclePooledDS"
 xa-location="jdbc/xa/OracleXADS"
 ejb-location="jdbc/OracleEJBDS"
 url="jdbc:oracle:oci8:@TESTER"
 connection-driver="oracle.jdbc.driver.OracleDriver"
 username="scott"
 password="tiger"
 /
/data-sources

ejb-jar.xml(snip):
entity
ejb-namearea/ejb-name
  homecom.mywds.beans.areaHome/home
  remotecom.mywds.beans.area/remote
  ejb-classcom.mywds.beans.areaBean/ejb-class
  persistence-typeContainer/persistence-type
  prim-key-classcom.mywds.beans.areaPK/prim-key-class
  reentrantFalse/reentrant
  cmp-fieldfield-nameId/field-name/cmp-field
  cmp-fieldfield-nameName/field-name/cmp-field
  resource-ref
res-ref-namejdbc/OracleEJBDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/entity


orion-ejb-jar.xml(snip):

entity-deployment name="area" location="mywds/configurator/area"
wrapper="areaHome_EntityHomeWrapper33" table="area"
data-source="jdbc/OracleEJBDS"
resource-ref-mapping location="jdbc/OraclePool"
name="jdbc/OracleEJBDS" /
..
..
.
/entity-deployment


--

Any ideas would be appreciated.

Thanks for your time,
Tim.

Tim Squires
Wireless Data Services

It's not what you know, it's who you tell.




Does Orion automagically pool jsp database connections?

2000-11-20 Thread Keith Kwiatek

I have a jsp page that make a jdbc database connection How do I tell
Orion/JSP to used pooled connections?

Thanks!
Keith





Execute 2 Session Beans concurrently - Is thread possible?

2000-11-20 Thread Storm Linux User

Hi.

It's possible to execute 2 different session beans concurrently, for the same 
session(user)? I will explain... My user needs to execute remote code on many 
machines. I had the idea to put an session bean in each machine, and then get 
an reference for this beans in my local session bean. But how can I start one 
method for the remote bean without waiting for it to return, so that I can 
call the method for the other remote bean, concurrently? I've saw somewhere 
that is not possible to use threads in EJB.

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]





Re: Does Orion automagically pool jsp database connections?

2000-11-20 Thread Robert Krueger

At 09:13 20.11.00 , you wrote:
I have a jsp page that make a jdbc database connection How do I tell
Orion/JSP to used pooled connections?

use the right kind of datasource (see data-sources.xml) for creating the 
connection.

robert

Thanks!
Keith


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Please help!

2000-11-20 Thread Puthezhath, Rajeev (TWII Boston)

Hi,

Is there a way to set time out period for Entity beans in Orion.And also I
would like to know whether orion creates new instances of the bean even
though the request is for the same data which is already there in
memory.Please help.

Thanks in Advance 

Regards

Rajeev






What directory are Hypersonic SQL databases stored in?

2000-11-20 Thread Kemp Randy-W18971

In Orion, what directory are the Hypersonic SQL databases stored in?  In jBoss, they 
specifically have a directory called hypersonic, but I didn't spot a similar directory 
in Orion (maybe I didn't look hard enough). So if I have an EJB that automatically 
creates the data base, where does it get stored? 




What happens to the database?

2000-11-20 Thread Kemp Randy-W18971

If I create a database application using a CMP EJB bean, like that shown on 
http://www.jollem.com/orion-cmp-primer, it will initially create the hypersonic 
database.  Suppose I allow the application to be used for a while, and then update the 
application to add another database field.  What happens to the original database when 
I redeploy my application?  Does the database get wiped out?  





RE: How do I get the RoleManager?

2000-11-20 Thread Juan Lorandi (Chile)

have you tried casting your UserManager?

UserManager userMgr = (UserManager)
  (new InitialContext()).lookup( "java:comp/UserManager" );
RoleManager roleMgr = (RoleManager) userMgr;

-Original Message-
From: Tim Endres [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 20 de Noviembre de 2000 4:40
To: Orion-Interest
Subject: How do I get the RoleManager?


I can not get the RoleManager. I have tried to use:

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

as I have seen others mention on the mailing list. No matter
what I try, I get only the NameNotFoundException. What is the
trick to getting the RoleManager?

I am using my own UserManager (extends AbstractUserManager),
if that makes a difference. The UserManager appears to be
working fine.

TIA,
tim.





RE: WAR contexts in application.xml and default-web-site.xml

2000-11-20 Thread Juan Lorandi (Chile)

yes, orion binds only by using web-app tags in web-site.xml files

-Original Message-
From: Gerald Gutierrez [mailto:[EMAIL PROTECTED]]
Sent: Domingo, 19 de Noviembre de 2000 13:34
To: Orion-Interest
Subject: WAR contexts in application.xml and default-web-site.xml



What is the difference between the war-module context paths (the URL paths) 
that are specified in application.xml (context-root="...") and 
default-web-site.xml (root="...")? If I've already specified it in the 
J2EE-standard way, must I do it again in default-web-site.xml?

Assuming that I must, I'm also confused by what the actual context root 
will be after I've defined it both ways. In the ATM example, 
application.xml has "/atm" for all three of its atm-web, atm-wap and 
atm-doc war modules. BUT the instructions say that the atm-web module 
should be bound to Orion using

web-app application="atm" name="atm-web" root="/atm" /

and the atm-wap module bound using

web-app application="atm" name="atm-wap" root="/atmwap" /

So does this mean that Orion just ignores the values in application.xml and 
uses the ones in default-web-site.xml?







RE: HELP. Strange Database Connecton error.

2000-11-20 Thread Juan Lorandi (Chile)

You're using thin drivers... these drivers never use the Oracle OCI, and
never ever read tnsnames.ora


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Sábado, 18 de Noviembre de 2000 13:33
To: Orion-Interest
Subject: HELP. Strange Database Connecton error.


OK list i need help.  

This is kind of subtle so please read the whole message before responding.
This
certainly points to something I do not understand about Orion data-source
configuration.

I am getting an error from Oracle upon table creation.  Here is the text of
the
error back from Orion:

Starting Orion
Auto-deploying addressbook (New server version detected)...
Auto-deploying addressbook-ejb.jar (No previous deployment found)... SQL
error:
Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=(
CODE
=12505)(EMFI=4
Warning: Error creating table: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=(
CODE
=12505)(EMFI=4
done.
Orion/1.3.8 initialized

Looking up ERR=12505, Oracle tells me this is a problem with SID resolution.

tnsnames.ora looks fine, indeed the entry was created by Net8 Easy Config.
In
addition the following JDBC code:

 
public class JT {
public static void main(String[] args){
String url = "jdbc:oracle:thin:@zaragoza:1521:oradbb";
try {
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();;
Connection conn = DriverManager.getConnection(url, "jdev",
"deal");
Statement stmt = conn.createStatement();
stmt.execute("create table duff (first varchar(6), 
next varchar(5))"); 
}
catch (SQLException ex) {
System.out.println("SQL Exception.");
ex.printStackTrace();
}
catch (Exception ex) {
System.out.println("Just a plain bummer.");
ex.printStackTrace();
}
}
}

creates a table just fine using the same SID and tnsnames.ora entry.

To make this all more confusing, I am trying to connect to Oracle on a dual
boot Linux/NT system. The Linux SID is oradba.  The NT SID is oradbb. 
Naturally I am only trying to connect to the NT Oracle when NT is booted and
visa versa.  The Linux side works fine, it is the NT entry that gives the
error.  Both Oracle installations are 8.1.5.  The only difference is that on
the
NT side the user is given DBA privledges and is creating tables in the
system
rollback segment whereas on the Linux side there is a separate "development"
rollback segment.  I have been posting this to the Oracle list (with no
answers forthcoming) until I wrote the JDBC code snippet I post above.  The
fact that this code creates tables where Orion does not tends to make me
think
it is a Orion config issue.  Here are the entries from my Orion config
files.  I
understand that this is not the optimum place for the default-data-source
attribute tag but that is a separate thread.

ORION_HOME/config/server.xml (the default-data-source tag is toggled between
the Linux SID and the NT SID:


?xml version="1.0"?
!DOCTYPE application-server PUBLIC "Orion Application Server Config"
"http://www.orionserver.com/dtds/application-server.dtd"

application-server
application-directory="../applications"
deployment-directory="../application-deployments"

rmi-config path="./rmi.xml" /
!-- JMS-server config link, uncomment to activate the JMS service
--
!-- jms-config path="./jms.xml" / --
principals path="./principals.xml" /
log
file path="../log/server.log" /
/log

global-application name="default" path="application.xml" /

global-web-app-config path="global-web-application.xml" /
web-site path="./default-web-site.xml" /

!-- Compiler, activate this to specify an alternative compiler such
as jikes for EJB/JSP compiling. --
!-- compiler executable="jikes"
classpath="/myjdkdir/jre/lib/rt.jar"
/ --

application name="orion-primer" 
path="/home/jna/Java/EJB_learn/orion-primer/rel/orion-primer.ear" /
 
!-- CMP Applications on NT --
application name="addressbook"
path="/home/jna/Java/EJB_learn/addressbook/build/addressbook.ear"
default-data-source="jdbc/AndanteOracleNT" /


/application-server

ORION_HOME/config/data-sources.xml:


?xml version="1.0"?
!DOCTYPE data-sources PUBLIC "Orion data-sources"
"http://www.orionserver.com/dtds/data-sources.dtd"

data-sources

!--
An example/default DataSource that uses an ordinary
JDBC-driver (in this case hsql) to create the connections. 
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware
sources.
   

RE: Obtain a pooled postgres connection from JNDI datasource under Linux

2000-11-20 Thread Tim Drury


try connection-driver="org.postgresql.Driver"

-tim

 -Original Message-
 From: Alexander Höher [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 20, 2000 3:51 AM
 To: Orion-Interest
 Subject: Obtain a pooled postgres connection from JNDI 
 datasource under
 Linux
 
 
 Hi all,
 
 how can I obtain a pooled postgres connection from a JNDI datasource
 under Linux?
 My client code always gets a SQLException with SQLSTATE=08001: No
 suitable driver.
 
 Postgres driver is jdbc6.5-1.2.jar, dropped into ORION_HOME/lib
 (desparately also appended to the CLASSPATH).
 I have tried several datasource configurations in
 ORION_HOME/config/data-sources.xml, for instance:
 
data-source
 class="com.evermind.sql.DriverManagerDataSource"
 location="DataSource"
 name="DataSource"
 url="jdbc:postgresql://server/db"
 connection-driver="postgresql.Driver"
 username="user"
 password="secret"
 /
 
 
 Did not work. (With WebLogic, a similar configuration does).
 The comments in data-sources.xml and the online documentation do not
 make me happy.
 From the Orion API I guess that somehow in data-sources.xml 
 there should
 be
 
 1) a datasource with class
 com.evermind.sql.DriverManagerConnectionPoolDataSource, where 
 my driver
 gets wrapped
 2) a datasource that uses the first with class
 com.evermind.sql.OrionPooledDataSource.
 
 Does anybody know how to get this right?
 Or where I can find supplementary information about Orion (besides the
 online documentation)?
 
 Thanks a lot,
 
 Sascha
 
 mailto:[EMAIL PROTECTED]
 -- 
 Alexander Höher
 Entwicklung   
 BEANS AG
 Münchner Str. 15 a
 D-82319 Starnberg
 Tel +49-8151-3684-0
 Fax +49-8151-3684-111
 mailto:[EMAIL PROTECTED]
 http://www.beans.de
 




RE: orion server works with jdk 1.3???

2000-11-20 Thread Kemp Randy-W18971

Thanks.  I'm always interested in easier ways to do things and your way is certainly 
easier. 

-Original Message-
From: Santosh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 12:58 AM
To: Orion-Interest
Subject: Re: orion server works with jdk 1.3???


Sorry for a very late reply,

Kemp seems to have a very lengthy, painful solution while the actual
workaround is just too simple. Somebody mentioned that the problem is in the
registry. Yes! He got it right. Just type REGEDIT and modify the current
version
as shown in the attachement. Look at the attachment picture i have sent.

Just replace CurrentVersion to 1.3 (If not 1.3)

Regards,
Santosh.

- Original Message -
From: Kemp Randy-W18971 [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 8:08 PM
Subject: RE: orion server works with jdk 1.3???


I ran into the same problem with other Java software and reinstalling JDK1.3
resolved everything.

-Original Message-
From: Robert Krueger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 3:50 AM
To: Orion-Interest
Subject: Re: orion server works with jdk 1.3???


At 09:16 14.11.00 , you wrote:
hi,

I used to work with orion server with jdk 1.2.2. Recently I installed jdk
1.3 and uninstalled jdk 1.2.2. Now I am not able to start orion server. I
get the error message saying that could not find version number 1.3 for
jre in program files/java soft/jre.

any idea?

has nothing to do with orion. it's something with your registry being
screwed up by installing/uninstalling, typical M$ problem. I've had that a
ages ago but don't remember the solution :-(.

robert

thanks in advance.

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

Share information about yourself, create your own public profile at
http://profiles.msn.com.



(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de







Re: Where is Orion's copy of ejb-jar dtd?

2000-11-20 Thread Rodolphe Godreul


Unfortunately, i get exactely the same error with the sample example
atm.ear .
All of those aplications run fine with Sun's j2ee.
And the support is not responding so i'll go for an other application
server.

 rodolphe



  ?xml version="1.0"?
  !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
  JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'
  ejb-jar
 
   display-nameHelloWorld Bean jar/display-name
   descriptionA simple HelloWorld/description

this display-name and description tags are in the wrong place,
 see below the repeating tags.
just remove it.

 
   enterprise-beans
session
 display-nameHelloWorld/display-name
 descriptionA simple HelloWorld/description
 ejb-namecom.genesys.is.helloworld.ejb.HelloWorld/ejb-name
 homecom.genesys.is.helloworld.ejb.HelloWorldHome/home
 remotecom.genesys.is.helloworld.ejb.HelloWorld/remote
 ejb-classcom.genesys.is.helloworld.ejb.HelloWorldEJB/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type
/session
   /enterprise-beans
 

 -- Claudio Miranda
SUN Certified Programmer for JAVA 2





RE: Execute 2 Session Beans concurrently - Is thread possible?

2000-11-20 Thread Juan Lorandi (Chile)

perhaps you could use MessageBeans...

I don´t think that asynchronic execution is valid in EJB, nor it will ever
be...

-Original Message-
From: Storm Linux User [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 20 de Noviembre de 2000 11:10
To: Orion-Interest
Subject: Execute 2 Session Beans concurrently - Is thread possible?


Hi.

It's possible to execute 2 different session beans concurrently, for the
same 
session(user)? I will explain... My user needs to execute remote code on
many 
machines. I had the idea to put an session bean in each machine, and then
get 
an reference for this beans in my local session bean. But how can I start
one 
method for the remote bean without waiting for it to return, so that I can 
call the method for the other remote bean, concurrently? I've saw somewhere 
that is not possible to use threads in EJB.

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]





SV: Execute 2 Session Beans concurrently - Is thread possible?

2000-11-20 Thread Klaus . Myrseth

If you choose to go to Message Driven EJB2.0 beans, you can use JMS to
achieve what youre after.
This is the only way of doing asyncronus calls to the buissiness layer...

And youre right threading is not allowed in EJB..

Klaus

-Opprinnelig melding-
Fra: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
Sendt: 20. november 2000 16:59
Til: Orion-Interest
Emne: RE: Execute 2 Session Beans concurrently - Is thread possible?


perhaps you could use MessageBeans...

I don´t think that asynchronic execution is valid in EJB, nor it will ever
be...

-Original Message-
From: Storm Linux User [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 20 de Noviembre de 2000 11:10
To: Orion-Interest
Subject: Execute 2 Session Beans concurrently - Is thread possible?


Hi.

It's possible to execute 2 different session beans concurrently, for the
same 
session(user)? I will explain... My user needs to execute remote code on
many 
machines. I had the idea to put an session bean in each machine, and then
get 
an reference for this beans in my local session bean. But how can I start
one 
method for the remote bean without waiting for it to return, so that I can 
call the method for the other remote bean, concurrently? I've saw somewhere 
that is not possible to use threads in EJB.

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]





UserManager groups and Role Manager roles

2000-11-20 Thread Manish Shah

Can anyone tell me what the difference is between User Manager groups and
Role Manager roles?
It seems that I need to create groups in order to get roles to work, and
that allows me to define permissions on the group. What is the point of
this? Why not just have users and roles and one API? I'm sure I'm missing
something, but then there's no documentation, so

Thanks,
Manish

Manish Shah
http://www.xtempus.com/
wap.xtempus.com
Tel: +44 (0)20 7838 2632
Main:+44 (0)20 7838 2640
Fax: +44 (0)20 7838 2631

Xtempus Ltd
Kensington Square House
12-14 Ansdell Street
London W8 5TR






Re: SV: Execute 2 Session Beans concurrently - Is thread possible?

2000-11-20 Thread Storm Linux User

Thanks... Do you have a Message Driven Bean example?

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]

On Monday 20 November 2000 14:28, you wrote:
 If you choose to go to Message Driven EJB2.0 beans, you can use JMS to
 achieve what youre after.
 This is the only way of doing asyncronus calls to the buissiness layer...

 And youre right threading is not allowed in EJB..

 Klaus

 -Opprinnelig melding-
 Fra: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
 Sendt: 20. november 2000 16:59
 Til: Orion-Interest
 Emne: RE: Execute 2 Session Beans concurrently - Is thread possible?


 perhaps you could use MessageBeans...

 I don´t think that asynchronic execution is valid in EJB, nor it will ever
 be...

 -Original Message-
 From: Storm Linux User [mailto:[EMAIL PROTECTED]]
 Sent: Lunes, 20 de Noviembre de 2000 11:10
 To: Orion-Interest
 Subject: Execute 2 Session Beans concurrently - Is thread possible?


 Hi.

 It's possible to execute 2 different session beans concurrently, for the
 same
 session(user)? I will explain... My user needs to execute remote code on
 many
 machines. I had the idea to put an session bean in each machine, and then
 get
 an reference for this beans in my local session bean. But how can I start
 one
 method for the remote bean without waiting for it to return, so that I can
 call the method for the other remote bean, concurrently? I've saw somewhere
 that is not possible to use threads in EJB.

 []s
 Guilherme Ceschiatti
 [EMAIL PROTECTED]




Re: Execute 2 Session Beans concurrently - Is thread possible?

2000-11-20 Thread Storm Linux User

On Monday 20 November 2000 12:41, you wrote:
 At 12:10 20.11.00 , you wrote:
 Hi.
 
 It's possible to execute 2 different session beans concurrently, for the
  same session(user)? I will explain... My user needs to execute remote
  code on many machines. I had the idea to put an session bean in each
  machine, and then get an reference for this beans in my local session
  bean. But how can I start one method for the remote bean without waiting
  for it to return, so that I can call the method for the other remote
  bean, concurrently? I've saw somewhere

 simple answer: no, not from an ejb. two ways to do it
 1) use a non-ejb client (e.g. a servlet to make the multithreaded requests)
 2) use message driven beans of ejb2.0 (risky if this is for a real life
 project as ejb2.0 isn't even final yet)

Robert,

If I have a multi-threaded servlet, each thread can get a reference for the 
same session bean?

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]