Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Transfering an object within J2EE
I have this problem. I need to use an object in the client side, that is
gotten in on the server side, on a  non-web J2EE aplication.
Once I get this object I want to used locally and save it locally. Only when
the object on the server side changes ( its code is upgraded) I will
download it again. I think this could be made using RMI, but using EJB
tecnlogoly I can't do this, because only a reference is transfered and not
the object itself. I need the object on the client side because I what it to
run in the client machine , even if the server is down.

If I transfer a plain old java object (POJO) using a stateless EJB has a
factory , can I save the object locally ? And if yes how ?



Report this thread to moderator Post Follow-up to this message
Old Post
SMMT
08-16-04 08:56 AM


Re: Transfering an object within J2EE
SMMT wrote:

>I have this problem. I need to use an object in the client side, that is
>gotten in on the server side, on a  non-web J2EE aplication.
>Once I get this object I want to used locally and save it locally. Only whe
n
>the object on the server side changes ( its code is upgraded) I will
>download it again. I think this could be made using RMI, but using EJB
>tecnlogoly I can't do this, because only a reference is transfered and not
>the object itself. I need the object on the client side because I what it t
o
>run in the client machine , even if the server is down.
>
>If I transfer a plain old java object (POJO) using a stateless EJB has a
>factory , can I save the object locally ? And if yes how ?
>
>
>
>
Hi,
I 'm supposing you're talking about a java standalone program (clint
side) that need some kind of  code-synchronization with the server version.
You'd probably use java web start technology.
carlo

Report this thread to moderator Post Follow-up to this message
Old Post
news.libero.it
09-10-04 09:00 PM


Re: Transfering an object within J2EE
 
when 
not 
to 
> Hi,
> I 'm supposing you're talking about a java standalone program (clint
> side) that need some kind of  code-synchronization with the server
version.
> You'd probably use java web start technology.

No. In my project I will need to use some objects like validators and
converters that are used too ofen to use a Stateless Bean to do the
validation server side. I'm not developing for web, but a client / server
aplication.
My idea was, to look for the validator once , and cache it on the client
side. But for this to happen I need the object to be free of j2ee server
side string-attachments.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/9/2004



Report this thread to moderator Post Follow-up to this message
Old Post
SMMT
09-16-04 04:12 PM


Re: Transfering an object within J2EE
Have you tried using RMI to talk between the server side EJBs directly to th
e client or to a facade on the server side outside of the container.  So it 
could be you have an EJB talking with a POJO in the app server but not in th
e container.  The POJO deals with interfaces and then talks with the applica
tion via RMI or any protocol you want.  The POJO may be able to talk with th
e EJB using interfaces or RMI.

I am struggling with the same problem in a way.  No good answer yet. 

David


quote:
Originally posted by SMMT I have this problem. I need to use an object in the client side, that is gotten in on the server side, on a non-web J2EE aplication. Once I get this object I want to used locally and save it locally. Only when the object on the server side changes ( its code is upgraded) I will download it again. I think this could be made using RMI, but using EJB tecnlogoly I can't do this, because only a reference is transfered and not the object itself. I need the object on the client side because I what it to run in the client machine , even if the server is down. If I transfer a plain old java object (POJO) using a stateless EJB has a factory , can I save the object locally ? And if yes how ?

Report this thread to moderator Post Follow-up to this message
Old Post
madisonDave
10-01-04 04:03 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:32 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.