- 浏览: 58050 次
- 性别:
- 来自: 上海
最新评论
-
啸笑天:
谢谢谢谢谢谢谢谢谢谢谢谢谢谢
jboss5.1开发MessageDrivenBean时找不到QueueConnectionFactory -
theabab:
static执行次序问题:先构造函数count1 0-> ...
碰到一个不知道的问题,向大家请教
文章列表
package com.racky.test;
public class Ex {
public static void main(String[] args) {
Fx f=new Fx(5);
}
Ex() {
System.out.println("Ex无参数");
}
Ex(int i) {
System.out.println("Ex,INT型参数");
}
}
class Fx extends Ex{
Fx(){
super();
System.out.p ...
- 2009-08-01 10:20
- 浏览 892
- 评论(0)
第一步,编写HTML页面代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="jslib/verifyxml.js">< ...
- 2009-07-29 21:43
- 浏览 1271
- 评论(0)
面试时经常会被问到抽象类与接口的区别,因此这里总结一下
可以从一下几个方面来考虑抽象类与接口的区别
1,组成方面
抽象类的组成可以有抽象方法,普通方法,常量,变量,构造方法,全局常量
接口的组成可以有 ...
- 2009-07-29 21:14
- 浏览 880
- 评论(0)
现在行业里很多人都在谈论敏捷开发,这是一个热点,很多公司也正在企图把敏捷开发模式做为企业的核心竞争力之一,可见敏捷已经超越了传统的软件开发方法的范畴,变成了具有商业意义的业务模式。
什么叫敏捷 ...
- 2009-07-15 23:21
- 浏览 902
- 评论(0)
EJB3.0中MessageDrivenBean:
1.java消息驱动bean属于Java消息服务(Java Message Service,简称JMS)。
2.JMS是用于访问企业消息系统的开发商中心的API。企业消息系统可以协助应用软件通过网络进行消息交互。
3.JMS的编程过程简单概括为:应用程序A-->(消息)-->Jboss JMS-->(消息)-->应用程序B。应用程序A和应用程序B没有直接的代码关联,两者实现了解耦。消息传递系统的中心就是消息。
消息驱动Bean(MDB)是设计用来专门处理基于消息请求的组件,它和无状态Session Bean一样也 ...
- 2009-07-15 16:38
- 浏览 1199
- 评论(0)
avax.naming.NameNotFoundException: QueueConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.look ...
- 2009-07-15 16:36
- 浏览 2332
- 评论(1)
2009-7-13 12:25:51 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_06\bin;D:\Apache Software Foundation\Apache Tomcat 6. ...
- 2009-07-13 12:37
- 浏览 3481
- 评论(0)
1. keycode 0 =
2. keycode 1 =
3. keycode 2 =
4. keycode 3 =
5. keycode 4 =
6. keycode 5 =
7. keycode 6 =
8. keycode 7 =
9. keycode 8 = BackSpace BackSpace
10. keycode 9 = Tab Tab
11. keycode 10 =
12. keycode 11 =
13. keycode 12 = Clear
14 ...
- 2009-06-30 22:46
- 浏览 1448
- 评论(0)
动态查询就是查询条件不确定的查询,或者说查询条件是根据用户传入的某些参数来生成的,在查询之前就已经生成了查询条件,hibernate中的查询条件一般都需要在取得session后才构造,而hibernate动态查询在取得session之前就已经构造好了查询条件,只是将查询条件作为参数传入到查询方法中,因此也叫离线查询,动态查询的条件可以在web层中就已经构造好了,例如servlet中,构造查询条件的方式如下:
DetachedCriteria dc=DetachedCriteria.forClass(User.class);
String name=request.getParameter(&qu ...
- 2009-06-29 12:54
- 浏览 3225
- 评论(0)
问题的产生:假设一次性需要向数据库中保存一百万条数据1000000,则常规的保存方式为
Session session=null;
Transaction tx=null;
try{
session=this.getHibernateTemplate().getSessionFactory().openSession();
tx=session.beginTransaction();
for(int i=0;i<1000000;i++){
s.save(user);
}
tx.commit();
}finally{
if(session!=null)
sessio ...
- 2009-06-29 11:51
- 浏览 1620
- 评论(0)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.racky.singleton;
/**
*
* @author racky
*/
public class Singleton {
private static Singleton obj=new Singleton();
private static int counter1;
private static int counter2=0 ...
- 2009-06-13 11:20
- 浏览 818
- 评论(1)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.racky.string;
/**
*
* @author Racky
*/
public class StringTest {
public static void main(String args[])
{
String s0="racky";
Strin ...
- 2009-04-24 11:07
- 浏览 729
- 评论(0)
在项目开发中经常会遇到树型结构的数据,如菜单,企业组织等,都是树型结构,这里给出这种数据结构基于关系数据库的一中设计方法,该脚本是MYSQL中的
create table tree(
id int(10) not null auto_increment primary key,-- --主键
parent_id int(10) not null,-- --父接点ID
name varchar(200) not null,-- --接点名称
node_type int(2) not null,-- --接点类型,可用于标 ...
- 2009-04-24 11:05
- 浏览 824
- 评论(0)
首先在项目中导入dwr.jar包和commons-logging.jar包,commons-logging.jar包一定要,否则会报错
然后在web.xml文件中加入以下代码,这里给出两种配置,第一中是服务器推,反转AJAX的配置
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>
org.directwebremoting.servlet.DwrServlet
</servlet-class>
<init-param>
...
- 2009-04-10 16:16
- 浏览 959
- 评论(0)