rmi_박준용_final.PDF

Similar documents
Chap12

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

Microsoft PowerPoint - RMI.ppt

MasoJava4_Dongbin.PDF

JMF3_심빈구.PDF

Network Programming

JMF2_심빈구.PDF

(Microsoft PowerPoint - Chapter17 RMI.ppt [\310\243\310\257 \270\360\265\345])

자바GUI실전프로그래밍2_장대원.PDF

자바-11장N'1-502

12-file.key

PowerPoint 프레젠테이션

Interstage5 SOAP서비스 설정 가이드

Microsoft PowerPoint - 04-UDP Programming.ppt

02 C h a p t e r Java

01-OOPConcepts(2).PDF

신림프로그래머_클린코드.key

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [호환 모드]

비긴쿡-자바 00앞부속

歯Writing_Enterprise_Applications_2_JunoYoon.PDF

<4D F736F F F696E74202D20C1A63235C0E520B3D7C6AEBFF6C5A920C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

ch09

자바 프로그래밍

Java

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

개요

Microsoft PowerPoint - 03-TCP Programming.ppt

FileMaker ODBC and JDBC Guide

5장.key

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

FileMaker ODBC and JDBC Guide

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

API STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Docum

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

04장

교육2 ? 그림

Spring Boot/JDBC JdbcTemplate/CRUD 예제

FileMaker 15 ODBC 및 JDBC 설명서

05-class.key

09-interface.key

Spring Data JPA Many To Many 양방향 관계 예제

mytalk

<4D F736F F F696E74202D20C1A63234C0E520C0D4C3E2B7C228B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

FileMaker ODBC 및 JDBC 가이드

07 자바의 다양한 클래스.key

1

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

Chap7.PDF

* Factory class for query and DML clause creation * tiwe * */ public class JPAQueryFactory implements JPQLQueryFactory private f

untitled

쉽게 풀어쓴 C 프로그래밊

14-Servlet

Cluster management software

JavaGeneralProgramming.PDF

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer....

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

6주차.key

PowerPoint Presentation

PowerPoint 프레젠테이션

JAVA PROGRAMMING 실습 08.다형성

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

JAVA PROGRAMMING 실습 09. 예외처리

PowerPoint 프레젠테이션

歯JavaExceptionHandling.PDF

Microsoft PowerPoint - Java7.pptx

Microsoft PowerPoint - 18-DataSource.ppt

목차 INDEX JSON? - JSON 개요 - JSONObject - JSONArray 서울시공공데이터 API 살펴보기 - 요청인자살펴보기 - Result Code - 출력값 HttpClient - HttpHelper 클래스작성 - JSONParser 클래스작성 공공

목차 BUG DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4

Microsoft PowerPoint - 14주차 강의자료

untitled

3ÆÄÆ®-11

PCServerMgmt7

NoSQL

<4D F736F F F696E74202D20C1A63139C0E520B9E8C4A120B0FCB8AEC0DA28B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

11장.key

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class

10장.key

슬라이드 1

교육자료

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

OOP 소개

4장.문장

Sena Device Server Serial/IP TM Version

PowerPoint Presentation

Java ...

PowerPoint Presentation

파일로입출력하기II - 파일출력클래스중에는데이터를일정한형태로출력하는기능을가지고있다. - PrintWriter와 PrintStream을사용해서원하는형태로출력할수있다. - PrintStream은구버전으로가능하면 PrintWriter 클래스를사용한다. PrintWriter

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

User's Guide Manual

제11장 프로세스와 쓰레드

Spring Boot

No Slide Title

9장.key

105È£4fš

PowerPoint Presentation

Modern Javascript

<4D F736F F F696E74202D20C1A63038C0E520C5ACB7A1BDBABFCD20B0B4C3BC4928B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

Transcription:

<JSTORM> (RMI) - JSTORM http://wwwjstormpekr

(RMI)- Document title: Document file name: Revision number: <10> Issued by: Document Information (RMI)- rmi finaldoc <JSTORM> Issue Date: <2001/08/08 > Status: final Content Information Audience Abstract Reference Benchmark information, RMI (http://developerjavasuncom/developer/techni calarticles/rmi/creatingapps/indexhtml) JSTORM <2/13>

(RMI)- Table of Contents (RMI) 4 RMI 6 6 7 ( Setting up a security manager ) 9 11 RMI 11 class 11 Registry 12 12 13 13 JSTORM <3/13>

(RMI)- RMI(Remote Method Invocation) ( ) RMI RMI, RMI 1,, 2 3 RMI (rmic) 4 class 5 registry 6 7 JDK 11 NT 40 JSTORM <4/13>

(RMI)- JSTORM <5/13>

(RMI)- RMI public URL (URL-based naming scheme) (name registry service) rmi://localhost/lookupserver, RMI TCP/IP (serialization) RMI : // Lookupjava import javarmi*; public interface Lookup extends Remote { public String findinfo( String info) throws RemoteException; JSTORM <6/13>

(RMI)- javarmiremote (empty marker interface) Lookup javarmiremoteexception // LookupServerjava import javaio*; import javautil*; import javarmi*; import javarmiserver*; public class LookupServer extends UnicastRemoteObject implements Lookup { private Vector save = new Vector(); public LookupServer(String db) throws RemoteException { try { FileReader fr = new FileReader(db); BufferedReader br = new BufferedReader(fr); String s = null; while ((s = brreadline())!= null) saveaddelement(s); frclose(); catch (Throwable e) { Systemerrprintln("exception"); Systemexit(1); JSTORM <7/13>

(RMI)- public String findinfo(string info) { if (info == null) return null; info = infotolowercase(); int n = savesize(); for (int i = 0; i < n; i++) { String dbs = (String)saveelementAt(i); if (dbstolowercase()indexof(info)!= -1) return dbs; return null; public static void main(string args[]) { try { RMISecurityManager security = new RMISecurityManager(); SystemsetSecurityManager(security); String db = args[0]; LookupServer server = new LookupServer(db); Namingrebind("LookupServer", server); Systemerrprintln("LookupServer ready"); catch (Throwable e) { Systemerrprintln("exception: " + e); Systemexit(1); findinfo Smith, Joan 204-9987 Jones, Milton 898-9749 Brown, Gertrude 598-1265 JSTORM <8/13>

(RMI)- LookupServer javarmiserverunicastremoteobject Lookup ( Setting up a security manager ) main RMI class, RMI class class class RMI public class LookupServer_Stub extends javarmiserverremotestub implements Lookup, javarmiremote { public class LookupServer_Skel implements javarmiserverskeleton { javap -c LookupServer_Stub JSTORM <9/13>

(RMI)- ( ) TCP/IP // LookupClientjava import javarmi*; import javarmiserver*; public class LookupClient { public static void main(string args[]) { try { RMISecurityManager security = new RMISecurityManager(); SystemsetSecurityManager(security); String host = "localhost"; String server = "LookupServer"; String name = "rmi://" + host + "/" + server; Lookup look_obj = (Lookup)Naminglookup(name); String results = look_objfindinfo(args[0]); if (results == null) Systemerrprintln("** not found **"); else Systemoutprintln(results); catch (Throwable e) { Systemerrprintln("exception: " + e); Systemexit(1); URL registry JSTORM <10/13>

(RMI)- Naminglookup URL rmi://localhost/lookupserver localhost (loopback) ( IP address = 127001 ) lookupjava, LookupServerjava, LookupClientjava javac Lookupjava javac LookupServerjava javac LookupClientjava RMI RMI (rmic) rmic LookupServer LookupServer_Skelclass LookupServer_Stubclass class JSTORM <11/13>

(RMI)- (Lookupclass, LookupClientclass, LookupServer_Stubclass) ( Lookupclass, LookupServerclass, LookupServer_Skelclass LookupServer_Stubclass) public PC C C:\ Registry registry JDK11 registry Start rmiregistry rmiregistry& rmiregistry rmiregistry java LookupServer database_name (Window ) java LookupServer database_name & (Unix ) C:\PHONETXT java LookupServer C:\PHONETXT OS java LookupServer /Phonetxt & & JSTORM <12/13>

(RMI)- java LookupClient smith smith RMI ( ) Java-To-Java RMI JAVA 2 JDK12 deprecate 11( rmic vcombat 12 11 ) rmic JDK12 JDK12 rmic v12 JSTORM <13/13>