Re: UserTransaction
Phan Anh Tran wrote: Yeah, but can I do that from a stand-alone APP running in separate no, you can't. (and it is a better design to handle transactions on the server side. for example you can use sessionbeans for your businesslogic(+transactions) from your standalone-app) Am Montag, 18. Juni 2001 16:23 schrieben Sie: I don't know, I've never tried it. I would try it and let the list know the result. You're going to need to set the jndi properties using a jndi.properties file in your client. This is well documented elsewhere in this list. Once the jndi context is set up correctly, I see no reason why 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 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 Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect.
Re: UserTransaction
I don't know, I've never tried it. I would try it and let the list know the result. You're going to need to set the jndi properties using a jndi.properties file in your client. This is well documented elsewhere in this list. Once the jndi context is set up correctly, I see no reason why 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 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 Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Auto-reply: Re: UserTransaction
I am on holiday returning back to the office on Tuesday the 19th June. For administrative enquiries please contact Sian Norrie at [EMAIL PROTECTED] or (+44/0) 118 9246080, for technology enquiries please contact Mark Reeves at [EMAIL PROTECTED] or (+44/0) 207 816 7865. I don't know, I've never tried it. I would try it and let the list know the result. You're going to need to set the jndi properties using a jndi.properties file in your client. This is well documented elsewhere in this list. Once the jndi context is set up correctly, I see no reason why 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 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 Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: UserTransaction
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 (under Meta-inf) 4) copy the .ear file under $ORION_HOME/applications 5) start orion hope this helps ciao Paolo David- wrote: 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 begin:vcard n:;nome x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:nome cognome end:vcard
RE: UserTransaction
I think the easiest way to learn is to use the visual tools that come with orion and create a project with the 'orion specific' directory structure. Use the tool for a little bit to see where it saves the classes, jsps and descriptors. Once you are confortable, put the visual tool away 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 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
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 InitialContext().lookup(java:comp/UserTransaction); Jeff Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: UserTransaction
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: 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 Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: UserTransaction
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
Re: UserTransaction.
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 server. Also, it's usually not a good choice to do transaction demarcation on the client. I would recommend doing the transaction demarcation from a session bean. If you want to, you can see the session bean as a part of your client logically, just that it's residing on the server, and you can probably put the kind of logic you want client transaction demarcation for in the session bean (but since I don't know exactly what you're using it for, I can't say for sure...) Regards, Karl Avedal Rui Gil wrote: 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 to include it as a resource in my application-client.xml to bind it to JNDI ? And how do I configure this ? thx for the help. Rui Gil
RE: UserTransaction.
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 this is a common feature around J2EE servers. So I really hope that the Orion team implement this one quickly... I don'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 Subject: Re: UserTransaction. 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 server. Also, it's usually not a good choice to do transaction demarcation on the client. I would recommend doing the transaction demarcation from a session bean. If you want to, you can see the session bean as a part of your client logically, just that it's residing on the server, and you can probably put the kind of logic you want client transaction demarcation for in the session bean (but since I don't know exactly what you're using it for, I can't say for sure...) Regards, Karl Avedal Rui Gil wrote: 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 to include it as a resource in my application-client.xml to bind it to JNDI ? And how do I configure this ? thx for the help. Rui Gil
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 this is a common feature around J2EE servers. So I really hope that the Orion team implement this one quickly... I don't understand why the implementation is not going to be portable, aren't we talking about standard interfaces here ? It will not be portable since it's outside the specification of the platform. You're looking somethign up from the environment that the specification isn't saying will be there. That's like relying on System properties that might be there on some platforms, but not on some. You are using a standard interface to access the systerm properties, but they will not always be there. This means that your application will not be "pure J2EE" and work on every J2EE server, but as long as you're ok with that, it's no problem, except for the usual problems of transaction demarcation from the client (network latency making the transactions long, and with many clients, you could get many long transactions going...) Moving your transaction demarcation across the network to the session beans on the server will usually help your application to perform better. Regards, Karl Avedal
RE: UserTransaction.
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.
Re: UserTransaction in SessionBean
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 ejbCreate() throws RemoteException, CreateException { ut = ctx.getUserTransaction(); ejb-jar.xml: session transaction-typeBean/transaction-type when my client calls the create-method, i get following exception: "Only beans with user-managed transaction can invoke getUserTransaction()" did i miss something? thanks klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."