Presentation is loading. Please wait.

Presentation is loading. Please wait.

.NET AND JAVA INTEROPERABILITY. Pooyahttp://blogs.msdn.com/pooyad/

Similar presentations


Presentation on theme: ".NET AND JAVA INTEROPERABILITY. Pooyahttp://blogs.msdn.com/pooyad/"— Presentation transcript:

1 .NET AND JAVA INTEROPERABILITY

2 Pooyahttp://blogs.msdn.com/pooyad/

3

4

5

6

7

8 Interop Beyond.NET Open Source Cool Stuff

9 Background Velocigen Inc High performance CGI engine (C++, Perl, Tcl) XML processing engine – pre-cursor to ESB Velometer (Java open source web testing tool) Blue Titan Inc Web Services Governance Management Routing and Reliability …

10 J2EE Operating System Java Virtual Machine Java Base API (AWT, IO, Collections, etc.) Java Extension API (javax.*) Java Enterprise API (EJB, JSP, JDBC, JNDI, JTS, etc.) Java Language

11 .Net Framework Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms Web Services Windows Forms Common Language Specification VBC++C#IronPythonJ# Visual Studio

12 Comparing the Stacks What they have in common abstract stack machines (runtime type control, exception handling, garbage collection) rich base class libraries The most obvious difference Java supports one language on multiple OS.Net is language neutral (20+ supported) on one OS The main.NET languages (C#/VB) and Java are advancing along similar paths, e.g. Both now have generics Java has added annotations (analogous to.NET’s attributes)

13 http server Browser Containers EJB Server Data Java Platform/.NET Framework JDBC App Server Entity Bean HOMEREMOTE Device HTTP JVM JDBC HTML, XML any OS Servlet or JSP RMI/IIOP Session Bean Context Security Transactions Concurrency IIS Browser.NET Framework Data ADO.NET Device HTTP ADO.NET HTML, XML, SOAP Windows ASP.NETorISAPI Web Service MSMQRemoting Context Security Transactions Concurrency Managed Object Rich GUI client RMI client Web Svc, Remoting

14 Interop: many alternatives.NET Application Windows Communication Windows Communication Foundation Java application EJB BizTalk Server JMS EJB JAX-WS, JAXB ActiveX Bridge Bridge JMS J-IntegraJ-Integra, J-Integra VisibrokerVisibroker, Visibroker JNBridge JACOBJACOB, JACOB JaWin COM Interop JNI Remotingchannel IIOP SOAP ASP.NETASP.NET & ASP.NET WSE WS-* / SOAP / HTTP.NET Remoting

15 File System IO FileSystem

16 Database ADO.NET DataStore

17 Middleware / Queues Middleware / Queue

18 Remoting - Integration with Java via IIOP Intrinsyc’s J-Integra Espresso product J-Integra Espresso J-Integra Espresso Next version will integrate IIOP as a WCF channel Current version links.NET to CORBA ORB via.NET Remoting Other ISV products that use.NET Remoting as the bridge: JNBridge ProJNBridge Pro, Borland Visibroker, Open Source IIOP.NET Visibroker IIOP.NET JNBridge ProVisibroker IIOP.NET

19 Interop options Shared database between.NET and J2EE Queues – MSMQ, IBM MQ Series Middleware – Biztalk, Websphere UI - shared session state and shared authentication Remoting Web services

20 Web services to the rescue

21 Web Services as Component Object Model Data Schema Services InvocationFrameworkObjects Classes Methods Calls StandardsXML XSD WSDL SOAP ApplicationConcepts

22 XML is the key XML

23 Transports HTTP XML XML, XSD, XPath Messaging SOAP, MTOM, WS-Addressing Security WS-Security WS-TrustWS-SecureConversationWS-Federation Reliability WS-Reliable Messaging Transactions WS-AtomicTransaction WS-Coordination Metadata WSDL, WS-Policy, WS-MetadataExchange WS-* Advanced Standards Broad industry support

24 WS-* Architecture Assurances Messaging SOAP WS-Security MTOMWS-Addressing Metadata WS-Policy WSDL WS-Discovery UDDI WS-Metadata Exchange WS-TransferWS-EnumerationWS-Eventing XML Schema WS-Reliable Messaging WS-Coordination WS-Atomic Transaction WS-Business Activity WS-Trust WS-Secure Conversation > > Infrastructure and Profiles WS-ManagementWS-Federation Devices Profile Foundation SOAP / HTTP SOAP / UDP MIME XML Infoset XML 1.0 XML Namespaces

25 Windows Communication Foundation Introduction WS-* Standards support Write once expose multiple ways WS-*HTTPTCP/IP…RESTJSON

26 Windows Communication Foundation API ASMX & WSE.NET Remoting Enterprise Services System. Messaging API Unifying Communication WCF Applications.NET Framework 2.0 MSMQ SOAP & WS-* Remoting protbinaryocol protbinaryocolDCOMProtocol Others SOAP & WS-* WCF binary protocolMSMQProtocol Applications.NET Framework 3.0

27 WS Interop Pulg-Fests Interoperability Workshops Interoperability Workshops Companies attending: BEACanonIonaJboss Microsoft Corporation NokiaOracleReactivity Sonic Software Sun Microsystems WSO2 (Apache) …

28

29

30 Does it really work?

31 .NET StockTrader Example http://msdn2.microsoft.com/en-us/vstudio/bb499684.aspx Equivalent to IBM Websphere 6.1 Stock Trader application Same services exposed

32

33

34 Web UI Services Layer SOAP

35 True Interop Services in the application are exposed, via WCF, as industry-standard Web Services. The.NET StockTrader Web application seamlessly interoperates with the backend J2EE services of the WebSphere Trade 6.1 application Conversely, the WebSphere Trade 6.1 Web application is able to seamlessly utilize the backend services of the.NET StockTrader. In each case, a simple endpoint configuration allows this interoperability, with no code changes required to either application.NET StockTrader and J2EE Interoperability

36 How about something more complex?

37 Project Tango (WSIT) Sun-Microsoft partnership A part of Sun’s Glassfish initiative (open source JEE5 server) – Project Metro Goal: Java™ technology Web Services interoperability with.NET 3.0. (showcased at JavaOne) Accomplished by fully interoperable implementations of: WS-Addressing, WS-Transfer, WS-MetadataExchange and WS- Policy for discovery and routing WS-Security, WS-Trust, WS-SecurityPolicy for secure messaging MTOM and XOP for attachment encoding WS-ReliableMessaging, WS-Coordination and WS- AtomicTransaction for reliability and transactions For more information: http://java.sun.com/developer/technicalArticles/glassfish/ ProjectTango/ http://java.sun.com/developer/technicalArticles/glassfish/ ProjectTango/ http://java.sun.com/developer/technicalArticles/glassfish/ ProjectTango/

38 Project Tango - WSIT Demo Try it on your own: (bits are available) http://blogs.sun.com/arungupta/entry/excel_using _wsit_javaone_2007 http://blogs.sun.com/arungupta/entry/excel_using _wsit_javaone_2007 Scenario: Excel 2007 accessing webservices running in Glassfish Excel 2007 accessing webservicesExcel 2007 accessing webservices WS-Security - Kerberos

39 Excel calling Java webservice SOAP

40 .NET Client calling Java Webservice

41 Before Project Tango

42 WS-Trust

43 Federated Trust OracleMicrosoft Secure, RM, MTOM STS Metadata Exchange Jean-Luc Picard (Excel, WCF) Data Data (Oracle Fusion Middleware) MEX T MEX WS-Trust

44 Interop Beyond.NET Open Source Cool Stuff

45 Beyond.NET SQLSharepointOffice Silverlight 1.0 + 2.0 Live Services Live Maps Messenger…

46 SQL ADO.NET SQL 2008

47 .NET – Java Portal Integration.NET Application BEA Weblogic Weblogic Portal 8.1 SP3 WSRP Framework WSRP / SOAP ASP.NET / WSE NetUnity WSRP.NET Framework™ JAX / Web Services Framework BizTalkServer SOAP WCF.NET XML / XSLT

48 Office as a Development Platform Open Office XML Excel demo – Project Tango Word demo – OOXML

49 OOXML Interop Demo DB VM VM Linux OS Web Server Tomcat JSP Application IE IE Windows OS Word 2007 1. Generate Document 3. Edit Document 4. Upload 5. Publish to Web 6. View in Browser 2. Download ServerDesktop

50 Silverlight (1.0) Silverlight (1.0) MLB.com Silverlight on top of JSP – through javascript Javascript can access Silverlight Objects HTML + Javascript

51 Interop options – lots of them Shared files Shared database between.NET and J2EE Queues – MSMQ, IBM MQ Series Middleware – Biztalk, Websphere UI - shared session state and shared authentication Remoting Web services This is the key one Standards

52 Resources Microsoft Interop Portal: http://www.microsoft.com/interop MSDN Web Services Interoperability Home Page http://msdn.microsoft.com/webservices/building/interop MSDN.Net/Java Interoperability Home Page http://msdn.microsoft.com/vstudio/java/interop Microsoft Public Web Services Interop Tests http://mssoapinterop.org/ilab/ Windows Communication Foundation http://msdn.microsoft.com/webservices/indigo/ Web Services Interoperability Blogs http://pluralsight.com/blogs/kirillg/ http://blogs.cocoondev.org/dims/index.rdf

53 Interop Beyond.NET Open Source Cool Stuff

54 Open Source Initiatives home to the open source community at Microsoft. This represents an open conversation dedicated Linux, Windows and open source interoperability CodePlex is Microsoft's open source project hosting web site. Start a new project, join an existing one, or download software created by the community.

55 Open Source at Microsoft Open Source announcement Open Source announcement Open Source Heroes – part of launch Open Source Heroes – part of launch

56 Interop Beyond.NET Open Source Cool Stuff

57 WPF Silverlight 2.0 Photosynth Popfly Surface Labs.live.com

58 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. http://blogs.msdn.com/pooyad


Download ppt ".NET AND JAVA INTEROPERABILITY. Pooyahttp://blogs.msdn.com/pooyad/"

Similar presentations


Ads by Google