ITeye博客

adapterofcoms的博客

adapterofcoms · 共 32 篇文章

HTML5 WebSocket and Web Messages Pushlet

jsr-356 Programming Model In general, two different programming models are supported: Annotation-driven. Using annotated POJOs, developers can interact with the WebSocket lifecycle events. Interface-driven. Developers can implement the Endpoint interface and the methods that interact with the lifec…

2015-08-20 07:24 · Java Techs · 评论(0)

Maven Multi-module Inheritance

所有用Maven管理的真实的项目都应该是分模块的,每个模块都对应着一个pom.xml. 1.聚合 POM与继承关系中的父POM的 packaging都是pom 2.聚合模块与继承关系中的父模块除了 POM之外都没有实际的内容。 注:在现有的实际项目中一个 POM既是聚合POM,又是父 POM,这么做主要是为了方便 http://juvenshun.iteye.com/blog/305865 In eclipse Run As -->maven build : deploy -e 在parent pom.xml中 <modules> <module>../childModuleName</mo…

2015-07-02 18:03 · Java Techs · 评论(0)

JAX-WS JWS

e.g: @WebService public interface DemoService @WebService ( targetNamespace ="com.kmerit.kdm.demoservice.service", serviceName ="demoService", endpointInterface ="com.kmerit.kdm.demoservice.service.DemoService") @Service("demoWSService") public class DemoServiceImpl implements DemoService 服务的发布: En…

2015-07-02 17:52 · Java Techs · WebService · 评论(0)

Spring AOP&AutoProxy&Transactions

AOP Advice : action taken by an aspect at a particular join point. Different types of advice include " around ," " before " and " after " advice. (Advice types are discussed below.) Many AOP frameworks, including Spring, model an advice as an interceptor, maintaining a chain of interceptors around …

2015-06-27 19:50 · Java Techs · 评论(0)

Spring IOC BeanFactory ApplicationContext

BeanFactoryPostProcessor [e.g: PropertyPlaceholderConfigurer]可以修改BEAN的配置信息而 BeanPostProcessor 不能 PriorityOrdered BeanPostProcessor Reference : http://jinnianshilongnian.iteye.com 五、五个接口十个扩展点解析 1、InstantiationAwareBeanPostProcessor :实例化Bean后置处理器(继承BeanPostProcessor) postProcessBeforeInstantiation :在…

2015-06-27 19:47 · Java Techs · 评论(0)

Eclipse&Maven&Nexus

Nexus2: nexus\bin\jsw\windows-x86-64\install-nexus #install it to Wndows Service. nexus3 oss: https://www.sonatype.com/download-oss-sonatype http://blog.csdn.net/rekadowney/article/details/52492587 http://blog.csdn.net/qq250782929/article/details/51605965 nexus-default.properties nexus /install /un…

2015-06-26 22:34 · Java Techs · 评论(0)

JAXB JAXP Miscellaneous

schemegen xjc C:\jdk1.8.0_25\bin\java -Dfile.encoding=UTF-8 -cp C:\jdk1.8.0_25\lib\tools.jar com.sun.tools.internal.xjc.Driver -d . -p com.*.smodel *.xsd C:\jdk1.8.0_25\bin\xjc -encoding UTF-8 -d . -p com.*.smodel *.xsd marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");// //编码格式 marshaller.…

2015-03-07 21:12 · Java Techs · 评论(0)

ThreadLocal&WeakReference

ThreadLocal ThreadLocalMap.Entry extends WeakReference<ThreadLocal<T>> 但是T: referent 不是 WeakReference, ThreadLocal.set-->ThreadLocalMap.set new Entry -->rehash--> expungeStaleEntries () /***** Expunge all stale entries in the table. *****/ 强引用(StrongReference) 软引用(SoftReference) 弱引用(WeakReference)[…

2015-02-26 14:05 · Java Techs · 评论(0)

Spring Framework Miscellaneous

--------------------------------------------------------------------------------------- After ApplicationContext standard initialization. All regular bean definitions will have been loaded, but no beans will have been instantiated yet. BeanDefinitionRegistryPostProcessor .postProcessBeanDefinitionR…

2014-12-16 11:09 · Java Techs · 评论(0)

Quartz Scheduler JDBC JobStore Clustering

#org.quartz.jobStore.isClustered: true #org.quartz.jobStore.clusterCheckinInterval: 15000 http://www.quartz-scheduler.org/documentation/quartz-2.2.x/configuration/ConfigJDBCJobStoreClustering

2014-08-20 09:43 · Java Techs · 评论(0)

Java Mail Internals

Java EE 7 Technologies http://www.oracle.com/technetwork/java/javaee/tech/index.html http://www.oracle.com/technetwork/java/javamail/index.html https://maven.java.net/content/repositories/snapshots/javax/mail/javax.mail-api/1.5.3-SNAPSHOT/ Session session = Session.getInstance (props, new Authentic…

2014-08-05 17:07 · Java Techs · 评论(0)

ActiveMQ-Client[JMS] Runtime

activemq-client: org.apache.activemq.transport.tcp.TcpTransport doConsume()-->transportListener.onCommand(command); org.apache.activemq.ActiveMQConnection implements Connection, TopicConnection, QueueConnection,TransportListener...... new ActiveMQConnection()-->this.transport.setTransportListener(t…

2014-07-27 13:04 · Java Techs · 评论(0)

Mybatis-Spring Interactions

Spring side: DataSourceUtils ->getConnection( dataSource )-> TransactionSynchronizationManager .getResource( dataSource ) SpringManagedTransaction ->getConnection()->this.connection = DataSourceUtils .getConnection(this.dataSource); SqlSessionFactoryBean : buildSqlSessionFactory(): this.transaction…

2014-07-27 12:55 · Java Techs · 评论(0)

CXF in Eclipse JEE

Windows--->Preferences-->Web Service-->CXF 2.x Preferences add CXF runtime Endpoint Config-->Use CXF Servlet Windows--->Preferences-->Server--> add new tomcat7 runtime environments Windows--->Preferences-->Web Service-->Server and Runtime--> tomcat7 and CXF 2.x Create web--->Dynamic Web Project Cop…

2014-04-23 07:02 · WebService · 评论(0)

java深度 GC

java深度 GC jvm reduceinitialcardmarks YoungGen OldGen card-marking performance optimization -XX:-ReduceInitialCardMarks http://bugs.sun.com/view_bug.do?bug_id=6896647 6896647 : card marks can be deferred too long jstat -gcutil pid upgrade your jdk to hs17. hotspot.

2013-05-16 22:28 · Java Techs · 评论(0)