- 浏览: 32350 次
- 性别:
- 来自: 北京
最新评论
文章列表
1. generate jaxb from wsdl
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
2. implement SkeletonInterface to write the real web servcie class
@WebService(name = "xxx_V1_0", portName = "xxx_SOAP11_Port_HTTP&q ...
to verfiy a sinature Byte
1. You need public key and private key pair
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(1024);
KeyPair keyPair = kpg.genKeyPair();
2. to sign using private key
Signature sig = Signature.getInstance("MD5WithRSA"); ...
add to relevant plugin when building.
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
EAR project
WEB project
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext = new InitialContext(env);
Scheduler scheduler = (Scheduler)ic.loo ...
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/developerworks/websphere/library/techarticles/1109_wallis/1109_wallis.html
http://guide.webspherem ...
1. Defined dependencies
aspectjrt, and aspectjweaver (search maven yourself)
2. setup aspectj-maven-plugin to compile class at <phase>process-classes</phase><goal>compile</goal>
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>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.2</version>
<execut ...
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.1</version>
<executions>
<execution>
<id>jaxb-generate</id>
<goals>
< ...
to configure th plugin, add the following to your build plugin.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>was6-maven-plugin</artifactId>
<version>1.2</version>
<executi ...
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 String outputDirectory; // use this exact name when initialize in configure
...
}
...
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:bindings schemaLocation="file:///@XSD_ROOT_DIR@/../xxxxxx.xsd&quo ...
SCWCD Notes
- 博客分类:
- Front End
response.getPrintWriter() & getOutputStream() can not be called on same instance twice, otherwise throw IllegalStateExceptionsendRedirect() can not be called if response is commited/flushed, otherwise exception will be throwntell browser to get resource from another locationServeletContext -&g ...
SCBCD Notes
- 博客分类:
- EJB
Client can NOT call EJB direct, but through mediator
JMS in case of MDB(Message Driven Bean)
Container provides class implementing bean's interface: component interface & home interface
Instance of class implementing component interface is called EJBObject
client call EJB thr ...
XSL : document vs root
http://www.dpawson.co.uk/xsl/sect2/root.html#d9799e301
Reference
http://www-10.lotus.com/ldd/portalwiki.nsf/dx/Preference_layers_and_portlet_modes_wp7
Will add details later.