[스크랩] FDS2 & 톰캣4.1.34 설치

[펌 :http://blog.naver.com/ueureka?Redirect=Log&logNo=30013559326]

1
. Flex Data Services J2EE Web Application 설치



2.  HTTP,AMP,RTMP 채널사용.


    named http,리모트서비스,메세지서비스,데이타서비스를 사용하기


    MessageBroker에러 출력


 



2-1. http://java.sun.com/products/JavaManagement/download.html


JMX Remote API 1.0.1_03 Reference Implementation(JSR 3)


JMX 1.2.1 Reference Implementation(JSR 160)


        다운!!



2-2. j2sdk폴더\jre\lib\ext\  jar파일 복사!



2-3. 테스트


   local/WEB-INF/flex/service-config.xml 명시된 채널을 호출시 에러메세지가 출력되지 않으면


   완료!



 ===================service-config.xml ======================


…..


……


<channel-definition id=”test-amf-channel” class=”mx.messaging.channels.AMFChannel”>


<endpoint uri=”http://000.000.000.000:0000/flex/messagebroker/amf” class=”flex.messaging.endpoints.AMFEndpoint”/>


<properties>


<polling-enabled>false</polling-enabled>


</properties>


</channel-definition>





===========================================================


http://000.000.000.000:0000/flex/messagebroker/amf호출




3. [==>FDS2 DataService 톰캣에서 사용하기 위해선 반드시 거쳐야하는 과정]


   Unable to access UserTransaction in DataService” Error      .



  [참고] http://www.adobe.com/go/6b82874f



3-1. JTOM 다운로드 ( http://jotm.objectweb.org/)



  • Tomcat 4.1.x, Tomcat 5.0.x and Tomcat 5.5.x
  • JOTM 2.0.x


  [참고] http://static.raibledesigns.com/downloads/howto-tomcat-jotm.html



3-2.아래의 jar 파일을 톰캣 (tomcat-root/common/lib) 으로 복사해 준다.



  • jotm.jar
  • jotm_jrmp_stubs.jar
  • ow_carol.jar
  • jta-spec1_0_1.jar
  • jts1_0.jar
  • objectweb-datasource.jar
  • xapool.jar
  • howl.jar
  • commons-cli-1.0.jar
  • connector-1_5.jar


3-3.tomcat-root/conf/server.xml 내용추가후 톰캣 재실행!


  


   =================추가내용====================================


<Context path=”/웹어프리케이션루트명” docBase=”웹어플리케이션루트명” debug=”0″
reloadable=”true” crossContext=”true”>


<!– Resource configuration for UserTransaction
use JOTM
–>
<Resource name=”UserTransaction” auth=”Container”
type=”javax.transaction.UserTransaction”/>
<ResourceParams name=”UserTransaction”>
<parameter>
<name>factory</name>
<value>org.objectweb.jotm.UserTransactionFactory</value>
</parameter>
<parameter>
<name>jotm.timeout</name>
<value>60</value>
</parameter>
</ResourceParams>



</Context>


==============================================================



3-4.설치 테스트



===================테스트파일 test.jsp =============================


<%@ page import=”javax.naming.*,javax.transaction.*” %><%
Context ctx = new InitialContext();
UserTransaction tx = (UserTransaction)ctx.lookup(“java:comp/UserTransaction”);
tx.begin();
tx.commit();
%>
Success


================================================================


   Success”  ==>문장 출력시 설치 완료




4.java.lang.OutOfMemoryError 처리를 위한 톰캣배치파일 수정



4-1. 톰캣에서 자바 힙메모리를 증가시켜준다.  ==>-Xms256M -Xmx512M



4-2. 톰캣4.1.34기준


        톰캣루트\bin\catalina.bat –>내용수정



==========================catalina.bat=========================


……………………..


………………….



rem Execute Java with the applicable properties


if not “%JPDA%” == “” goto doJpda


if not “%SECURITY_POLICY_FILE%” == “” goto doSecurity


%_EXECJAVA% -Xms256M -Xmx512M %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=”%JAVA_ENDORSED_DIRS%” -classpath “%CLASSPATH%” -Dcatalina.base=”%CATALINA_BASE%” -Dcatalina.home=”%CATALINA_HOME%” -Djava.io.tmpdir=”%CATALINA_TMPDIR%” %MAINCLASS% %CMD_LINE_ARGS% %ACTION%


goto end


………….


…………….


===============================================================

(주)리화이트 대표 / CEO & Founder

Next ArticleFDS (Flex Data Service) #1