javaserver-java Mailing List for JavaServer
Brought to you by:
zzo
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(6) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <ma...@zz...> - 2004-06-14 22:43:44
|
Got it. Yah you currently can't pass binary data over the JavaServer connexion. Other than encoding the data (base64 would be easy), you can open a socket between the JavaServer process and the perl process & pass the data that way. Check out 'sever.pl' in the perl examples - a ServerSocket & created & opened on the Java side & then lines are passed to it - all from within perl. Mash your ByteArrayInputStream on top of the ServerSocket & you may have something. Mark On Sun, Jun 13, 2004 at 06:38:43PM -0400, Matt Greenwood wrote: > Mark, > My Java objects are zipped together in a zip file. I use perl to > iterate through the entries. For each entry I have an $entry->contents > that I want to pass to the Java side. My original workaround was to > write the contents out to /tmp. That doesn't work when I'm not on the > same machine as the Java server. > I could uuencode the contents and pas them over, but then I > would have to write more Java code than I want to. All I really want to > do is: > > my $bis = $java->create_object("java.io.ByteArrayInputStream", > $entry->contents); > my $str = $java->create_object("java.io.ObjectInputStream", > $bis)->readObject->toString(); > > > Matt > > > Matt Greenwood > Two Sigma Investments, LLC > 379 W. Broadway, 5th Floor > New York, NY 10012 > > (P)212-625-5764 > (F)212-625-5864 > (M)908-380-1673 > > > -----Original Message----- > > From: ma...@zz... [mailto:ma...@zz...] > > Sent: Friday, June 11, 2004 3:46 PM > > To: Matt Greenwood > > Cc: jav...@li... > > Subject: Re: [Javaserver-java] javaserver with binary data > > > > > > > > I have never tried passing binary data but I am sure the > protocol > > > > would > > > > get in the way - you could uuencode the data & then send that over > - & > > > > just > > > > have the Java stuff uudecode it & be back in business. > > > > > > Yes, but I just want to do an object decode. > > > > > > > I don't know what you mean here. You want de-serialize java objects > > right? > > Why not just have the Java side do it? > > Mark > |
From: Matt G. <Mat...@tw...> - 2004-06-13 22:38:56
|
Mark, My Java objects are zipped together in a zip file. I use perl to iterate through the entries. For each entry I have an $entry->contents that I want to pass to the Java side. My original workaround was to write the contents out to /tmp. That doesn't work when I'm not on the same machine as the Java server.=20 I could uuencode the contents and pas them over, but then I would have to write more Java code than I want to. All I really want to do is: my $bis =3D $java->create_object("java.io.ByteArrayInputStream", $entry->contents); my $str =3D $java->create_object("java.io.ObjectInputStream", $bis)->readObject->toString(); Matt Matt Greenwood Two Sigma Investments, LLC 379 W. Broadway, 5th Floor New York, NY 10012 =20 (P)212-625-5764 (F)212-625-5864 (M)908-380-1673 > -----Original Message----- > From: ma...@zz... [mailto:ma...@zz...] > Sent: Friday, June 11, 2004 3:46 PM > To: Matt Greenwood > Cc: jav...@li... > Subject: Re: [Javaserver-java] javaserver with binary data >=20 >=20 > > > I have never tried passing binary data but I am sure the protocol > > > would > > > get in the way - you could uuencode the data & then send that over - & > > > just > > > have the Java stuff uudecode it & be back in business. > > > > Yes, but I just want to do an object decode. > > >=20 > I don't know what you mean here. You want de-serialize java objects > right? > Why not just have the Java side do it? > Mark |
From: <ma...@zz...> - 2004-06-11 19:46:44
|
> > I have never tried passing binary data but I am sure the protocol > > would > > get in the way - you could uuencode the data & then send that over - & > > just > > have the Java stuff uudecode it & be back in business. > > Yes, but I just want to do an object decode. > I don't know what you mean here. You want de-serialize java objects right? Why not just have the Java side do it? Mark |
From: Matt G. <Mat...@tw...> - 2004-06-10 15:40:45
|
Mark, Thanks for the note. > I have thought about switching to an XML-protocol - SOAP/XML-RPC/roll > my own/even jabber. Unfortunately those things take time I just don't > have. > However if you'd like to step up I won't stop you! Maybe if I ever get the time. 8-) > I have never tried passing binary data but I am sure the protocol > would > get in the way - you could uuencode the data & then send that over - & > just > have the Java stuff uudecode it & be back in business. Yes, but I just want to do an object decode. > There currently is no way to dump the cache - although I think it > would > be quite easy to implement - a better solution is to figure out what it's > getting confused! =20 Good question, I looked into it a bit, but couldn't find out why. What platform are you running on & how many objects are > you creating & how long does it run before there's trouble? > thanks, Linux. Just one or two objects, but I'm using the server as a catch-all. So I am running multiple short-lived scripts against it, with large gaps of downtime. The trouble usually occurs after a couple of days of usage. Matt |
From: <ma...@zz...> - 2004-06-09 18:25:14
|
Hey Matt, I have thought about switching to an XML-protocol - SOAP/XML-RPC/roll my own/even jabber. Unfortunately those things take time I just don't have. However if you'd like to step up I won't stop you! I have never tried passing binary data but I am sure the protocol would get in the way - you could uuencode the data & then send that over - & just have the Java stuff uudecode it & be back in business. There currently is no way to dump the cache - although I think it would be quite easy to implement - a better solution is to figure out what it's getting confused! What platform are you running on & how many objects are you creating & how long does it run before there's trouble? thanks, Mark On Wed, Jun 09, 2004 at 10:21:42AM -0400, Matt Greenwood wrote: > Hi, > I'm trying to use JavaServer to read an ObjectStream. I'd like > to open the file on the perl side and send the binary data across to the > server as a blob. Is there anyway to do this at the moment? I played > around for a bit and it looks like the protocol is getting in the way... > This leads me to question number two. Any plans to move to, say, XML? > I also noticed that after running for a long period of time, my > JavaServer gets 'confused' restarting it always solves the problem, is > there anyway of dumping the cache on the server? > > Thanks, > Matt > > Matt Greenwood > Two Sigma Investments, LLC > 379 W. Broadway, 5th Floor > New York, NY 10012 > > (P)212-625-5764 > (F)212-625-5864 > (M)908-380-1673 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Javaserver-java mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/javaserver-java |
From: Matt G. <Mat...@tw...> - 2004-06-09 14:21:48
|
Hi, I'm trying to use JavaServer to read an ObjectStream. I'd like to open the file on the perl side and send the binary data across to the server as a blob. Is there anyway to do this at the moment? I played around for a bit and it looks like the protocol is getting in the way... This leads me to question number two. Any plans to move to, say, XML?=20 I also noticed that after running for a long period of time, my JavaServer gets 'confused' restarting it always solves the problem, is there anyway of dumping the cache on the server? Thanks, Matt Matt Greenwood Two Sigma Investments, LLC 379 W. Broadway, 5th Floor New York, NY 10012 =20 (P)212-625-5764 (F)212-625-5864 (M)908-380-1673 |
From: David G. <da...@pe...> - 2004-05-25 16:29:23
|
ma...@zz... writes: > d'oh - sorry about that. Debug.java is available from sourceforge > CVS & will be included in the next release (it hasn't changed since > the 5.1 release). Is that sufficient or do you need a whole new > tarball? I can get it from CVS, that's fine, somehow forgot that sourceforge made that available. Thanks a lot! Dave PS: You can close the sourceforge bug I opened about this. |
From: <ma...@zz...> - 2004-05-25 15:51:06
|
d'oh - sorry about that. Debug.java is available from sourceforge CVS & will be included in the next release (it hasn't changed since the 5.1 release). Is that sufficient or do you need a whole new tarball? Mark On Mon, May 24, 2004 at 08:59:34PM -0400, David Golombek wrote: > I noticed the other week that the 5.1 source tarball doesn't contain > Debug.java, could you please regenerate the tarball to include it, for > those of us who like to compile things ourselves? > > Thanks, > Dave > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Javaserver-java mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/javaserver-java |
From: David G. <da...@pe...> - 2004-05-25 00:59:39
|
I noticed the other week that the 5.1 source tarball doesn't contain Debug.java, could you please regenerate the tarball to include it, for those of us who like to compile things ourselves? Thanks, Dave |