Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Java-C communication

Thread view: 
vishwanath.kc@gmail.com - 05 Jun 2007 14:49 GMT
Hello,

What would be the easiest marshaling/unmarshaling method for C library
to communicate with a service written in Java (Note: these two can
resides in different hosts). The C has typical native complex data
structures to send across the wire.

thanks in adv,
--ViK
Richard Reynolds - 05 Jun 2007 22:42 GMT
> Hello,
>
[quoted text clipped - 5 lines]
> thanks in adv,
> --ViK

CORBA?
Arne Vajhøj - 06 Jun 2007 02:32 GMT
> What would be the easiest marshaling/unmarshaling method for C library
> to communicate with a service written in Java (Note: these two can
> resides in different hosts). The C has typical native complex data
> structures to send across the wire.

I would go for the simple solution: manual marshal/unmarshal on
both sides. Java with DataInputStream/DataOutputStream.

Arne
MJT.Keijsers@gmail.com - 06 Jun 2007 10:45 GMT
Anyone has experience with this? Could be quite difficult to do that
manually, one would like to generate 'marshalling code' based on
definitions in C header files.

OP question; another simple option is JNI but the JAVA process
implementing the bridge will have top be at the same host as the C
library, the interfacing between this JAVA bridge and your server app
is then quite simple via RMI. Maybe a lot of overhead?

On 6 jun, 03:32, Arne Vajh?j <a...@vajhoej.dk> wrote:
> vishwanath...@gmail.com wrote:
> > What would be the easiest marshaling/unmarshaling method for C library
[quoted text clipped - 6 lines]
>
> Arne
Esmond Pitt - 07 Jun 2007 04:01 GMT


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.