11. EJB 프로그래밍(2/5) EJB Bean Container Home Interface Remote Interface Other EJB Beans Context initial = new InitalContext(); Object objref = initial.lookup(“MyConverter”); ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref,ConverterHome.class); Converter currencyCon = home.create(); Double amount = currencyCon.dollarToYen(100.00); Client 프로그램 Lookup(JNDI 이용 Bean 찾기 ) Home Interface 가져오기 Remote Interface 사용 Home 을 이용 빈 생성 Application Server
16. COBALT 도구 개요 컴포넌트 생성 지원 도구 컴포넌트 조립 지원도구 컴포넌트 변환 도구 생성 통합 G U I 조립 통합 G U I 모델 정보 관리기 모델 정보 관리기 G U I 전체 통합 G U I 영역 모델러 컴포넌트 모델러 아키텍쳐 모델러 컴포넌트 합성기 컴포넌트 개조기 코블 프로그램 연계기 웹 프로그램 변환기 응용컴포넌트 추출기 DB 연계기 코드 생성기
17. 컴포넌트 생성지원 도구의 흐름도 Describe Object Sequence Diagram Describe Use Case Model Identify Components Initialize Component Diagram Edit Component Diagram Add Extracted Components Edit Component Class Diagram Import/Export DB Tables Edit Source Code Deploy Components Generate EJB Testing Client Describe Object Model Describe Component Sequence Diagram Describe Class Sequence Diagram Initialize Component Class Diagram SRE Support Domain Modeling Component Modeling Component Design Code Gen.
18.
19. .Net 환경 DB server Web Service 다양한 클라이언트 환경 Web Service SOAP SOAP SOAP HTTP SOAP = HTTP + XML 클라이언트 서비스 제공자 Web Application
20. .Net 프레임워크 Windows COM+ Services Common Language Runtime Base Class Library Data and XML ASP.NET Windows Forms Common Language Specification VB C++ C# Visual Studio.NET JScript …
21.
22. J2EE와 .Net 비교 (2/4) * Source : “Java 2 Enterprise Edition(J2EE) versus .Net Platform : Two vision of eBusiness,” ObjectWatch, March 2001. 기술 .Net J2EE 프로그래밍 툴 VisualStudio.NET - 분산 프로토콜 DCOM, SOAP RMI/IIOP 프리젠테이션 계층 프로그램 모델 ASP.NET Servlet, JSP 비즈니스 계층 하부구조 COM+ EJB 보안 API COM+Security Call Context JAAS 메시지 큐 API MSMQ JMS 1.0 비동기식 컴포넌트 Queued (COM+) Message Driven (EJB 2.0) Naming & Dir. Service ADSI JNDI 데이터베이스 계층 분산 트랜잭션 MS-DTC JTS 관계형 DB API ADO.NET JDBC 2.0 메인 프레임 DB 연결 Host Integration Server Java Connectors 프레임워크 기술 전자상거래 프레임워크 Commerce Server - B2B 통합 BizTalk Server -
23. J2EE와 .Net 비교 (3/4) * Source : “Understanding the component and Web Services Market,” CBDi forum, May 2001. Published for location independent discovery and use over a network Published for installation by a technical implementer Can be dynamically composed and or aggregated with other services based on information available at runtim Extensible, new specialized interfaces can be added to meet new requirements or services without disrupting existing clients Can be dynamically used based on information available at runtime. The interface can change Replaceable and upgradeable; providing the interface remains stable, the component can in theory be replaced with another implementation versioning, configuration, description. Can be easily reused Self describing and adapting Formal and precise interface definition of interface attributes –requires prior knowledge for use Generally only business level interface exposed Generally fine grain, method level interface exposing business, infrastructure and housekeeping functions Hides any Implementation details behind a SOAP interface Black box encapsulation; hides implementation details behind a COM, Java or CORBA Interface Implemented using open standards Implemented using de facto standards COM, Java or CORBA Web Service Component
24. J2EE와 .Net 비교 (4/4) 프로그래밍 언어 웹 서비스 프레임워크 컴포넌트 컨테이너 수행 플랫폼 Microsoft .Net SUN J2EE * Source : “Platforms for Components and Web Services,” CBDi Forum, April 2001 Many All Future Microsoft .Net Many Java Sun One APIs J2EE 1.4 ? J2EE 1.3
25. eBusiness 개발자 관점의 변화 OS + Programming Language Domain knowledge + + Programming Language Domain knowledge platform OS + Middleware Programming skills