473,383 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Plugin for Java Serialization in Dot Net or Vice versa

Hi,

I have a client windows application (VB.Net) interacting with a server that
has been coded in java. I basically need to pass a java object from the
server into a binary format over the network and get it as a response back at
the client which I then want to deserialize into an object.
However, a java serialized object cannot be deserialized into a .Net object.

My query:
Is there any plugin I can use at the client end (java plugin to operate in a
dot net environment) that can be used to deserialize the java binary
formatted stream? Or else, is there a dot net plugin I can use at the java
server to serialize a java object into a stream that is recognisable by the
dot net deserialize method when the response comes back to the client?

I' would really appreciate any pointers that I may get.

Cheers!
Nick
Nov 22 '05 #1
7 1976
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.

Any thoughts?

"Nick" wrote:
Hi,

I have a client windows application (VB.Net) interacting with a server that
has been coded in java. I basically need to pass a java object from the
server into a binary format over the network and get it as a response back at
the client which I then want to deserialize into an object.
However, a java serialized object cannot be deserialized into a .Net object.

My query:
Is there any plugin I can use at the client end (java plugin to operate in a
dot net environment) that can be used to deserialize the java binary
formatted stream? Or else, is there a dot net plugin I can use at the java
server to serialize a java object into a stream that is recognisable by the
dot net deserialize method when the response comes back to the client?

I' would really appreciate any pointers that I may get.

Cheers!
Nick

Nov 22 '05 #2
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.

Any thoughts?

"Nick" wrote:
Hi,

I have a client windows application (VB.Net) interacting with a server that
has been coded in java. I basically need to pass a java object from the
server into a binary format over the network and get it as a response back at
the client which I then want to deserialize into an object.
However, a java serialized object cannot be deserialized into a .Net object.

My query:
Is there any plugin I can use at the client end (java plugin to operate in a
dot net environment) that can be used to deserialize the java binary
formatted stream? Or else, is there a dot net plugin I can use at the java
server to serialize a java object into a stream that is recognisable by the
dot net deserialize method when the response comes back to the client?

I' would really appreciate any pointers that I may get.

Cheers!
Nick

Nov 22 '05 #3
Nick <Ni**@discussions.microsoft.com> wrote:
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.


Yes, this kind of thing is exactly the reason web services were
invented. You wouldn't pass in a serialized stream though - the web
service layers themselves deal with how your objects are serialized.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #4
Nick <Ni**@discussions.microsoft.com> wrote:
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.


Yes, this kind of thing is exactly the reason web services were
invented. You wouldn't pass in a serialized stream though - the web
service layers themselves deal with how your objects are serialized.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #5
Yeah I guess you are right on this... Funny it never struck me earlier :)
Anyways thanks...

But talking about the other approach, is there any existing interop assembly
that I could use at my client end as well?
Something that would deserialize in the java format and then pass me the
base string or object?

"Jon Skeet [C# MVP]" wrote:
Nick <Ni**@discussions.microsoft.com> wrote:
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.


Yes, this kind of thing is exactly the reason web services were
invented. You wouldn't pass in a serialized stream though - the web
service layers themselves deal with how your objects are serialized.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 22 '05 #6
Yeah I guess you are right on this... Funny it never struck me earlier :)
Anyways thanks...

But talking about the other approach, is there any existing interop assembly
that I could use at my client end as well?
Something that would deserialize in the java format and then pass me the
base string or object?

"Jon Skeet [C# MVP]" wrote:
Nick <Ni**@discussions.microsoft.com> wrote:
Another thought...

I could also probably write a web service that I could call from my server
that would return me the .Net serialized stream.


Yes, this kind of thing is exactly the reason web services were
invented. You wouldn't pass in a serialized stream though - the web
service layers themselves deal with how your objects are serialized.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 22 '05 #7
Nick <Ni**@discussions.microsoft.com> wrote:
Yeah I guess you are right on this... Funny it never struck me earlier :)
Anyways thanks...

But talking about the other approach, is there any existing interop assembly
that I could use at my client end as well?
Something that would deserialize in the java format and then pass me the
base string or object?


I don't know of any, I'm afraid, although I wouldn't be surprised if
there were some. I'd be slightly surprised if they worked well though
:)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alan Brown | last post by:
As a newbie I would like to ask what the difference in application (not details) is between C++ and Java. In what situations would you use C++ in preference to Java and vice versa? I am not...
0
by: Thomas Koch | last post by:
Does anyone know if its possible to have java object deserialized to a .NET counterpart, and vice-versa? Regards Thomas Koch
4
by: Nick | last post by:
Hi, I have a client windows application (VB.Net) interacting with a server that has been coded in java. I basically need to pass a java object from the server into a binary format over the...
289
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could...
9
by: M D | last post by:
How do I get a stream in to a datagram and back out again? Problem is I want to use a struck for an interprocess communication but I need to parse the datagram to discover if the struct is what's...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
7
by: =?Utf-8?B?U3R1?= | last post by:
I have a ASP.NET Ajax app (using client library) calling ASP.NET Ajax-enabled web services. We are making use of the javascript proxies generated by ASP.NET Ajax. The problem we have is that the...
4
by: anglozaxxon | last post by:
I'm making a program that consists of a main engine + plugins. Both are in Python. My question is, how do I go about importing arbitrary code and have it be able to use the engine's functions,...
1
by: Tbone | last post by:
Is there any way to send a Message without having the .NET framework add the "serialization" data to the body of the message? I am sending binary structures in the message and I need full control...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.