<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="http://rss.egloos.com/style/blog.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>Xeraph@NCHOVY</title>
	<link>http://xeraph.egloos.com</link>
	<description>　</description>
	<language>ko</language>
	<pubDate>Sat, 07 Nov 2009 16:07:34 GMT</pubDate>
	<generator>Egloos</generator>
	<image>
		<title>Xeraph@NCHOVY</title>
		<url>http://pds5.egloos.com/logo/200705/18/57/c0025857.jpg</url>
		<link>http://xeraph.egloos.com</link>
		<width>80</width>
		<height>107</height>
		<description>　</description>
	</image>
  	<item>
		<title><![CDATA[ servlet 3.0 final draft ]]> </title>
		<link>http://xeraph.egloos.com/5116693</link>
		<guid>http://xeraph.egloos.com/5116693</guid>
		<description>
			<![CDATA[ 
  <a href="http://pds17.egloos.com/pds/200911/08/57/servlet-3_0-pfd-spec.pdf">servlet-3_0-pfd-spec.pdf</a><div><a href="http://weblogs.java.net/blog/mode/archive/2008/12/servlet_30_from.html" target="_blank">Servlet 3.0 from the source</a></div><div><br />
</div><div>서블릿 어노테이션을 박아서 자동 인식하려고 하다가&nbsp;</div><div>아무래도 만들고 있을 것 같아서 찾다보니 여기까지 -_-;</div><div><br />
</div><div>근데 이런 것까지 신경쓰다 보면 정작 중요한 것 만들 시간이 없을테니</div><div>야매 소리 들어도 별 수 없이 대충 해야겠다.. 쩝..</div><div><br />
</div><div>운 좋으면 나중에 백마 탄 초인이 나타나서 표준에 맞게 다 고쳐주겠지..</div>			 ]]> 
		</description>
		<category>학술</category>

		<comments>http://xeraph.egloos.com/5116693#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:04:03 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ apache felix http의 구성 ]]> </title>
		<link>http://xeraph.egloos.com/5116374</link>
		<guid>http://xeraph.egloos.com/5116374</guid>
		<description>
			<![CDATA[ 
  felix http api 2.0.2 에 기존 OSGi R4 Compendium 스펙의 HttpService 인터페이스를 확장한 ExtHttpService가 있다. 서블릿 스펙의 Filter를 register/unregister 하는 것과 서블릿 unregister하는 메소드를 추가로 정의해 놓았음. 아무래도 OSGi 스펙이 너무 오래 전에 정의되어서 그렇다.<br />
<br />
실제 구현은 felix http base와 felix http jetty를 보면 되는데, base의 경우 URL match 하는 과정을 직접 다 구현해놨다. (Compendium 스펙에 나온대로 구현해야 될테니까..) AbstractActivator는 왜 굳이 한 계층을 더 나눴는지 잘 모르겠고.. 아무튼 AbstractHttpActivator에서 DispatcherServlet과 HttpServiceController를 생성한다는 점을 기억해야 한다. <br />
<br />
HttpServiceController는 register() 메소드에서 HttpService를 서비스하는 HttpServiceFactory를 서비스 레지스트리에 등록한다. HttpServiceFactory는 OSGi ServiceFactory 인터페이스를 구현해서 HttpServiceImpl 생명주기를 관리한다. (unget 할 때 그동안 HttpService에 등록된 서비스와 필터에 대한 모든 참조를 해제함) HttpServiceImpl에서 실제 ExtHttpService 인터페이스를 모두 구현한다. <br />
<br />
HttpServiceController의 register()가 호출되는 시점은 DispatcherServlet이 init() 되는 시점이다. felix http jetty에서 JettyService를 시작하게 되면 Jetty의 Context에 DispatcherServlet이 주입되고 서버가 시작되면서 DispatcherServlet의 init()이 호출되게 된다. 즉, Jetty 웹 서버가 시작됨과 동시에 새로운 HttpService가 OSGi 서비스 레지스트리에 등록되는 것이다.<br />
<br />
felix http jetty의 경우 https 기동에 필요한 인증서 로딩 관련 필수 정보를 제외하고는 설정할 수 있는 여지가 별로 없고 단일 웹 서버만 동작한다는 문제가 있다. (즉 여러 개의 웹 서버가 서로 다른 포트를 열고 동작하는 기능은 지원하지 않는다.)<br />
<br />
가급적 OSGi 스펙을 존중하면서 kraken-http에서 기존에 사용하는 기능을 보존하려고 고민 중.. 빨리 이 부분을 마무리 지어야 예전에 만들었던 xmlrpc 프로토콜도 서블릿으로 연결하고 기존 스톰 센터 백엔드를 크라켄으로 이관할 수 있는데 흠..<br />
<br />
그 외 felix http service { bridge | bundle | proxy | whiteboard } 는 아직 분석 안 됨. bundle은 jetty, bridge, whiteboard의 BundleActivator를 몰아서 start / stop 시키는 CombindActivator 밖에 없고.. whiteboard를 http로 연동할 수 있게 확장한 것으로 보인다.<br />
			 ]]> 
		</description>
		<category>학술</category>

		<comments>http://xeraph.egloos.com/5116374#comments</comments>
		<pubDate>Sat, 07 Nov 2009 08:11:53 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 에혀 ]]> </title>
		<link>http://xeraph.egloos.com/5115229</link>
		<guid>http://xeraph.egloos.com/5115229</guid>
		<description>
			<![CDATA[ 
  어떻게 새로 구축한 장비가 훨씬 문제가 많냐..<div>거의 6년 넘게 굴린 IBM x306은 한 번도 문제 없었는데.</div><div>오늘 중에 스톰 센터 복구할 수 있을지 없을지 모르겠다.</div>			 ]]> 
		</description>
		<category>잡담</category>

		<comments>http://xeraph.egloos.com/5115229#comments</comments>
		<pubDate>Fri, 06 Nov 2009 01:15:45 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 플루 대유행 ]]> </title>
		<link>http://xeraph.egloos.com/5114960</link>
		<guid>http://xeraph.egloos.com/5114960</guid>
		<description>
			<![CDATA[ 
  어제 밤부터 잠도 제대로 못 자고 -_-<div>오늘 정오까지 뻗어있다가 병원에 갔다 왔는데..</div><div>일반 감기약하고 타미플루 섞어서 처방 받았지만 음</div><div><br />
</div><div>주사 맞고 일반 감기약 먹고 나서도 여전히 으슬으슬하고 비리비리하던 것이 -_-</div><div>저녁 때 타미플루 먹고 멀쩡해지는 것으로 봐서는</div><div>역시 신종플루에 걸린 것 같은 느낌?</div><div><br />
</div><div>낮에는 거의 걸어다니기도 힘든 상태였다는..</div><div>고렙이 제일 먼저 맛이 가고 홈형도 맛이 가고..</div><div>나머지 인원들도 상태를 장담할 수 없을듯 (..)</div><div><br />
</div><div><b><span class="Apple-style-span" style="text-decoration: underline;">결론은 플루 때문에 토요일 모임 쉽니다</span></b>..</div>			 ]]> 
		</description>
		<category>잡담</category>

		<comments>http://xeraph.egloos.com/5114960#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:09:29 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ KOSEC ㄱㄱ ]]> </title>
		<link>http://xeraph.egloos.com/5113074</link>
		<guid>http://xeraph.egloos.com/5113074</guid>
		<description>
			<![CDATA[ 
  beistlab -&nbsp;<a title="" href="http://beist.org/new_ver_board/read.html?table=new_freeboard&amp;uid=1662" target="_blank">NO MORE HACKING, BUT GO TO KOSEC NOVEMBER!</a><br />
<br />
<div>POC 못 가니까 이거라도 가야지 (..);;</div><div><br />
</div><div>낼 저녁 때 봐요~~</div>			 ]]> 
		</description>
		<category>잡담</category>

		<comments>http://xeraph.egloos.com/5113074#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:51:04 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ SimpleDateFormat is not Thread-Safe ]]> </title>
		<link>http://xeraph.egloos.com/5112351</link>
		<guid>http://xeraph.egloos.com/5112351</guid>
		<description>
			<![CDATA[ 
  아놔 -_-;;<br />
<br />
당연히 이 정도는 Thread-Safe하게 구현했을 것으로 기대한게 오판이었지..<br />
날짜가 20092009-11-02가 나오길래 대체 이건 어디서 튀어나온 값인지 한참 고민했다.<br />
<br />
<a target="_blank" href="http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html">DateFormat</a><br />
<blockquote>Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.</blockquote><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335">Bug ID: 4228335</a><br />
<a title="" href="http://blogs.atlassian.com/developer/2007/07/dateformat_objects_and_threads.html" target="_blank">DateFormat objects and thread-safety</a><br />
<a target="_blank" href="http://www.codefutures.com/weblog/andygrove/2007/10/simpledateformat-and-thread-safety.html">SimpleDateFormat and Thread Safety</a><br />
<br />
수많은 사람들이 삽질하게 만들고 다들 이렇게 까는데도 불구하고 끝까지 안 고치는건가.. 일단 일일이 다 수정하기 귀찮으니 간단하게 매번 생성하도록 고치고 나중에 병목 될 수 있는 부분만 성능 고려해서 ThreadLocal로 갈아줘야 되겠군 쩝..<br />
			 ]]> 
		</description>
		<category>학술</category>

		<comments>http://xeraph.egloos.com/5112351#comments</comments>
		<pubDate>Mon, 02 Nov 2009 15:16:28 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ snort syslog 로그 샘플 ]]> </title>
		<link>http://xeraph.egloos.com/5112005</link>
		<guid>http://xeraph.egloos.com/5112005</guid>
		<description>
			<![CDATA[ 
  <div>[2009-11-02 17:55:46.953+0900] (/10.10.0.10:514) =&gt; &lt;33&gt;snort[20586]: [1:1000000:0] what the hell {TCP} 10.10.0.10:5432 -&gt; 10.10.0.8:1837</div><div><br />
</div><div>[2009-11-02 17:55:50.918+0900] (/10.10.0.10:514) =&gt; &lt;33&gt;last message repeated 7 times</div><div><br />
</div><div>[2009-11-02 18:08:59.228+0900] (/10.10.0.10:514) =&gt; &lt;129&gt;snort[24858]: [122:17:0] (portscan) UDP Portscan[Priority: 3]: {PROTO:255} 220.45.142.139 -&gt; 10.10.0.10</div><div><br />
</div><div>[2009-11-02 18:13:28.419+0900] (/10.10.0.10:514) =&gt; &lt;129&gt;snort[24858]: [1:486:4] ICMP Destination Unreachable Communication with Destination Host is Administratively Prohibited [Classification: Misc activity] [Priority: 3]: {ICMP} 220.45.142.139 -&gt; 10.10.0.2</div><div><br />
</div><div>감자가 alert_syslog 관련해서 내용 좀 추가할 예정</div><div><br />
</div><div>[A:B:C]에서 A는 GENERATOR ID, B는 SID, C는 REV</div><div><br />
</div><div>앞에&nbsp;[2009-11-02 17:55:46.953+0900] (/10.10.0.10:514) =&gt; &nbsp;부분은&nbsp;</div><div>크라켄 시스로그에서 찍은 부분이고 뒷부분이 실제 로그 데이터</div><div><br />
</div><div>파싱하기 귀찮게 생겼네..</div><br/><br/>tag : <a href="/tag/snort" rel="tag">snort</a>			 ]]> 
		</description>
		<category>NCHOVY</category>
		<category>snort</category>

		<comments>http://xeraph.egloos.com/5112005#comments</comments>
		<pubDate>Mon, 02 Nov 2009 09:09:11 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Kraken 최근 진행 소식 ]]> </title>
		<link>http://xeraph.egloos.com/5110219</link>
		<guid>http://xeraph.egloos.com/5110219</guid>
		<description>
			<![CDATA[ 
  <b>kraken-esm</b> (xeraph)<div>마감 기한이 한 달 남은 상황에서 발등에 불 떨어진 것처럼 만들고 있습니다. 초기 예상과 달리 크라켄 필터는 별로 안 쓰게 되었다는.. 필터 연동 포인트는 있지만 그대로 쓰면 너무 배포나 사용 방식이 복잡해질 듯 해서 단순화 중입니다.&nbsp;</div><div><br />
</div><div><b>kraken-rrd</b> (stania)</div><div>보통 ESM 만들면 DB에 통계 테이블 다 따로 만들고 그래프도 다 따로 만들어 붙이고 노가다인데..&nbsp;RRD를 자바 API로 구축해서 일반화된 시계열 통계/그래프 생성이 가능하게 할 겁니다. 디스크도 덜 먹고 보여주는 것도 빠를테고 쓰기도 편하고..</div><div><br />
</div><div><div><b>kraken-netflow</b> (???)</div><div>아직 누가 할지 못 정한 상태.. 당장은 수집만 가능한 모듈을 만드려고 합니다.</div></div><div><br />
</div><div><b>kraken-pcap + L3/L4/L7 decoders</b> (mindori)</div><div>이제 PCAP 파일 열 수 있고.. TCP/IP 재조립도 되고..&nbsp;지금은 프로토콜별로 디코더 만드는 중입니다.&nbsp;자바로 만들어서 그거 어따 쓰냐고 할 수도 있는데&nbsp;딱히 고성능이 안 필요한 응용에는 다양하게 활용될 수 있습니다.&nbsp;물론 굳이 만드려면 자바 기반으로 IDS도 만들 수 있겠으나 ㅡㅡ;;&nbsp;일단은 PCAP 덤프 해석용입니다.&nbsp;pcapr 사이트처럼 패킷 덤프를 웹에서 보여주는 것도 이걸로 쉽게 될거라는..</div><div><br />
</div><div><b>kraken-dns</b> (mindori)</div><div>unix 계열에서 dig 유틸리티 쓰는 것처럼 DNS 패킷을 마음대로 보내고 받아서 해석 가능합니다.&nbsp;fast flux 모니터링이라든가 여러가지 활용할 수 있겠죠.&nbsp;그런데 다 만들어 놓고 finalizing을 못 해서 여지껏 방치 중 -_-;; kraken-http 등도 비슷한 상황 (..)</div><div><br />
</div><div><br />
</div><div>입에 풀칠해가면서 만드려니 시간이 참.. 많이 필요하네요. ㅎㅎ</div><div>visualization 같은 호사는 언제 부려보나..</div><div>POC는 안 됐고 파도콘 때나 보일 수 있을지 딴걸 발표할지..</div><br/><br/>tag : <a href="/tag/kraken" rel="tag">kraken</a>			 ]]> 
		</description>
		<category>NCHOVY</category>
		<category>kraken</category>

		<comments>http://xeraph.egloos.com/5110219#comments</comments>
		<pubDate>Sat, 31 Oct 2009 06:02:58 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 소년이여 ]]> </title>
		<link>http://xeraph.egloos.com/5108432</link>
		<guid>http://xeraph.egloos.com/5108432</guid>
		<description>
			<![CDATA[ 
  홈형 -&nbsp;<a href="http://lsehoon.egloos.com/4264981" target="_blank">소년이여</a><div><br />
</div><div><span class="Apple-style-span" style="font-family: 굴림, 돋움, sans-serif; line-height: 18px; ">열세살 나이에 와서 쉴틈없이 코딩했어~~&nbsp;</span></div><div><span class="Apple-style-span" style="font-family: 굴림, 돋움, sans-serif; line-height: 18px; ">야간작업이라면 철야작업도 있는법&nbsp;ㅠㅠㅠㅠ</span></div>			 ]]> 
		</description>
		<category>잡담</category>

		<comments>http://xeraph.egloos.com/5108432#comments</comments>
		<pubDate>Thu, 29 Oct 2009 03:17:28 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 지금 이 순간 ]]> </title>
		<link>http://xeraph.egloos.com/5107831</link>
		<guid>http://xeraph.egloos.com/5107831</guid>
		<description>
			<![CDATA[ 
  <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/8jCRYD-7EkQ&amp;hl=ko&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/8jCRYD-7EkQ&amp;hl=ko&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></object><br />
<br />
창준 님이 돈키호테 올리셨길래 나도 하나 올려봄..<br />
조승우가 좀 짱임..			 ]]> 
		</description>
		<category>잡담</category>

		<comments>http://xeraph.egloos.com/5107831#comments</comments>
		<pubDate>Wed, 28 Oct 2009 11:23:02 GMT</pubDate>
		<dc:creator>xeraph</dc:creator>
	</item>
</channel>
</rss>
