How To Communicate Between Java Applets 자바 애플릿을 사이에 의사 소통하는 방법을
Communication between Java applets has been an interesting topic from the early days of Java. 흥미로운 주제 간의 통신에 자바 애플릿은 자바의 초기부터합니다. There are several esoteric ways to communicate like using Javascript as a bridge. 같은 방법으로 의사 소통에는 여러 비밀로서 자바 스크립트를 사용하여 교량합니다. However we will look into the simplest and most reliable method of intra-applet communication. 그러나 우리는 대부분의 안정적인 방법에 대해 조사하고 내부 - 애플릿을 간단한 의사 소통합니다.
Simple solution to applet communication problem 간단한 솔루션을 애플릿을 소통에 문제가
Use a class with static getters and setters method(s) to pass data around. 단순히 세터 메서드를 사용하는 클래스를 정적 (영어) 데이터를 주변을 통과합니다. Since the applets are loaded in the same JVM, the static methods can be used to share any kind of data between the applets. 애플릿이로드와 같은 jvm 이후의 정적 메소드를 공유할 수있습니다 애플릿을 사이에 어떤 종류의 데이터를합니다.
Another more complex solution is to use the database to communicate data between the applets. 또 다른 더 복잡한 솔루션은 데이터 사이의 커뮤니케이 션을 사용하여 데이터베이스에 애플릿을합니다. This may be useful if the applets are on different machines or different JVM’s as in two application server / tomcat instances. 이 유용할 수있습니다 애플릿을 경우에는 컴퓨터가 서로 다른 2 개의 응용 프로그램으로 또는 다른 jvm의 서버 / tomcat 인스턴스를합니다.
Filed under 밑에 Enterprise Software 엔터 프라이즈 소프트웨어를 , Headline News 헤드 라인 뉴스 , How To 하는 방법을 , J2EE J2 쥶 E , Java Software 자바 소프트웨어 , Javascript 자바 스크립트 , Open Source Software 오픈 소스 소프트웨어 , Programming 프로그래밍 , Tech Note 기술 참고 사항 , Web 웹 , Web Services 웹 서비스 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |





October 22nd, 2007 at 4:12 pm 2007년 10월 22일에서 오후 4시 12분
hi there, 안녕하세요,
what happens if the JVM applet engine uses different classloaders to load the classes ? 서로 다른 경우에는 어떻게됩니까 jvm 애플릿 엔진을 사용합니다 classloaders로 읽어 들일 수있는 수업 이요? there will be 2 different instances of the classes, right ? 2 개의 다른 클래스의 인스턴스에 해당된다, 맞죠?
BR, 브롬,
~A ~ a
October 22nd, 2007 at 11:12 pm 2007년 10월 22일에서 오후 11시 12분
As far as I know both IE & Firefox loads the applets using the same classloader. 둘 다 즉 & firefox 것으로 알고있습니다 애플릿에 사용되는 것과 동일한 클래스를로드합니다.
With different classloaders, yes. 다른 classloaders, 그렇습니다.