Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Using Eclipselink in a RIA; by passing session beans
Using Eclipselink in a RIA; by passing session beans [message #492672] Wed, 21 October 2009 06:27 Go to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 807
Registered: July 2009
Senior Member
Does anyone know how to directly access EJB's from a client (Swing or RIA) by passing any session beans?

Tom
Re: Using Eclipselink in a RIA; by passing session beans [message #492777 is a reply to message #492672] Wed, 21 October 2009 13:03 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You cannot use JPA / EntityManager directly from a client (unless you connect directly to the database, or use remote driver).

You can use RMI to access a SessionBean's Remote interface to invoke methods on the server. Those methods could serialize Entity objects, but they will be detached. You will need to merge them back on the server to update the database.



James : Wiki : Book : Blog : Twitter
Previous Topic:Eclipselink with Apache Felix
Next Topic:JPQL queries with IN operator and sub queries may be converted to incorrect SQL?
Goto Forum:
  


Current Time: Wed Aug 27 15:10:11 EDT 2014

Powered by FUDForum. Page generated in 0.01597 seconds