自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 资源 (1)
  • 收藏
  • 关注

原创 webservice implementation

1. generate jaxb from wsdl <groupId>org.apache.axis2</groupId><artifactId>axis2-wsdl2code-maven-plugin</artifactId> 2. implement SkeletonInterface to write the real w...

2015-02-12 12:58:58 336

原创 Java Signature

to verfiy a sinature Byte1. You need public key and private key pair KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");kpg.initialize(1024);KeyPair keyPair = kpg.genKeyPair(); 2....

2014-10-31 08:25:03 383

原创 not include maven folder in jar file

add to relevant plugin when building.   <archive> <addMavenDescriptor>false</addMavenDescriptor> </archive>  

2014-10-12 04:32:39 187

原创 websphere create scheduler

 EAR projectWEB project Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFac...

2014-10-10 00:02:05 211

原创 websphere app server vs mq

Here is a good article taking about Websphere SIBus vs websphere MQ- SIBus is an websphere application server integrated messaging system- MQ is seperated message system http://www.ibm.com/d...

2014-10-01 08:14:54 145

原创 How to use AspectJ at pom file

1. Defined dependenciesaspectjrt, and aspectjweaver (search maven yourself) 2. setup aspectj-maven-plugin to compile class at <phase>process-classes</phase><goal>compile</...

2014-09-24 08:44:47 192

原创 jax-ws wsimport generate java from wsdl

working version is as follows as long as you have binding file and wsdl & xsd file ready in the correction folder:<plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <...

2014-09-12 12:56:04 144

原创 Jaxb2 plugin to avoid xmlelementwrapper

<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.8.1</version> <execution

2014-09-12 09:42:09 143

原创 Using was6-maven-plugin to generate ejb stub

to configure th plugin, add the following to your build plugin. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>was6-maven-plugi...

2014-09-12 09:36:27 108

原创 maven generate customised mojo using annotation

1. create your own Mojo java class with annotation@Mojo(name = "sayhi")public class MyMojo extends AbstractMojo{ @Parameter(property="sayhi.location") // seems not working private Strin...

2014-09-12 09:33:18 208

原创 jaxb binding file sample

 TO COMPILE Schema 1. Create JAXB binding file as follows<jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema">  <jxb...

2011-12-01 07:00:21 1265

原创 SCWCD Notes

response.getPrintWriter() & getOutputStream() can not be called on same instance twice, otherwise throw IllegalStateExceptionsendRedirect() can not be called if response is commited/flushed, ot...

2011-10-01 08:11:06 135

原创 SCBCD Notes

 Client can NOT call EJB direct, but through mediatorJMS in case of MDB(Message Driven Bean) Container provides class implementing bean's interface: component interface & home interfac...

2011-10-01 08:08:41 124

原创 XSL Notes

XSL : document vs root http://www.dpawson.co.uk/xsl/sect2/root.html#d9799e301 

2011-08-25 13:43:08 64

原创 Understand PortletPreferences

Referencehttp://www-10.lotus.com/ldd/portalwiki.nsf/dx/Preference_layers_and_portlet_modes_wp7 Will add details later. 

2011-07-15 07:35:03 75

原创 iCal4J tutorial

sessionEvent.getProperties().add(new Summary("xxxx summary)); iCal4J is library to generate/parse Calendar ics file. Its simple to use until you know what to do, the docs is not good at all. ...

2011-07-07 10:22:23 270

原创 Setup secured XML-RPC server

Although its old tech, but just getting an idea how to setup secured server. Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );KeyStore keystore = KeyStore.getInstance( KEYSTOR...

2011-06-02 10:03:57 96

原创 Apache front Tomcat configure for uPortal

To use appache http server in front of tomcat load the setting in a seperated file into httpd.conf under apache http server conf folder.LoadModule proxy_module modules/mod_proxy.soLoadModule pr...

2011-05-18 08:25:15 121

原创 Maven Notes

There is a few different confusing Tag and URL in Maven pom.xm <scm> url points to SVN URL which hold the subversion code you check in/out.<repository> points to library url when po...

2011-05-12 11:16:19 96

原创 jQuery notes

To avoid confliction in portlet environment var yourNS= {};yourNSjQuery = jQuery.noConflict(true);;yourNSjQuery jQuery(function(){    var $ = yourNSjQuery .jQuery;  ..................

2011-03-11 12:30:25 72

原创 Web Service

WSDLJavaMessage  input1...n                     OpteratonMethodMessage outputReturn valueFault MessageExceptionServiceService ClassPortTypePortType Clas...

2010-07-23 07:00:58 395

porltet

DeployMyPortlet.xml<request    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd"    type="update"    create-oids="true"    &g...

2010-03-19 12:56:24 179

JSF Tag

UICommandactionRef="action to be triggered"commandName="used for actionlistener to determined where to go" <ui:Component> insert into component tree, ignore outside content <ui:fr...

2010-03-17 11:41:57 97

原创 SDO

  XML -> SDO Object            ResourceSet resourceSet = new ResourceSetImpl();            resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()                .put(Reso...

2010-02-02 12:28:57 95

原创 JPA Notes 2

When entity got detached when transaction is over, commitedwhen application-managed persistence context is closedstateful bean is removed, its persistence context will be removedclear metho...

2010-01-06 11:40:37 85

原创 JPA Notes

Most of notes here coming from the book [ Apress Pro EJB 3 JPI]  http://developers.sun.com/learning/javaoneonline/2006/coreenterprise/TS-9056.pdf ?  Persistent Unit A set of manag...

2009-12-22 11:30:49 142

JSF Notes

JSF Life Cycle  1. Restore ViewStore everything: component, listener, validator in a FaceContext tree under viewRoot. currentView id is used to mark the current view. If not there, created it ot...

2009-12-06 13:11:32 132

Hibernate Criterial you Must Know

Criteria in Hibernate has been there for a while, this morning it my first time to play with it. Great gain today. List a few key points to remember for all fellows. 1. Key to dynamic search. (of ...

2009-12-05 08:58:24 81

XML Note

1. XML Schema Commentxs: document - can be located anywhere in schemaxs:appinfoxs: name space comment. e.g. <xs:element doc:doc="xxxx" xmlns:doc="xxxxxxxx" >xml comment <!-- ....--&g...

2009-12-02 18:58:50 99

OO Javascript notes

1. a few concepts to rememberExpression: Something which evaluates to a value. Example: 1+2/x (to be executed, return a value).Statement: A line of code which does something. Example: G...

2009-11-19 08:05:48 132

CSS notes

1. div>p 是指: div直接子元素p, child of child is not applicable 2. div+p 是指: 相邻元素。 3. div[attr] {。。。}: div 的 属性 attr存在,就match 定义的css. 4. div[attr="a"], 也可以match 属性的值。 5.a[rel~='friend'], &...

2009-11-09 21:48:59 116

Hibernate Annotation

Embedded Object 1. @embedded + @embeddable2.  inner component doesn have @embedded Tag is considered to be default, and Hibernate will search embeddable object for it. Hibernate mapping 1. O...

2009-09-11 08:22:43 90

Head First PMP Note

7 Integration management process1. Develop project Charter, sponser issue it to the project manager.2. develop priminary scope statement3. develop project management plan4. DIRECT AND manage...

2009-09-08 20:12:31 151

EJB Spec study notes

Business interface1. interfaces are excluded when determine whether bean has more than one interface: Serializable, Externalizable, any interface defined by javax.ejb.*2. Same interface can not be...

2009-09-07 07:33:38 194

Spring concept

Spring IOC container can be accessed via two ways 1. BeanFactory - a simple factory to access bean2. Applicationcontext - it has beanfactory functions + extra: message, internationalize, etc. ...

2009-08-24 19:47:02 283

Hibernate Mapping

3 types of mapping for inheritancemap for each solid subclass (parent class is abstracted), can not support polymophy . e.g. "select from employ" wont retrieve hourly_employee and monthly_employe...

2009-08-24 07:16:24 100

Hibernate cache

evit will remove object from session, and also the children if in the mapping file, defined as "all" or "all-delete-orphan" suggest dont use evit often, as they can not improve performance much....

2009-08-23 20:12:21 88

Hibernate transaction

 (captured from a very good Hibernate Book, copyright belongs to the author) First type lostFirst transaction’s rollback overwrite second transaction’s update on same record Second type lo...

2009-08-20 09:14:01 132

Hibernate tips 2

Formula (from : http://weishuwei.iteye.com/blog/68030)1,formula ="()",里面的是sql语句,字段和表名都应该和数据库相应,而不是字段,若带有参数如cur.id= currencyID,这个currencyID才是对象的东东.2,formula ="( sql )",这个括号不能少,不然会报错,我试了几次,没括号就报错,添上...

2009-08-11 10:32:58 288

原创 Hibernate tips 1

hibernate configureinverse = true : parent side update wont have any result, on the reverse side, the changes will happen in database.Session Lockreattach the detached object...

2009-08-11 10:31:59 116

Design Patterns Elements Of Reusable Object-Oriented Software

Design Patterns_ Elements Of Reusable Object-Oriented Software Gamma.et.al Addison Wesley

2010-04-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除