当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 什么时候用EJB ,什么时候不用EJB?参考 Enterpri
 

 

 ·javax.servlet.servlet翻译    »显示摘要«
    摘要: javax/servlet/servlet.html#skip-navbar_top"> overview javax/servlet/package-summary.html">package class javax/servlet/package-tree.html">tree deprecated index help javatm 2 platforment. ed. v1.4 java......
 ·基于tcp/ip的java简单聊天程序    »显示摘要«
    摘要: /*copyright 2005 *make by cat lee *基于tcp/ip的简单聊天程序 *使用方法:先启动server端.然后再启动client端. *程序有很多错误,做得很马虎,本来想把发送文件加上去的.但又要做网络版坦克小战了 *我在java中做不出好像qq那样的发送消息热键,本来打算用keylistener监听f8键来发消息的 *但不知道为什么不行..郁闷. *至于界面,本来......


什么时候用EJB ,什么时候不用EJB?

什么时候用ejb ,什么时候不用ejb?

参考 enterprise javabeans 4 【程序编程相关:一个UDP(多播)局域聊天的简单实现

【推荐阅读:有关JNLP中传SESSIONID为参数

1 when to use ejbsheres a list of situations where ejbs are strong; we havent distinguished between 【扩展信息:使用连接池连接IBM DB2数据库

这篇文章 讲述了何时使用ejb,何时不用ejb,以及用哪些可以替代ejb!

different types of ejbs.

 

single and multisystem business transactions

the ability to maintain transactional integrity for complex business entities is one of

an ejbs key strengths. ejbs arent alone in providing straightforward transactional

control over a single data repository. however, ejbs shine where multiple resources

(relational databases, messaging systems, etc.) are involved because they allow

transactions to spread across as many different resources as you like, so long as the

resources support distributed transactions.

 

distributed functionality

business services often live on a remote server. for example, a business enterprise will

have many different systems, ranging in degrees of inflexibility and entrenchment. one of

these systems may need to access another; ejbs, which are inherently distributed, are

often the simplest way to distribute remote services. ejb also allows you to provide

business services to remote clients more easily than some alternatives. remote access

through components is easier to maintain than direct database access, because the

component code can shield the client from database schema changes.


...   下一页
 ·read appfuse-初始化-2    »显示摘要«
    摘要: 应用程序启动时,调用startuplistener初始化servletcontext环境变量、spring环境变量和取得角色信息后,接着执行usercounterlistener监听器。 ★ usercounterlistener功能:计算使用应用的用户个数和存储用户对象。应用启动使初始化用户数变量counter,并存入servletcontext,利用httpsessionattribute......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE