Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6544661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:29:32+00:00 2026-05-25T11:29:32+00:00

I have applications that have been written in Java, .NET and C++. They all

  • 0

I have applications that have been written in Java, .NET and C++. They all use a common database.

Each app has it’s own way of accessing the database, and so things are quite inconsistent.

I was thinking of writing a Data Access Layer using a ORM and having all applications use that.

The question is how to implement this ORM Data Access Layer:

  1. Make a Java package using Hibernate;

    use the Java package from the .NET and C++ apps

  2. Make a .NET class library using Entity Framework;
    use the class library from the Java apps

In either case, is it easy to access the package/class library from the other platform? Any suggestions on the path to take?

Is communicating via XML between the two platforms the best way?

Ps. I have already seen this question, but I think my question is a super-set of that one.

Ps. Making a web-service is an option, but I would prefer not to write/use a web-service.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:29:33+00:00Added an answer on May 25, 2026 at 11:29 am

    iKVM

    This will allow you to share code between .NET and Java. I like most sane people in the world prefer to write data access bits in .NET, but if you’ve got existing code in Java you want to make available for .NET services this is available

    http://www.ikvm.net/

    RESTful Web Service++

    This is the most sane and obviously the quickest way to get up and running. Again, you could use something like Jersey, ASP.NET MVC, NancyFx or whatever REST application server you wanted to get up and running.

    I would recommend you use NancyFx and ServiceStack.Text. These are two very simple very pure implementations and are extremely fast, which is what you want if you’re using it as a unified DAL on top of your database.

    Nancy: https://github.com/NancyFx/Nancy/

    ServiceStack.Text: https://github.com/ServiceStack/ServiceStack.Text

    Jersey: http://jersey.java.net/

    ZOMG T3h H0rror – COM+ / DCOM

    This is actually a viable possibility if you can’t use RESTful web services, and also assuming you’re exclusively on Windows. This will also be the most troublesome depending on how insane your requirements are. That being said, I’ve seen this done before and seen it work quite well especially when you have legacy C/C++ components living inside different segments if your infrastructure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been experimenting with writing applications that use a local SQL Database to
Can we read cookies using core-java, that has been written using .NET MVC code?
I have an mvc application that has been coded to use Windows authentication and
I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite
I have a few modules of an application that have been written in Java.
Introduction I have been so annoyed by applications that have a startup dialog which
Background: We have an application that has been in the works for over a
I have just been involved in writing an application that does not use Doctype's
I have written an Android application that uses SQLite database which is saved in
I have recently inherited a J2EE Struts web app that was written back in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.