Did you look at the
https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html page?
thanks,
-marina
Dru Devore wrote:
> What I am trying to accomplish is to run the entity beans from a
> standalone client. Not access the session beans from a standalone
> client. It is for yet another means of testing to have available to my team.
>
>
> Basically I am using this (with the persistance.xml created with toplink
> in NB)
>
> http://www.censnet.it/articles/cap03.html
> <http://www.censnet.it/articles/cap03.ht>
>
> ---
> Dru Devore
>
>
> -------- Original Message --------
> Subject: RE: Standalong ejb3
> From: Eve Pokua <gorgeous65_at_msn.com>
> Date: Fri, February 29, 2008 10:59 am
> To: <persistence_at_glassfish.dev.java.net>
> Cc: ejb glassfish <ejb_at_glassfish.dev.java.net>
>
> 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 d! o not
> have to make a reference to it with your session bean.
>
> eve
>
> ------------------------------------------------------------------------
> Date: Fri, 29 Feb 2008 06:23:47 -0700
> From: ddevore_at_duckhouse.us
> To: persistence_at_glassfish.dev.java.net
> Subject: Standalong ejb3
>
> I 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 sample
>
> I am currently using netbeans 6.0.1 with GF2. What am I missing?
> ---
> Dru Devore
>
>
> ------------------------------------------------------------------------
> Think you know your TV, music and film? Try Search Charades!
> <https://www.searchcharades.com>