J2EE
文章平均质量分 83
hitman.banker
Thinking in Architecture and Art
展开
-
bcel Unable to process Jar entry
启动Tomcat 8/9报错:org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class fileJun 03, 2020 3:53:33 PM org.apache.catalina.startup.ContextConfig processAnnotationsJarSEVERE: Unable to process Jar entry [FmsBlendingServiceImpl.cl原创 2020-06-03 16:16:29 · 345 阅读 · 0 评论 -
How to send Email asynchronously
In our projects, we send message to JMS queue, including mail template and parameters, then MDBs consume the messages in the queue and send the message to the SMTP server through the Mail Session in t原创 2012-01-29 20:26:51 · 614 阅读 · 0 评论 -
How to improve web services performance
1. Caching your web services. If the data of web services does not change frequently, properly caching could boost the performance. WebSphere Process Server provides the caching capability thro原创 2012-01-29 20:50:21 · 689 阅读 · 0 评论 -
LESSON: "Could not publish to the server" error when develop Web Services by IBM AST
This morning, I created a new java project and subsequently some POJO classes in the AST 6.1, then I made use of the built-in web service wizard to create services, unfortunately, I always encountered原创 2012-01-29 20:42:28 · 1608 阅读 · 0 评论 -
Give JSLint A Warmful Hug
JSLint feels like the Findbugs in JavaScript. Both of them rock anyway! It makes me more comfortable that the integration between IBM AST 6.1 and JSLint 2.02 goes well. I use it as an external too原创 2012-03-08 20:53:34 · 635 阅读 · 0 评论 -
Any Substitute Of Cactus? How To Use Cactus?
Cactus has retired for some reason, however, I haven't found any competing substitute that could finish the same mission better. Inforseeable future, I would choose Cactus anyway for server-side in-co原创 2012-03-11 20:07:51 · 696 阅读 · 0 评论 -
CASE: Nested Transaction is not supported by EJB
In our case, developer tried to call a couple of procedures in an EJB method, no doubt error happened, as multiple/nested transaction is not supported by EJB. In EJB you can only haveFLAT transactio原创 2012-03-11 17:24:27 · 558 阅读 · 0 评论 -
Privilege Management in Web Application
How to manage user's privilege in web applications? In our organization, both J2EE and .NET, we employ the same model.Role is a set of functions, often in form of URLs or Resource plus Operation, UR原创 2012-05-19 20:54:17 · 1008 阅读 · 1 评论 -
X5's Audit Log Architecture in Web Application
Audit log, also called operation log, usually used to record who/when/where/what of user behavior.How to architect the fundation of audit log infrostructure? X5 shows a feasible way.Feature:Base原创 2012-08-14 22:14:28 · 929 阅读 · 0 评论 -
Thinking in Hibernate Configuration Class
As an architect, you might have designed plenty of brand new systems, configuration files are not uncommon in most applications, how to deal with them effectively and elegantly? Which design pattern i原创 2012-09-07 10:52:18 · 470 阅读 · 0 评论 -
JDK Dynamic Proxy and cglib
PART 1 Understand How To Use JDK Dynamic ProxyIf you know it, you have to admit that the JDK Dynamic Proxy is designed elegantly. We can encapsulate the interceptor logic in a class which implements原创 2012-09-11 10:12:15 · 1634 阅读 · 0 评论 -
Binding and Context Concept, from JNDI Tutorial
Awesome material: http://docs.oracle.com/javase/jndi/tutorial/index.htmlThe association of a name with an object is called a binding. For example, a file name is bound to a file.A contex转载 2012-10-10 10:42:58 · 547 阅读 · 0 评论 -
JMX Awesome Materials
1. http://www.ibm.com/developerworks/cn/java/j-lo-jse63/index.html2. JMX in Action原创 2012-10-12 09:43:20 · 383 阅读 · 0 评论 -
Tip: Utilize the properties pane when editing XML in Eclipse
In the properties pane, you could see the available attributes of any given element conveniently:原创 2012-11-01 09:23:07 · 437 阅读 · 0 评论 -
Spring GIT
STEP 0: PrerequisitesInstall and config GIT, register a GITHub account, create a repository. Guide Reference: https://help.github.com/articles/set-up-gitSTEP 1: Access the spring-framework rep原创 2012-10-24 10:09:05 · 1793 阅读 · 0 评论 -
DAO is meaningless now?
The following text comes from Pro Spring 3:Traditionally, in the data access layer, developers will implement data access objects (DAOs) to separate the data access logic from the business logic. Th转载 2012-10-25 16:36:13 · 529 阅读 · 0 评论 -
serialVersionUID
Reference: http://www.blogjava.net/invisibletank/archive/2007/11/15/160684.html转载 2012-11-07 18:00:04 · 349 阅读 · 0 评论 -
Core Mappings in Action-Oriented Web Framework
Action-Oriented Web Framework like Struts 1.x/2.xCore Mappings: URL --> Action --> Result Name --> ResultFirst Mapping: URL to Action, also called Route(Such as Rails)原创 2012-11-06 17:48:59 · 870 阅读 · 0 评论 -
Incredibly Handy: Executes native2ascii automatically in STS's jBoss Tools Properties Editor
My STS 3.1's default properties editor is jBoss Tools Properties Editor, when I was inputing Chinese in an entry, once I punched the ENTER key, surprisingly found that the Chinese characters were conv原创 2012-11-23 10:26:58 · 1286 阅读 · 0 评论 -
Interview Series: How To Implement Singleton In Concurrent Environment?
How To Implement Singleton In Concurrent Environment原创 2012-11-27 12:28:29 · 495 阅读 · 0 评论 -
Interview Series: MyBATIS New Features, Comparing With iBATIS
Reference: http://www.ibm.com/developerworks/cn/opensource/os-cn-mybatis/转载 2012-11-28 10:10:54 · 621 阅读 · 0 评论 -
MANIFEST.MF In Eclipse
Reference: http://blog.csdn.net/linaren/article/details/3980929转载 2012-11-14 18:13:53 · 1363 阅读 · 0 评论 -
Flex Note
Reference: Flex 4 in Action1. Flex Supports Activiti?2. Contenders: SilverLight and JavaFX3. Case: Three-state Check Box4. AJAX Communication LimitsAJAX supports just one thing: text over HT原创 2012-11-29 10:05:45 · 826 阅读 · 0 评论 -
JUnit Rule
Reference: http://blog.csdn.net/nisaijie/article/details/5743126Reference: http://blog.csdn.net/michaellufhl/article/details/5955098转载 2012-12-01 09:40:39 · 399 阅读 · 0 评论 -
Create OSGi Bundle in STS
0. Reference:http://static.springsource.org/osgi/docs/current/reference/html/appendix-archetype.html1. Env ProfileIDE: STS 3.1OS: Ubuntu 12.10JDK: 1.7Maven: 2.2.12. Create New原创 2012-11-16 14:30:29 · 1113 阅读 · 0 评论 -
ThreadLocal
ThreadLocal转载 2012-12-04 11:48:11 · 410 阅读 · 0 评论 -
jUnit Notes
1. java.lang.NoSuchMethodError: org.springframework.beans.BeanUtils.instantiateClassSolution: http://stackoverflow.com/questions/8237181/spring-junit-test-errorBackground: struts-spring-plugin 2.原创 2012-12-05 16:46:11 · 588 阅读 · 0 评论 -
Create struts2-archetype-starter project in STS
Reference1: Reference2: http://weblog4j.com/2011/08/23/creating-a-new-struts2-project-in-eclipse-with-struts2-archetype-starter-using-m2eclipse/Reference3: http://struts.apache.org/2.3.4/docs/stru原创 2012-11-02 22:13:58 · 1356 阅读 · 0 评论 -
STS Note
1. Revamp the spring-framework's version in the POM.xml (Deprecated, this operation would take place automatically once you've saved the pom.xml)IDE: STS 3.0.0 Release. The default spring-framework'原创 2012-10-25 09:32:29 · 596 阅读 · 0 评论 -
Concurrency/Multithreading Note
1. Runnable and CallableRunnable has no return value, whereas Callable can return some result.2. Struts and Concurrency/Multithreading3. Spring and Concurrency/MultithreadingReference:原创 2012-12-06 16:43:58 · 889 阅读 · 0 评论 -
Source Taste: Spring DefaultListableBeanFactory
DefaultListableBeanFactory原创 2012-12-08 10:27:02 · 801 阅读 · 0 评论 -
Source Taste: Java ThreadLocal
ThreadLocal原创 2012-12-09 16:24:28 · 541 阅读 · 0 评论 -
Source Taste: Struts 2 ActionContext
PART 1:/** * The ActionContext is the context in which an {@link Action} is executed. Each context is basically a * container of objects an action needs for execution like the session, parameter原创 2012-12-09 16:41:08 · 736 阅读 · 0 评论 -
Source Taste: Struts 2 org.apache.struts2.dispatcher.Dispatcher
PART 1:/** * A utility class the actual dispatcher delegates most of its tasks to. Each instance * of the primary dispatcher holds an instance of this dispatcher to be shared for * all requests原创 2012-12-09 21:37:12 · 2894 阅读 · 0 评论 -
Source Taste: Struts 2: ValueStack
Give some thought to this question: from an architect's perspective, why we have to need a stack strucutre in Struts 2? Why not Map instead? I see nothing about this topic in books like Struts 2 in Ac原创 2012-12-10 16:17:08 · 683 阅读 · 0 评论 -
Source Taste: Hibernate/JPA: PersistenceContextType & PersistenceUnitTransactionType
package javax.persistence;/** * Specifies whether a transaction-scoped or extended * persistence context is to be used in {@link PersistenceContext}. * If not specified, a transaction-scoped pers原创 2012-12-24 10:42:13 · 816 阅读 · 0 评论 -
Source Taste: Hibernate/JPA: AbstractEntityManagerImpl
PART 1: static clause(static block)static { entityManagerSpecificProperties.add( AvailableSettings.LOCK_SCOPE ); entityManagerSpecificProperties.add( AvailableSettings.LOCK_TIMEOUT ); enti原创 2012-12-24 11:02:25 · 1008 阅读 · 0 评论 -
Source Taste: Struts 2: com.opensymphony.xwork2.interceptor.ParametersInterceptor
PART 2:Notice that:(1) Coupe of callbacks with 'instanceof''s help take place in the setParameters() method;(2) Utilizing TreeMap via Comparator;(3) for (Map.Entry entry : acceptableParameters原创 2012-12-09 22:24:26 · 6112 阅读 · 0 评论 -
Struts 2 Data Journey
1. Browser: submit html form2. Servlet Container: receive http request and encapsulate a HTTPServletRequest and ServletContext.3. Struts 2 FilterDispatcher/StrutsPrepareAndExecuteFilter: recei原创 2012-12-09 20:54:47 · 660 阅读 · 0 评论 -
Source Taste: Hibernate/JPA: StatefulPersistenceContext
org.hibernate.engine.internal.StatefulPersistenceContextPART 1:原创 2012-12-24 17:55:15 · 1587 阅读 · 1 评论