- 博客(33)
- 资源 (2)
- 收藏
- 关注
原创 pax wicket下手工mount page
<!-- While mountings are done automatically with the PaxWicketMountPoint annotation a service needs to be exported if you like to do this manually -->
2014-09-15 23:00:31
716
原创 wicket 循环访问子组件
@Override protected void onInitialize() { super.onInitialize(); visitChildren(new IVisitor() { @Override public void component(Component component, IVisit a
2014-08-13 09:50:10
738
原创 自动运行war的plugin
org.mortbay.jetty jetty-maven-plugin 8.1.15.v20140411 /${project.build.finalName}
2014-08-01 19:47:21
829
转载 get the base application URL?
Url relative = Url.parse(getRequest().getContextPath()); String full = getRequestCycle().getUrlRenderer().renderFullUrl(relative);
2014-08-01 12:35:00
532
原创 wicket forward a url
@override public onSubmit() { String url = "/s/koolkat.do"; //some url within the same web-context getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); }
2014-07-23 16:12:56
582
转载 jira修改日期格式
修改如下:jira.lf.date.time = HH:mmjira.lf.date.day = yyyy-MM-dd HH:mmjira.lf.date.complete = yyyy-MM-dd HH:mmjira.lf.date.dmy = yyyy-MM-dd(以上默认值可以在web管理页面覆盖)jira.date.picker.java.forma
2014-07-22 09:17:46
2801
原创 OSGI下的SerializeUtil,解决ClassNotFoundException
原文参考http://stackoverflow.com/questions/13861342/how-do-you-deserialize-an-object-from-bytes-in-osgi
2014-07-06 17:17:51
925
原创 osgi 内嵌 jar包
#-----------------------------------------------------------------# Use this file to add customized Bnd instructions for the bundle#----------------------------------------------------------------
2014-05-08 02:43:56
873
原创 pax wicket下的shiro集成
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> <bean id="webSecurityMan
2014-04-30 22:02:58
708
转载 CouchDB filtered replication
One of the greatest features of CouchDB is its replication which allows for great distributed computing. It reminds me when in 1999 I met Erlang language for the first time (Working for a Telco). Erla
2014-04-15 16:23:11
1738
原创 using-couchdb-with-java-and-domain
This is a simple application using CouchDB in a Java program. I'm using the LightCouch JAR downloaded from www.lightcouch.org; the current version was 0.0.4 when I downloaded it. This version of my
2014-04-01 22:27:11
745
转载 禁止wicket的序列化
wicket的序列化可以通过以下代码禁止:public class WicketWebApplication extends WebApplication { @Override public Classextends Page> getHomePage() { return CqlCommanderPage.class; }
2014-03-26 09:30:42
608
原创 openjpa2.3.0在karaf3.0.0下的feature
karaf3.0.0内置了openjpa 2.3.0的features,但这个feature安装后,会报Bundle sys.impl is waiting for dependencies [(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=ariestrader-cm))(objectClass=javax.persist
2014-01-16 11:37:56
1023
转载 karaf 3.0.0新特征
Apache Karaf 3.0.0 is now mostly ready (I’m just polishing the documentation).In previous post, I introduced new enterprise features like JNDI, JDBC, JMS.As I said, the purpose is to provide a
2014-01-08 12:09:28
1040
原创 使用arquillian作为osgi集成测试工具
arquillian是JBoss公司的集成测试工具,支持ejb,cloud,android等目标容器的测试,本文以http://books.sonatype.com/mcookbook/reference/osgi-sect-starting-osgi-container.html为基础,演示了在osgi环境下,如何进行集成测试。 ../poms/compiled/
2013-12-25 13:52:46
907
原创 wildfly beta1 oracle driver install
参考 点击打开链接最后形成xml如下 jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 h2 sa
2013-11-05 10:37:28
685
原创 Osgi环境下解决ClassNotFoundException
最近一个项目在使用mina传输数据的时候,osgi客户端总是报错,ClassNotFoundException,参考下面的文档:http://kangzye.blog.163.com/blog/static/3681922320105130314194/最后解决了问题,代码如下:
2013-10-29 15:55:43
2345
原创 解决Karaf控制台dev:watch失效的问题
在实际的开发过程中,经常会不断的重复着发布,重启服务等使人非常烦躁的问题,在Karaf环境下,可以轻松的避免这个问题了。那就是dev:watch命令,通过输入dev:watch 【BundleID】,就可以轻松的监控你安装的bundle了。这个需要说明的就是,只能监控snapshot版本。官方命令参考下载karaf的2.3.3,在console下输入mvn:com.liming.platf
2013-10-25 09:56:59
1081
原创 自动发布bundle jar文件到karaf的deploy目录
下面的plugin利用了ant功能,可以自动发布bundle jar文件到karaf的deploy目录下, org.apache.maven.plugins maven-antrun-plugin 1.7
2013-09-14 11:52:18
2369
原创 karaf中添加features.xml文件
1.在resources目录下增加features/features.xml文件<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio
2013-09-14 11:51:01
3801
原创 发布karaf的features
Karaf的features是其本身的一大亮点,通过features可以完成某个功能相关bundle的安装和卸载,极大的方便了对bundle的管理。Karaf的最新版本是2.3.2,通过features:install 命令,安装的features都是在data目录下,这个目录你可以整个的清空,就可以恢复karaf的最初状态。如果我们在开发过程中,打算把你弄好的环境发布出去,该如何完成呢?
2013-09-14 11:11:05
7961
原创 activiti 通过blueprint在OSGI环境中的部署
Activiti本身支持在OSGI环境中部署,可以通过下面文件启动工作流引擎。 --> <bean id="processEngineFactory" class="org.activiti.osgi.blueprint.ProcessEngi
2013-08-01 12:38:37
2175
原创 cxf-rs在单独felix或equinox中的部署
先讲一下我是如何一步一步加载cxf-rs的包的,过程比较坎坷啊。首先,下载最新的karaf,apache-karaf-2.3.2,解包后,运行,在console输入features:addurl http://repo1.maven.org/maven2/org/apache/cxf/karaf/apache-cxf/2.7.5/apache-cxf-2.7.5-features.xml,然后
2013-07-23 11:30:41
1578
原创 JRebel 在OSGI环境中的使用
1.安装JRebel破解版2.在IDEA中安装JRebel Plugin3.在POM中配置JRebel的启动 org.ops4j maven-pax-plugin 1.5 <!--
2013-07-17 12:14:52
1058
转载 Java虚拟机类加载顺序
Java虚拟机类加载顺序关键字: 虚拟机 引导当JVM(Java虚拟机)启动时,会形成由三个类加载器组成的初始类加载器层次结构: bootstrap classloader | extension classloader | system classloader bootstrap classloader -引导(也称为原始)类加载器
2013-07-16 10:47:43
638
原创 eclipse 下equinox web 运行环境的包配置列表
id State Bundle0 ACTIVE org.eclipse.osgi_3.8.2.v20130124-1349441 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120912-1305482 ACTIVE javax.servlet_3.0.0.v201112011016
2013-07-11 15:52:51
1199
原创 OSGI读取配置文件的方法
import com.liming.tp.framework.util.PropertiesConfiguration;import net.sf.ehcache.Cache;import net.sf.ehcache.CacheManager;import net.sf.ehcache.config.CacheConfiguration;import org.apache.log4j.L
2013-06-27 00:10:48
4145
原创 OSGI环境下建立资源bundle
利用pax-web提供的功能,资源文件在OSGI环境下可以自动完成注册,可是我们如何建立一个资源bundle,把相关的资源文件共享给其他的Bundle使用呢,其实很简单的,我花了大概2个小时的时间尝试,终于有了结果。BundleA 作为资源包,osgi.bnd文件如下:-wab:src/main/webappWeb-ContextPath: /test/demoBundleB
2013-06-25 23:22:45
1317
原创 OSGI web开发环境下实现bundle间的共享session
在web开发过程中,很痛苦的事情就是很多的模块,代码都集中在一个web工程下,我们在osgi环境下,可以把项目分成很多bundle来开发,但是,如果面对web应用,需要面对的就是如何在各个bundle之间共享session。我们的项目是利用pax-web工具进行开发的,据官网声称,4.0.0将推出共享session机制。今天想做一个测试,尝试解决一下这个问题,看现有的pax-web是否支持。
2013-06-25 22:54:52
3148
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人