Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Using Prevayler to communicate from JSP to a Java Application

Reply
Thread Tools

Using Prevayler to communicate from JSP to a Java Application

 
 
Snyke
Guest
Posts: n/a
 
      11-01-2005
Ok the idea is simple:
I'd like to use Prevayler as the Storage method for a Web Application
that uses JSP. The Web Application is used to access and modify the
data in the storage. Then on the other side I have a workhorse that
does a simulation on the data that is fed in by the Web Interface.

So my question is: is it possible to access a running instance of
prevayler by both the workhorse and the web frontend? And if yes is
there a good tutorial on how to set up the whole system?

 
Reply With Quote
 
 
 
 
jon martin solaas
Guest
Posts: n/a
 
      11-02-2005
Snyke wrote:

> Ok the idea is simple:
> I'd like to use Prevayler as the Storage method for a Web Application
> that uses JSP. The Web Application is used to access and modify the
> data in the storage. Then on the other side I have a workhorse that
> does a simulation on the data that is fed in by the Web Interface.
>
> So my question is: is it possible to access a running instance of
> prevayler by both the workhorse and the web frontend? And if yes is
> there a good tutorial on how to set up the whole system?


Can't you just pass the input from the web-frontend to the workhorse and let
both data-access and horse-work run there, with only one instance of
prevayler running?

--
jon martin solaas
 
Reply With Quote
 
 
 
 
Snyke
Guest
Posts: n/a
 
      11-02-2005
Well that is the option I'm thinking about right now:
putting the workhorse and prevayler together in one application so not
to bother with communication between the two of them.
But still the problem remains: how to access the data from the
webfront?
I'm thinking about either OpenJMS, RMI or openSymphony, what would you
suggest?

Thanks,
Snyke

 
Reply With Quote
 
jon martin solaas
Guest
Posts: n/a
 
      11-02-2005
Snyke wrote:

> Well that is the option I'm thinking about right now:
> putting the workhorse and prevayler together in one application so not
> to bother with communication between the two of them.
> But still the problem remains: how to access the data from the
> webfront?
> I'm thinking about either OpenJMS, RMI or openSymphony, what would you
> suggest?


I don't know openSymphony, it seems like a bunch of different projects. Did
you have one particular project in mind? Of the two others I'd use jms if
asyncronous calls were needed, otherwise rmi. How about stateful session
bean? I don't know of any ejb container that prohibits disk access even if
you're not supposed to ...

--
jon martin solaas
 
Reply With Quote
 
Snyke
Guest
Posts: n/a
 
      11-03-2005
Sorry but I'm completely new to Beans, do you know any good tutorial,
or some explanation on what they are and what they are used for?

What I'd like to do is have a system where I get a Base Object on the
Persister from which I may access all the other objects by using the
references in the Base Object. The tricky part of this is that I want
the method calls to be executed on the Persister rather than the
webfrontend.

To explain this a bit better I'll use an example:
Lets say the Base Object in the Persister has a Collection of Accounts.
Now I want to create a new account, so the first thing I do is get the
reference to the Base Object and then from there I get a reference to
the Collection of User Accounts, I then check if the account exists and
if not I add it.
The details are pretty difficult to see but its important that on the
webfront I have onyl references to the object in the persister and no
copies, or otherwise my changes to them will be lost (in other words
not saved in the persister)...

I'm playing around a bit with RMI which looks nice to me but it has
some limitations, since if I access a reference I get a new copy which
is executed client side (on the webfront) instead of serverside (on the
persister).

Any ideas on how to get that to work???

Thanks,
Snyke

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
prevayler.org in perl quiet_lad Perl Misc 0 03-13-2012 09:54 PM
communicate to remote linux machine using jsp Mahesh Acharya Java 0 09-29-2008 12:17 PM
in mem db can java do this saw prevayler gavino Java 0 08-15-2006 05:01 AM
Prevayler John Gagon Java 0 05-11-2006 01:01 PM
how 2 communicate applet and jsp? rajesh Javascript 4 02-10-2006 09:46 AM



Advertisments