J2EE
共 13 篇文章
Spring Roo 学习
运行:roo 出现异常: "Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5" 解决办法: Go into your Start Menu and type regedit into the search field. Navigate to the following path HKEY_LOCAL_MACHINE\Software\JavaSoft Right click on…
2015-01-09 10:30 · J2EE
Spring AOP @Transactional
@Transactional Propagation Defines how transactions relate to each other. Common options Required : Code will always run in a transaction. Create a new transaction or reuse one if availble. Requires_new : Code will always run in a new transaction. Suspend current transaction if one exist. Isolation…
2013-02-03 14:16 · J2EE
Spring mvc Session
Using Sessions in Spring-MVC (including "scoped-proxies") On the Spring-MVC video training course , I described three different approaches to handling sessions in Spring. On the video, I mention that there is also a fourth way, but since the course was getting a bit long I said that I would cover t…
2013-01-31 15:41 · J2EE
Log4j
#1.配置根Logger(日志记录的优先级从高到低ERROR,WARN,INFO,DEBUG)++++++++++++++++++++++++++++++ #appenderName就是指定日志信息输出到哪个地方。您可以同时指定多个输出目的地 log4j.rootLogger=INFO, A1 #2.配置日志信息输出目的地Appender+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #Log4j提供的appender有以下几种: #org.apache.log4j.ConsoleAppender(控制台), #org.ap…
2013-01-29 19:08 · J2EE
tomcat+jdk+mysql免安装的整合形式
本文来自CSDN博客,转载请标明出处: http://blog.csdn.net/yangzl0123/archive/2010/03/11/5370282.aspx tomcat+jdk+mysql免安装的整合形式 一: tomcat+jdk 免安装 很久以前就开始用 tomcat 的免安装版(zip 解压版)。直接运行 bin/startup.bat 的方式运行,有一个不好的地方就是注销登录用户程序就退出了。比如 windows 2003 server 版中运行 tomcat 以提供对外服务,很可能管理员启动了 tomcat 后就退出 windows 2003 server。这样 tom…
2011-05-10 09:45 · J2EE · Apache · MySQL · 配置管理 · Tomcat · JDK
JNDI 起源
转自: http://www.ibm.com/developerworks/cn/java/j-jndi/ JNDI 在 J2EE 中的角色 把您从麻烦中解脱 文档选项 <script type="text/javascript"></script><noscript></noscript> <script type="text/javascript"></script><noscript></noscript> 打印本页 将此页作为电子邮件发送 <!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- this content will …
2009-12-31 09:41 · J2EE · 网络应用 · 应用服务器 · EJB · JDBC · 企业应用
EJB2.0 笔记
SessionBean的学习: 用于测试EJB的client代码: package cn.choelea.ejb; import java.util.Properties; import javax.naming.Context; import javax.naming.InitialContext; public class HelloClient { public HelloClient() {} public static void main(String[] args) throws Exception { Properties properties = new Properties…
2009-12-30 17:36 · J2EE · Weblogic · EJB · XML · SUN · Bean
开源收集
BeanShell BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in P…
2009-12-28 11:46 · J2EE · HTML · Java · Perl · Blog · JavaScript
J2EE 相关概念
(大部分来源于学习 《J2EE应用与BEA Weblogic Server》的总结)。 DataSource: 数据源是为了简化获得数据库的连接的过程,使JDBC Connection的一个工厂。 webservice部分 1、WEBSERVICE名词解释。JSWDL开发包的介绍。JAXP、JAXM的解释。SOAP、UDDI,WSDL解释。 Web ServiceWebService是基于网络的、分布式的模块化组件,它执行特定的任务,遵守具体的技术规范,这些规范使得Web Service能与其他兼容的组件进行互操作。 JAXP(Java API forXML Parsing) 定义了在Jav…
2009-12-12 16:40 · J2EE · Weblogic · JDBC
weblogic8.1 JMS 入门 (转载)
一. JMS简介 1. JMS基本概念 JMS(Java Message Service)是访问企业消息系统的标准API,它便于消息系 统中的Java应用程序进行消息交换,并且通过提供标准的产生、发送、接收消息的接口简化企业应用的开发。 2. JMS基本功能 JMS是用于和面向消息的中间件相互通信的应用程序接口。它既支持点对点(point-to-point)的域,又支持发布/订阅(publish/subscribe)类型的域,并且提供对下列类型的支持:经认可的消息传递,事务型消息的传递,一致性消息和具有持久性的订阅者支持。JMS还提供了另一种方式来对您的应用与旧的后台系统相集成。 3. We…
2009-12-05 17:46 · J2EE · 应用服务器 · Weblogic · 企业应用 · JMS · 设计模式
JMS outline
1.JMS JAVA 消息服务(JMS)定义了Java 中访问消息中间件的接口。JMS 只是接口,并没有给予实现,实现JMS 接口的消息中间件称为JMS Provider,iLink实现了JMS接口,用户可以通过使用JMS接口,在iLink中进行JMS编程。 iLink支持JMS1.0.2版本。 2.JMS接口描述 JMS 支持两种消息类型PTP 和Pub/Sub,分别称作:PTP Domain 和Pub/Sub Domain,这两种接口都继承统一的JMS父接口,JMS 主要接口如下所示: MS父接口 PTP Pub/Sub ConnectionFactory QueueConnection…
2009-11-27 13:12 · J2EE · 中间件 · 数据结构 · JMS · 编程