Somebody's Me :: 2008/12/10 12:47
Somebody's Me
by Enrique Iglesias
You, do you remember me?
Like I remember you?
Do you spend your life
Going back in your mind to that time?
Because I, I walk the streets alone
I hate being on my own
And everyone can see that I really fell
And I'm going through hell
Thinking about you with somebody else
[Chrous]
Somebody wants you
Somebody needs you
Somebody dreams about you every single night
Somebody can't breath without you, it's lonely
Somebody hopes someday you will see
That Somebody's Me [2x]
How, How could we go wrong
It was so good and now it's gone
And I pray at night that our paths will soon cross
And what we had isn't lost
Cause you're always right here in my thoughts
[Chorus]
Somebody wants you
Somebody needs you
Somebody dreams about you every single night
Somebody can't breath without you, it's lonely
Somebody hopes someday you will see
That Somebody's Me [2x]
You'll always be in my life
Even if I'm not in your life
Because you're in my memory
You, will you remember me
And before you set me free
Oh listen please
[Chorus]
Somebody wants you
Somebody needs you
Somebody dreams about you every single night
Somebody can't breath without you, it's lonely
Somebody hopes someday you will see
That Somebody's Me [5x]
more..
Axis2에서 SOAPMonitor 사용하기 :: 2008/12/09 22:48
Axis2에는 Apache의 TCPMon을 애플릿으로 구현한 SOAPMonitor를 통해 웹서비스에서 처리되는 SOAP 요청/응답 메시지를 모니터링할 수 있다. 다음과 같은 절차로 설치한다.
1. Axis2 웹어플리케이션의 WEB-INF/conf에 있는 axis2.xml에 다음과 같은 라인을 포함해서 SOAPMonitor 모듈을 포함시킨다.
<module ref="soapmonitor"/> |
2. axis2.xml에 soapmonitor-1.x.mar에서 참조되는 'soapmonitorPhase'에 대한 Phase 순서를 정의를 한다. 최신버전의 Axis2에는 이 설정이 기본으로 되어 있다.
<phaseOrder type="inflow">
<!-- System pre defined phases -->
<phase name="TransportIn"/>
<phase name="PreDispatch"/>
<phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
<handler name="AddressingBasedDispatcher"
class="org.apache.axis2.engine.AddressingBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="RequestURIBasedDispatcher"
class="org.apache.axis2.engine.RequestURIBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="SOAPActionBasedDispatcher"
class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="SOAPMessageBodyBasedDispatcher"
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
<order phase="Dispatch"/>
</handler>
<handler name="InstanceDispatcher"
class="org.apache.axis2.engine.InstanceDispatcher">
<order phase="PostDispatch"/>
</handler>
</phase>
<!-- System pre defined phases -->
<!-- After Postdispatch phase module author or or service author
can add any phase he want -->
<phase name="userphase1"/>
<phase name="soapmonitorPhase"/>
</phaseOrder>
<phaseOrder type="outflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="soapmonitorPhase"/>
<!-- system predefined phase -->
<!-- these phase will run irrespective of the service -->
<phase name="PolicyDetermination"/>
<phase name="MessageOut"/>
</phaseOrder>
<phaseOrder type="INfaultflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="soapmonitorPhase"/>
</phaseOrder>
<phaseOrder type="Outfaultflow">
<!-- user can add his own phases to this area -->
<phase name="userphase1"/>
<phase name="soapmonitorPhase"/>
<phase name="PolicyDetermination"/>
<phase name="MessageOut"/>
</phaseOrder> |
3. web.xml에 다음과 같은 서블릿 설정을 추가해 준다.
<servlet>
<servlet-name>SOAPMonitorService</servlet-name>
<display-name>SOAPMonitorService</display-name>
<servlet-class>
org.apache.axis2.soapmonitor.servlet.SOAPMonitorService
</servlet-class>
<init-param>
<param-name>SOAPMonitorPort</param-name>
<param-value>5001</param-value>
</init-param>
<load-on-startup>100</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SOAPMonitorService</servlet-name>
<url-pattern>/SOAPMonitor</url-pattern>
</servlet-mapping>
|
4. WEB-INF/lib에 있는 soapmonitor-1.x.jar 파일을 풀어 그 중에 SOAPMonitorApplet*.class 클래스들을 모두 웹어플리케이션 ROOT 디렉토리에 복사한다.
SOAPMonitorApplet$SOAPMonitorData.class SOAPMonitorApplet$SOAPMonitorFilter.class SOAPMonitorApplet$SOAPMonitorPage.class SOAPMonitorApplet$SOAPMonitorTableModel.class SOAPMonitorApplet$SOAPMonitorTextArea.class SOAPMonitorApplet$ServiceFilterPanel.class SOAPMonitorApplet.class |
5. 브라우저로 다음과 같은 주소에 접근하여 모니터링한다.
http[s]://host[:port][/webapp]/SOAPMonitor (e.g. http://localhost:8080/axis2/SOAPMonitor)

Axis2 웹로직 8.1 서버에 배포하기 :: 2008/11/20 20:21
Axis2 웹어플리케이션의 WEB-INF에 weblogic.xml을 추가하고, 다음과 같은 내용을 포함해 준다.
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
Cron Job 설정 표현식 :: 2008/10/24 14:29
스프링에서 Quartz를 사용하여 스케쥴링을 할 때 CronTriggerBean을 사용하여 설정할 경우 cronExpression 설정에 대한 예이다.
<bean id="exampleCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail"> <ref bean="exampleJob" /> </property> <property name="cronExpression"> <value>0 59 23 * * ?</value> </property> </bean> |
1 Seconds (0-59)
2 Minutes (0-59)
3 Hours (0-23)
4 Day of Month (1-31)
5 Month (1-12 or JAN-DEC)
6 Day of Week (1-7 or SUN-SAT)
7 Year (1970-2099) <-- 생략 가능
.svn 폴더 빠르게 삭제하기 :: 2008/09/28 17:52
윈도우에서 아래와 같은 내용을 가진 bat/cmd 파일을 만들어 해당 폴더에서 실행한다.
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( rd /s /q "%%i" )
유닉스에서는 아래와 같은 명령을 해당 폴더에서 실행한다.
find . -type d -name '.svn' -print0 | xargs -0 rm -rdf

