473,503 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1982
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
3852
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
1194
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
348
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
1805
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
1958
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
6925
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
4255
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
2585
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
8710
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
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.