persistence@glassfish.java.net

RE: Standalong ejb3

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Fri, 29 Feb 2008 15:59:13 +0000

Hi,
 
I have copied in ejb glassfish.
Are you trying to run the client as a stand alone or or the session bean?
 
I am sure you can't run the session as stand alone but you can access the session
using a standalone client.
 
Have a look at these:
 
http://krsethur.wordpress.com/2006/12/22/running-ejb-client-standalone/
 
http://www.developer.com/java/ejb/article.php/3650661

Could you also copy in some of the codes of your session and the client.
 
And have you set up your persistence unit? If so, if there's only one
persistence unit within your application, the xml descriptor would know
during deployment which unit you are refering to. Therefore, you do not
have to make a reference to it with your session bean.
 
eve
 


Date: Fri, 29 Feb 2008 06:23:47 -0700From: ddevore_at_duckhouse.usTo: persistence_at_glassfish.dev.java.netSubject: Standalong ejb3I am trying to setup a ejb 3 client to work from the command line. I have read that you can't run a session bean standalone, which may shoot this in the foot anyway. First is this true, can I use only entity beans? Second I need a tutorial to do this. I got to the point where I can run the program but it is dying telling me:No Persistence provider for EntityManager named sampleI am currently using netbeans 6.0.1 with GF2. What am I missing? ---Dru Devore
_________________________________________________________________
Get Hotmail on your mobile, text MSN to 63463!
http://mobile.uk.msn.com/pc/mail.aspx