Sign inSign up

cbwstar/wildfly-was1

By cbwstar

•Updated over 2 years ago

wildfly was1

Image
0

126

cbwstar/wildfly-was1 repository overview

  • 도커 네트워크 생성 */

docker network create --subnet 10.10.0.0/24 --gateway 10.10.0.1 net-cbw

/* wildfly was1 실행 */

docker run -d --name wildfly24.0.1-1 -p 8088:8088 -p 9990:9998 -p 2229:22 -it --privileged=true --hostname wildfly1 --restart no --net net-cbw --ip 10.10.0.31 -v /app/wildfly/was:/app/wildfly/was cbwstar/wildfly-was1:24.0.1 /sbin/init

/* vi session.jsp */

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*" %> <%@ page import="java.net.InetAddress" %>

SessionTest1 <% String color = ""; Integer count = (Integer)session.getAttribute("count"); if(session.getAttribute("count")==null){ count = new Integer(1); }else{ count = new Integer(count.intValue()+1); } %> SessionTest1 <% session.setAttribute("count",count); InetAddress iadr = InetAddress.getLocalHost(); out.println("Connect count : "+count+"
"); out.println("

"); out.println("

⁠Session Information :
"); out.println("HostName : "+iadr.getHostName()+"
"); out.println("Session ID : "+session.getId() + "
"); out.println("Session Is New : "+session.isNew() + "
"); out.println("Session CreationTime : "+new Date(session.getCreationTime()) + "
"); out.println("Session LastAccessedTime : "+new Date(session.getLastAccessedTime()) + "
"); out.println("Session MaxInactiveInterval(s) : "+session.getMaxInactiveInterval() + "
"); %>

/* vi web.xml */

test index.jsp

<error-page>
            <exception-type>java.lang.Throwable</exception-type>
            <location>/common/error.jsp</location>
    </error-page>
    <error-page>
            <error-code>404</error-code>
            <location>/common/error.jsp</location>
    </error-page>
    <error-page>
            <error-code>500</error-code>
            <location>/common/error.jsp</location>
    </error-page>


    <session-config>
    <session-timeout>70</session-timeout>
    <tracking-mode>COOKIE</tracking-mode>
</session-config>

    <!-- session clustering -->

/* vi jboss-web.xml */

/

<replication-config>
    <replication-trigger>SET</replication-trigger>
    <replication-granularity>SESSION</replication-granularity>
            <use-jk>false</use-jk>
</replication-config>

/* vi jboss-deployment-structure.xml */

                    <dependencies>
            <module name="javax.xml.ws.api" />
            <module name="javax.jws.api"/>
        </dependencies>

                     <exclusions>

                            <module name="org.slf4j" />
            <module name="org.slf4j.impl" />
            <module name="org.slf4j.jcl-over-slf4j"/>

                            <module name="org.apache.log4j" />

Tag summary

Content type

Image

Digest

sha256:21f3986ed…

Size

755.1 MB

Last updated

over 2 years ago

docker pull cbwstar/wildfly-was1:24.0.1