Discussion:
persist inline java objects
Giridhar Jayavelu
2012-12-04 18:12:11 UTC
Permalink
Hi,
I'm trying to store and retrieve Perl objects from a file using
Data::Dumper and eval. It works fine if I'm dealing with pure Perl objects.
With Inline Java objects, I realize it is not straight forward, I probably
have to serialize inline java objects first. I couldn't find a solution in
the forum.
Is there any recommended way to persist inline java objects?

Thanks in advance,
Giri
Russ Tremain
2013-02-06 20:46:50 UTC
Permalink
for persisting perl objects, there is a very fine module written by David Sharnoff:

http://search.cpan.org/~muir/OOPS-0.2005/

I would imagine that for persisting Java objects, you would want to use a java solution (JDO, Hibernate, etc).

Alternatively, you could translate them to perl objects and then persist the perl, but that sounds like a lot more work.

/r
Post by Giridhar Jayavelu
Hi,
I'm trying to store and retrieve Perl objects from a file using
Data::Dumper and eval. It works fine if I'm dealing with pure Perl objects.
With Inline Java objects, I realize it is not straight forward, I probably
have to serialize inline java objects first. I couldn't find a solution in
the forum.
Is there any recommended way to persist inline java objects?
Thanks in advance,
Giri
Loading...