I currently have a full java web application stack (J2EE web app using Spring and Hibernate with a RIA client using dojo). I have to move technology stacks for the UI to be asp.net but am allowed to keep the server components in java. Any ideas on best practice here - and yes, I have to adopt this hybrid tech stack. Initial thoughts are:
asp.net ajax (possibly using asp.net MVC) to provide the UI and a thin control layer in IIS. expose current java web app (residing on a remote machine) as RESTful web services (the web app would remain in a J2EE serlet container such as Tomcat or Jetty). The new control layer would provide security (authentication and authorisation), comet server push abilities and then basic request passthrough to the web app.
Basically, I am unsure 'how much' C# I should write in the control layer and how best to expose and communicate with the existing java web app. Also, currently, I use JSON as the data interchange format.