`
fishermen
  • 浏览: 374425 次
社区版块
存档分类
最新评论

JavaScript to Java Communication

阅读更多

    对于应用程序,可以监听端口,构造协议,以实现特殊功能。如使用mina,web服务,RMI,自定义等。

 

    现在可以使用javascript,直接import java类,进行设置,这对于非web类应用,有很好的应用:

 

          随时监控关键变量、cache数据等

 

          变量在生产环境中动态更新(以往必须要重新,或构造自定义协议)

 

 

     Jdk6自带,可以直接用js脚本访问之,参考:

 

 

http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html#jsimport

分享到:
评论

相关推荐

    JavaScript Tools Guide CS3

    Adobe CS3 套件相关的Java脚本编程指南。 全英文的哦... =。=! 目录 1 Introduction 2 The ExtendScript Toolkit 3 File System Access 4 User Interface Tools 5 Interapplication Communication with Scripts 6...

    Professional JavaScript for Web Developers

    language to suit specific needs and how to create seamless client-server communication without intermediaries such as Java or hidden frames. In short, you learn how to apply JavaScript solutions to ...

    基于JAVA的BBS论坛的设计与实现.doc

    It makes the communication between people, communication becomes easier, especially in the field of IT, we were only able to communicate well, technology will be promoted step by step. Therefore, how...

    MQTT Essentials - A Lightweight IoT Protocol

    Following the same process, you will develop an iOS app with Swift 3, build a website that uses WebSockets to connect to the MQTT broker, and control home automation devices with HTML5, JavaScript ...

    Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON

    Build applications with the JavaScript and Java Client API for WebSockets and ServerSentEvents Understand Security and Fault tolerance with WebSockets and ServerSentEvents Produce, parse, and ...

    GWT in Action

    Chapter 8 is where you’ll learn how to harness any JavaScript library you may have and want to interact with. The GWT Widget Library includes a GWT widget that wraps the Google Ajax Search ...

    基于Java-Web的智能推荐网络教育平台的设计和实现.docx

    Mainly completed functions The front desk mainly includes functions such as user registration, online communication, online browsing, online downloading and online viewing of video; the main user ...

    Professional Ajax

    Next, the various ways to accomplish client-server communication are discussed, setting the stage for the rest of the book. It is recommended that you read the book straight through, as each ...

    这是一篇有关 在线聊天系统 的系统报告书

    针对以上方案,本系统采用Html、JavaScript等语言开发网站页面,用JSP、Java的技术实现动态设计,采用现在很经典frame框架,用MySQL作为系统数据库。JSP是当前网络编程的主流语言,在现代企事业单位的网络应用程序的...

    python3.6.5参考手册 chm

    The json module: JavaScript Object Notation The plistlib module: A Property-List Parser ctypes Enhancements Improved SSL Support Deprecations and Removals Build and C API Changes Port-Specific ...

    工程硕士学位论文 基于Android+HTML5的移动Web项目高效开发探究

    At present business processes are old and explicit in industrial market of certification and detection filed, as well as users can not have effective and convenient communication with detection ...

    asp.net知识库

    身份证15To18 的算法(C#) 一组 正则表达式 静态构造函数 忽略大小写Replace效率瓶颈IndexOf 随机排列算法 理解C#中的委托[翻译] 利用委托机制处理.NET中的异常 与正则表达式相关的几个小工具 你真的了解.NET中的...

Global site tag (gtag.js) - Google Analytics