OpenSource(181)
-
ChainedTransactionManager를 이용한 글로벌트랜잭션
ChainedTransactionManager는 정말 획기적인 것 같다. 2pc의 글로벌트랜잭션을 하기 위하여 XA datasource를 이용하던지, 분산처리를 할 수 있는 오픈소스를 사용하여야만 하였다. 하지만 stand alone 에서도 또는 tomact에서! 아주 쉽게 2pc 처리를 할 수 가 있다. 즉, 글로벌 트랜잭션으로 묶을 수 가있다. 환경 : spring 3.1 tomcat 6.0 maven project maven을 사용하고 있다면 아래의 jar파일을 우선적으로 가져와야한다. # pom.xml 설정 dependencies에 아래와 같이 선언한다. org.springframework.data spring-data-neo4j-tx 2.1.0.RELEASE cglib cglib org.neo4..
2013.08.22 -
스프링시큐리티 - Filter Chain
2013/08/12 - [OpenSource/Spring Security] - DelegatingFilterProxy 저번 시간에는 DelegatingFilterProxy 요놈에 대해서 알아보았다. 다시금 되짚어보면 이녀석은 web.xml에 filter로써 역할을 한다. acetSpringSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy 즉, 아래의 bean인 filterChainProxy와 연결(link, binding) 되어진다. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 그러므로 filterChainProxy에 대해서 알아보자~~! 우선 Bypassing the Filter Chain 라는게 있다. 우리는 ..
2013.08.17 -
스프링시큐리티 - DelegatingFilterProxy
스프링 시큐리티~~~시작 해보자^-^good~ 오늘 알아 볼 것은 DelegatingFilterProxy 이다. Spring's DelegatingFilterProxy는 link를 제공한다고 한다. web.xml과 application context 간의!! 레퍼런스에 보면 Spring's DelegatingFilterProxy provides the link between web.xml and the application context. 라고 나온다.^^good~~ 즉, 아래의 web.xml과 context-security.xml을 보면!! springSecurityFilterChain 의 DelegatingFilterProxy 요녀석이 context-security.xml의 filterChainPro..
2013.08.12 -
mybatis 3.1 개발자 local용
아쉽게 블로그 포스팅을 거의 못하고 있어서...시간 내서 작성을 하려고 합니다^-^good~ 오늘의 포스팅은! mybatis logger쪽 입니다. 환경 : Spring 3.1 mybatis-3.1.1.jar 서론 : 현재 mybatis에서는 sql문과 parameter 부분이 서로 나뉘어져 logging되고 있습니다. 개발을 할 때 param이 많다면 일일이 매핑 시켜서 오렌지나, sql develop 등등으로 보기에는 너무 힘이 들 것 입니다. 그래서 간단히..mybatis 소스를 조작하여 개발하여 보았습니다만.. 개발자 local용이라는 단점이 있습니다. server용은 아닙니다..ㅋㅋ;; 기본 제공 변경 후 ex) select * from acetDB => select * from acetDB w..
2013.08.09 -
요즘..(now a days..)
Mybatis 소스를 조금 보고 있다.. logging부분인데 요즘 디자인패턴을 공부하고 있는데 Mybatis 소스에 떡~~하니 adapter 패턴과 proxy패턴이 쓰이고 있었다! 방가방가~~^-^/ 목표 : 현재 Mybatis 소스에서는 sql 과 parameter가 함께 나오지 않고 각각 따로따로 나오고 있다. 이것을 개발자 입장에서 봤을 때 참으로 짜증나는 일이 아닐수 없다. 쿼리를 날려보고 싶은데... ? 요녀석을 파라미터로 일일이 노가다작업으로 채워야 할 것이다. Oh my god!~ 그래서 Mybatis 소스를 조금 수정하여 이런 노가다 작업을 없애보기로 했다. 현재는 작업 중이며..어려움 중에 하나가.. sql이 나오는 부분은 ConnectonLogger라는 부분이고 parameter가 나..
2013.08.01 -
SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder
ERROR [STDERR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". ERROR [STDERR] SLF4J: Defaulting to no-operation (NOP) logger implementation ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 라는 오류가 났다..... 환경 : maven 프로젝트 jboss는 jboss5.1 eap log4j+slf4j 를 사용하는 내부..log툴 사용..--;; log4j를 사용한다고 보면 된다.^-^ [as-is 설정] jcl-over-slf4j slf4j-..
2013.07.12