I sent this to support but maybe someone on this list has already come
across this problem:
I'm having problems getting the UserTransaction for external clients. The
following is basically how I'm trying to get at it:
env.put(Context.PROVIDER_URL,"ormi://localhost/app");
Context
of your
choice.
-AP_
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shawn Pourchot
Sent: Wednesday, January 23, 2002 11:08 AM
To: Orion-Interest
Subject: Client access to UserTransaction
I sent this to support but maybe someone on this list has already come
Can someone tell me how to configure properly to lookup a UserTransaction?
I have a standalone client that references a jndi.properties file to
connect to our app server and make use of EJB's.
When I try to add a UserTransaction lookup I get name not found.
Do I have to add UserTransaction
This was answered at www.elephantwalker.com/rfa?id=271
regards,
the elephantwalker
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 9:48 AM
To: Orion-Interest
Subject: Using UserTransaction from
Is
there anything special I need to specify in the Orion configuration to get a
value UserTransaction from a lookup?
I have
tried both the following:
public static UserTransaction
getTransaction() throws javax.naming.NamingException
{
String name =
//java:com/env/UserTransaction
used ejbContext to get UserTransaction in newUser method of a session bean as
follows;
ejbContext.getUserTransaction().begin();
create a user
newAddress();
ejbContext.getUserTransaction().commit();
And set the session bean's TXN attribute to Bean
but, the result was the same as above.
Any advice
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
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
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
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
AM
Subject: Re: UserTransaction
Check www.orionserver.com, under the FAQ link:
How do I get a reference to the TransactionManager?
import javax.naming.*;
import javax.transaction.*;
...
TransactionManager manager = (TransactionManager)new
it wouldn't work.
Jeff.
Phan Anh Tran wrote:
Yeah, but can I do that from a stand-alone APP running in separate VM?
Anh
- Original Message -
From: Jeff Hubbach [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 6:05 AM
Subject: Re: UserTransaction
Check
Tran wrote:
Yeah, but can I do that from a stand-alone APP running in separate VM?
Anh
- Original Message -
From: Jeff Hubbach [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 6:05 AM
Subject: Re: UserTransaction
Check www.orionserver.com, under
hi Devid
you have to prepare 3 files:
1) a .jar file containig the ejbs classes and the .xml descriptor (under
Meta-inf)
2) a .war file containig your jsps, static files, and the web.xml file (under
web-inf)
3) a .ear file containing the ejb .jar file the .war file and the
application.xml file
it manually (it
still has a lot of bugs).
I'm talking about the earassembler.jar
-Original Message-
From: David- [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 9:32 PM
To: Orion-Interest
Subject:Re: UserTransaction
hi guys,
i m new to ejb and want to develop
With orion, Is it possible to look up a user
transaction outside an EJB (a stand-alone app for example)?
Thanks
Check www.orionserver.com, under the FAQ link:
How do I get a reference to the TransactionManager?
import javax.naming.*;
import javax.transaction.*;
...
TransactionManager manager = (TransactionManager)new
InitialContext().lookup(java:comp/UserTransaction);
Jeff
Yeah, but can I do that from a stand-alone APP running in separate VM?
Anh
- Original Message -
From: Jeff Hubbach [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 6:05 AM
Subject: Re: UserTransaction
Check www.orionserver.com, under the FAQ link
hi guys,
i m new to ejb and want to develop them using the orion server...could
someone explain where do i put up my ejbs and my jsps..i mean what im
looking for is a directory pattern...I tried alot of combos but...does not
seem to work...
thanks in advance
David
Hello,
My name is Sameer and I am trying to figure out how to start a new
transaction from the client of a stateful session bean. After reading
the previous mails on this issue, it is evident that getting a reference
to the UserTransaction interface is the only way of doing
-Original Message-
From: Greg Matthews [mailto:[EMAIL PROTECTED]]
Sent: Martes, 24 de Octubre de 2000 21:08
To: Orion-Interest
Subject: Re: get reference to UserTransaction fails
i was trying to do the same thing, and it sort of makes
sense that you can't control a transaction (UserTransaction
Hello,
i'm using transactions within servlets, sessionbeans
with no problems.
now i'm trying this from an ordinary app-client but it
caught an exception:
"java:comp/UserTransaction not found"
what goes wrong?
thanks a lot
klaus
import javax.naming.*;
import javax.t
now i'm trying this from an ordinary app-client but it
caught an exception:
"java:comp/UserTransaction not found"
In the JNDI properties, are you specifying the application name as well as
the server? e.g.
java.naming.provider.url=ormi://localhost/myapp
bject: get reference to UserTransaction fails
Hello,
i'm using transactions within servlets, sessionbeans
with no problems.
now i'm trying this from an ordinary app-client but it
caught an exception:
"java:comp/UserTransaction not found"
what goes wrong?
thanks a lot
klaus
i
i was trying to do the same thing, and it sort of makes
sense that you can't control a transaction (UserTransaction)
from outside orion (i.e. the ejb container).
it does raise the question however about how you would
ever maintain any decent level of control over transactions
if entity beans
dear all,
i'm sort of still learning about entity beans and
wondered if
anyone had any pointers for an error i'm
getting.
i receive *no* error when i try to obtain a
reference to a UserTransaction
from a stateless server bean under
orion.
i receive the following error when i try
I have Orion 1.0, patched with orion.jar 1.1.24, and Cloudscape 3 on a
Windows NT system.
I'm trying to use transactions with my Stateless Session Bean (yes, Bean
managed transaction is specified in ejb deployment descriptor), but I can't
obtain a reference to the UserTransaction object
Hi
I have discovered a deadlock problem with Orion 1.1.16 which I suspect is a
bug:
I do the following (in the servlet tier):
1. Begin a user transaction (getting the userTransaction from
java:comp/UserTransaction).
2. Then create a new entity bean
3. Then execute a finder method which should
Hello Rui,
Currently we do not support getting a UserTransaction reference from an
application client (the specification does not say that clients should have
access to it). We will probably implement it in a future release, but it will
then be Orion specific and not portable to every J2EE
the implementation is not going to be portable,
aren't we talking about standard interfaces here ?
Thanks,
Rui Gil
-Original Message-
From: Karl Avedal [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 5 de Julho de 2000 10:26
To: Rui Gil
Cc: Orion-Interest
Subject: Re: UserTransaction
Hello Rui,
Ok, since you want it, we'll implement it. It's put up as a feature request, so
expect it in about a week.
Rui Gil wrote:
Hi Karl,
Well, you're right, as far as I know the specification doesn't say
that this should be implemented, but it doesn't say the opposite
either... and
Hi Karl,
Well, you really have a way to make us users feel special,
don't you... ;)
Rui Gil
Hello Rui,
Ok, since you want it, we'll implement it. It's put up as a
feature request, so expect it in about a week.
:
public class PersonBean implements SessionBean {
private UserTransaction ut = null;
private SessionContext ctx;
[...]
public void ejbCreate() throws RemoteException, CreateException {
ut = ctx.getUserTransaction();
ejb-jar.xml: session
Hi !
I'm trying to use an UserTransaction in a client code.
None of the usuals JNDI names work, like,
UserTransaction utx =
(UserTransaction)initialContext.lookup("java:comp/UserTransaction")
What is the default JNDI name where the UserTransaction is bound for clients
?
Do I have
Hello,
as described in your FAQ i tried the
(TransactionManager)context.lookup("java:comp/UserTransaction");
but i get always the exception
"java:comp/UserTransaction not found"
questions:
- why to do
tm = (TransactionManager)initial.lookup("
Hello Klaus,
We'll check this out, it does seem weird,
Regards,
Karl Avedal
Klaus Thiele wrote:
Hello,
i have a SessionBean:
public class PersonBean implements SessionBean {
private UserTransaction ut = null;
private SessionContext ctx;
[...]
public void
Hi all,
How do you get a handle to a UserTransaction (on the client, not in a bean)?
I've tried the following but with no luck:
UserTransaction utx =
(UserTransaction)context.lookup("javax.transaction.UserTransaction");
UserTransaction utx =
(UserTransaction)context.lookup(&quo
37 matches
Mail list logo