Month: January 2009

为什么要用JMS CONNECTOR?如何用?

通过JMS API,可以直接连接JMS Resource Provider,为什么还要通过JCA的方式,搞出一个JMS CONNECTOR?因为:    文档说:JMS CONNECTOR提供一些附加价值: transaction, pooling,signed-on    如果用了JMS CONNECTOR,应该注意啥?   文档说:when using the JMS Connector, the application need not (and in general should not) directly look up or use any RP resources.     

JCA基本概念

干什么用的?      用于连接J2EE COMPOMENT与其他EIS系统(如ERP),使两者之前可以交互。比如, 通过连接器扩展MDB,使它能够处理任何message provider的消息,包括非JMS的message provider 它具体是什么东西?      它是一个Resouce Adapter,即把其他EIS系统适配成可以让J2EE组件直接访问的东西,类似于 JDBC DRIVER 那它怎么玩的?      用 ra.xml, *-ra.xml描述,然后部署到j2ee server里运行(可以作为stand-alone的应用来部署,也可以嵌入到其他EAR中运行)

SQL查询的一点点调优经验

   1.尽量减少表连接,尤其是尽量避免自己跟自己连接    2.用于表连接的字段要做索引,而且两个表的连接字段都要索引。    3.作为查询条件的字段要做索引。比如说,若按“年龄”查找记录,则"出生日期"字段应该建索引

JMS的基本概念

啥是JMS:    A Java API that allows applications to create, send, receive, and read messages using reliable, asynchronous, loosely coupled communication    Defines a common set of interfaces and associated semantics that allow programs written in the Java programming language to communicate with other messaging implementations JMS不作什么     JMS自己不实现消息服务机制.消息服务是由 MOM(messaging-oriented middleware) 提供的     不过,现在很多MOM都采纳了JMS机制并提供了JMS实现,so a …

JMS的基本概念 Read More »