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
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"
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 a
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 UserTransacti
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
backed, i.e.
new user was still in the database.
Tiral 2>>
I 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
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
Be
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
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: Orio
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
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
age -
> > 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, u
rk.
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]>
> Se
[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 6:05 AM
> Subject: Re: UserTransaction
>
> > Check www.orionserver.com, under the FAQ link:
> >
> > How do I get a reference to the TransactionManager?
> >
> >
> >import javax.naming.*;
> >i
way and do 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
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 (un
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
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
> C
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&quo
With orion, Is it possible to look up a user
transaction outside an EJB (a stand-alone app for example)?
Thanks
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 it! (Or is
there
s a
performance/stability problem, so I would try to do it in some other
way.
Regards,
Karl Avedal
Klaus Thiele wrote:
> Hello,
>
> i'm using transactions within servlets, sessionbeans
> with no problems.
>
> now i'm trying this from an ordinary app-client but it
>
My 2c,
JP
-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 cont
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
the reference to the client
But I think it's a bad idea anyway... it's kinda like "one and a half" layer
programming...
My 2c,
JP
-Original Message-
From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
Sent: Martes, 24 de Octubre de 2000 7:10
To: Orion-Interest
Subject
>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://localhos
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.*;
impo
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 whe
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 UserTransact
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
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.
>
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... a
t understand why 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
Sub
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
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 hav
> >
> > i have a SessionBean:
> >
> >public class PersonBean implements SessionBean {
> > private UserTransaction ut = null;
> > private SessionContext ctx;
> > [...]
> >public void ejbCreate() throws RemoteException, Cr
p("java:comp/UserTransaction");
> but i get always the exception
> "java:comp/UserTransaction not found"
> what goes wrong?
>
> questions:
> - why to do
> tm = (TransactionManager)initial.lookup("java:comp/UserTransaction");
> and not
&g
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"
what goes wrong?
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;
&
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("java:comp/User
Hello,
i have a SessionBean:
public class PersonBean implements SessionBean {
private UserTransaction ut = null;
private SessionContext ctx;
[...]
public void ejbCreate() throws RemoteException, CreateException {
ut = ctx.getUserTransaction();
ejb-jar.xml
Hi all,
I've seen this posted quite a few times before but no-one seems to know the
answer.
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)cont
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
I'm sorry if this is obvious but after going through the docs and the examples I
can not find how to get the JTA UserTransaction handle from Orion. The J2EE docs
give an example in terms of a SessionBean calling an EntityBean, but not an EJB
client.
Any pointers would be greatly apprec
44 matches
Mail list logo