Admin
:
New post
분류 전..
(119)
공지사항
(3)
주저리..
(25)
Ubuntu
(2)
개발관련
(36)
Web 성능..
(3)
개발노트
(23)
검색
(0)
주말스터디
(7)
Error Note
(3)
개발이야기
(6)
Language
(20)
Flex
(1)
ABAP
(18)
C#
(1)
Java Scr..
(0)
Framework
(5)
Struts2
(4)
Spring
(1)
Pattern
(2)
Core J2E..
(0)
POSA1
(0)
용어사전
(2)
DataBase
(4)
Oracle
(4)
Server
(4)
Was
(4)
Book
(9)
스터디
(0)
미디어로그
이럴수가 우리..
(1)
Chapter 8. S..
Dispatch
Wrapper
신입분들을 위..
Eclipse
STRUTS2
oracle
mylyn
HFSD
db connection
다짐
Head First Software Development
자바
unmarshalling
아놔 당황스러..
Bean이란놈이..
와오 포스팅..
화이팅이에용~..
외장하드도 고..
«
2010/01
»
일
월
화
수
목
금
토
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2010/03
2010/01
2009/12
2009/10
2009/09
+ dazzi님 블로그
+ kenu blog
+ OKJSP: 사는..
+ 루비나라 출입구
+ 온 오프 믹스!..
+ 은정이누나 블롯
+ 자바지기님 블..
+ 정호님 블로그
+ 존경하는회수..
+ Total : 21,227
+ Today : 0
+ Yesterday : 16
티스토리 가입하기!
2010/01
_해당되는 글
3건
2010/01/05
Chapter 8. Spring 원격 서비스 (기반지식 - RMI 예제)
2010/01/04
Dispatch
2010/01/04
Wrapper
Chapter 8. Spring 원격 서비스 (기반지식 - RMI 예제)
+
[Framework/Spring]
| 2010/01/05 13:27
Hello Interface
import java.rmi.Remote; import java.rmi.RemoteException; public interface Hello extends Remote { String sayHello(String name) throws RemoteException; }
HelloImpl
import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; /** * @author one */ public class HelloImpl extends UnicastRemoteObject implements Hello { private static final long serialVersionUID = -108803614752673050L; protected HelloImpl() throws RemoteException { super(); } /* (non-Javadoc) * @see hello.Hello#sayHello(java.lang.String) */ @Override public String sayHello(String name) throws RemoteException { return name + "씨 안녕하세요?"; } }
HelloServer
import java.rmi.Naming; public class HelloServer { public static void main(String args[]){ try { Hello hello = new HelloImpl(); Naming.bind("hello", hello); System.out.println(hello+ " 이 준비되었습니다."); } catch (Exception e) { System.out.println(e); } } }
HelloClient
import java.io.BufferedReader; import java.io.InputStreamReader; import java.rmi.Naming; import java.rmi.RMISecurityManager; public class HelloClient { public static void main(String[] args) { System.setSecurityManager(new RMISecurityManager()); try { Hello hello = (Hello) Naming.lookup("rmi://jjung/hello"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String name = in.readLine(); String message = ""; message = hello.sayHello(name); System.out.println(message); } catch (Exception e) { System.out.println(e); } } }
준비물은 이 정도!
RMI
,
rmi 예제
,
sayHello
0
0
이 글의 관련글(트랙백) 주소 ::
http://hanoori.pe.kr/trackback/139
아이디
비밀번호
홈페이지
비밀글
Dispatch
+
[Pattern/용어사전]
| 2010/01/04 23:49
Dispatch
[dɪ
|
spӕtʃ]
1. (특히 특별한 목적을 위해) 보내다[파견하다]
2. (편지・소포・메시지를)
보내다[발송하다]
3. 신속히 해치우다[처리하다]
0
0
이 글의 관련글(트랙백) 주소 ::
http://hanoori.pe.kr/trackback/138
아이디
비밀번호
홈페이지
비밀글
Wrapper
+
[Pattern/용어사전]
| 2010/01/04 23:44
Wrapper
뜻.
wrap
(
wrapping
)
[rӕp]
1. (포장지 등으로) 싸다, 포장하다
2. (보호 등을 하기
위해) 싸다[둘러싸다]
3. (무엇의 둘레를 단단히) 두르다
0
0
이 글의 관련글(트랙백) 주소 ::
http://hanoori.pe.kr/trackback/137
아이디
비밀번호
홈페이지
비밀글
<<이전
|
1
|
다음>>
별책부록
's Blog is powered by
Daum