- 浏览: 545775 次
- 性别:
- 来自: 西安
最新评论
-
panamera:
请问JMS Transport 发布的webservice 是 ...
CXF 提供的Service Transport-JMS Transpor -
jianyi296:
where is attachment.
CXF WebService Dynamic Client -
hj01kkk:
您好,我用jdbc-user-service为什么每次验证时都 ...
SpringSecurity笔记3-Authenticating Users:Authenticaton Strategy -
wufenglin1231:
你好,我在实现Mapping exceptions to re ...
RESTful 异常处理 -
xchd:
[echo] Project: common
[echo ...
Hive安装配置学习笔记
文章列表
0. Pax-Construct安装
下载:http://repo1.maven.org/maven2/org/ops4j/pax/construct/scripts/1.4/scripts-1.4.zip
设置环境变量:Path:C:\Pax-Construct-1.4\bin
使用参考:http://www.ops4j.org/projects/pax/construct/
1. 命令行创建工程目录:
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookb ...
0. 概述
Eclipse 采用Workspace→Project两级的工程组织方式,eclipse会在workspace目录下新建.metadata文件夹,
用于放置各种配置文件。启动Eclipse后,还可以在菜单File→Switch Workspace中切换到不同的Workspace中。
一个Project默认启动时,总会继承它所在的Workspace中的一些设置。Workspace的配置在windows ->
Preferences -> General下。General下的设置和Eclipse中特定的编程语言环境无关,它是Eclip ...
1. Install WMC
1.1 添加依赖:
一个Http Service 实现
,可选在一下服务:
Apache Felix Http Service,Pax Web Service,Equinox Http Service Implementation.
可选依赖:
OSGi Log Service: If installed, the console provides access to the log entries
OSGi Configuration Admin Service and OSGi Metat ...
0. Enterprise OSGi Implement Frameork: Aries
1. Declarative Service
Blue Print, iPOJO, SpringDM
Felix Service Component:http://felix.apache.org/site/apache-felix-service-component-runtime.html
2. Persistent Storage
JNDI,JTA
3. WebService
CXF Distributed OSGI Sub-Project
4. JM ...
1. 理解Felix Gogo Shell Service
Felix提供了一个简单且可扩展的shell服务,允许bundle暴露命令给shell用户。Shell Service 或自动检测bundle
注册的命令,并且通过控制台的方式提供给用户使用。
2. 实现一个Gog Shell服务命令
主要内容:
2.1 Creating a proxy class that defines the commands - one method per command syntax flavor;
2.2 Registering the proxy as ...
1. Features:
1.1 All started bundle contaning hibernate 'annotated pojo's' should
registered an new
'SessionFactory' or be registered in a existing
'SessionFactory' dynamicaly (stopping the
bundle should close the
'sessionFactory').
12 The DAO services should be easily exp ...
三种实现方式,已顾客与房间的关系为例:
0. DB代码:
DROP TABLE IF EXISTS 'Customer';
CREATE TABLE 'Customer' (
'id int
(
11
) NOT NULL auto_increment,
'name' varchar(255
) NOT NULL,
PRIMARY KEY (`id`)) ENGIN ...
1. Set映射
<set name="映射的类的名字例如com.hibernate.Student" table="表名">
<key>
<column name="表中的外键名称"/>
</key>
<element column="你所需要的表中的字段名" type="映射类型"/>
</set>
例如父子 ...
Hibernte中级联操作cascade属性选项:
1. none
:默认值,在保存、更新或删除对象时,忽略其他关联的对象
。
2. save-update
:当通过
Session
的
save()
、
update()
以及
saveOrUpdate()
方法保
存或更新当前对象时,级联保存所有关联的新建的临时对象,并且级联更新所有关联
的游离对象。
3. delete
:当通过
Session
的
delete()
方法删除当前的对象是,级联删除所有关联的 ...
1. 例子:
var
tempStr =
"tempText"
;
tempStr.indexOf("Texxt"); //返回大于0的整数值,若不包含"Text"则返回"-1。
2. indexOf用法:
strObj.indexOf(subString[, startIndex])
JavaScript中indexOf函数方法返回一个整数值,指出 String 对象内子字符串的开始位置。如果没有找到子字符
串, 则返回
-1。如 ...
Java日期格式化
- 博客分类:
- Java/JSP/JSF
1. 简单用法:
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
format.format(new Date());
2. 指定某国家日期格式:
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss",Locale.US);
format.format(new Date());
3. 字符串至日期类型的转换:
S ...
1. Enable Equinox Console
编辑config/org.eclipse.virgo.kernel.userregion.properties文件:
去掉#osgi.console=2401前面的#,其中2401为端口,可更改为任何当前空闲的端口号。
2. 启动Equinox Console
先启动VWS,在另起一cmd窗口,执行命令:telnet localhost 2401
3. 使用Equinox Console
查看全部可用的命令:vsh help
查看某一具体命令的帮助,如查看bundle命令的帮 ...
1. The kernel
是VTS的核心,是VTS的主要组成部分,但不包含对Web应用程序部分的支持。有以下特性:
Deployment of non-Web artifacts, such as OSGi bundles, PARs, plans, and
configuration artifacts.
Local and hosted repositories
Scoping
Hot deployment
User region
Auto-provisioning
System and ...
jBoss下乱码问题:
解决方案1:修改:C:\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\server.xml中:增加:URIEncoding="UTF-8"<!-- A HTTP/1.1 Connector on port 8080--> <Connector port="8088" address="${jboss.bind.address}" maxThreads="250" strategy=&q ...
0. 安装条件:JavaSE1.6以上,需设置JAVA_HOME,Path, ClassPath环境变量;
1. 解压:下载vvirgo-tomcat-server-3.0.0.RELEASE
.zip,解压至C:\virgo-tomcat-server-3.0.0.RELEASE下;
2. 设置环境变量:SERVER_HOME=C:\virgo-tomcat-server-3.0.0.RELEASE
或
VWS_HOME=C:\virgo-tomcat-server-3.0.0.RELEASE
3. 建立 ...