jueves, 20 de enero de 2011

static variables java cluster

Actually, that's not entirely true. Static variables are scoped to the class in which they are defined. So, if a class is loaded by more than one classloader within the same JVM (classes are not equal unless they are loaded by the same classloader), then there will be multiple copies of the static variable within the same JVM.

en referència a:

"Actually, that's not entirely true. Static variables are scoped to the class in which they are defined. So, if a class is loaded by more than one classloader within the same JVM (classes are not equal unless they are loaded by the same classloader), then there will be multiple copies of the static variable within the same JVM."
- How are static variables treated with clustering? (Servlets forum at JavaRanch) (visualitza-la a Google Sidewiki)

viernes, 13 de marzo de 2009

instalación cluster en BEA 9.2 MP2

Usar el configuration wizard de BEA





ahora ya tendremos creado un cluster con 2 nodos en una misma máquina física

Vamos a ver la estructura de directorios q nos han creado a
C:\bea\user_projects\domains\domain_cluster

  • Primero se ha de arrancar el administrador del cluster con startWeblogic.cmd
  • Se modifica el fichero bin/startManagedWeblogic.cmd para que recoja el usuario y password del punto 3
if "%1"=="" (
if "%WLS_USER%"=="" (
CALL :usage %0
GOTO :EOF
)
) else (
set WLS_USER=%1
shift
)
if "%1"=="" (
if "%WLS_PW%"=="" (
CALL :usage %0
GOTO :EOF
)
) else (
set WLS_PW=%1
shift
)


  • Despues arrancar los dos nodos, informando donde se encuentra el administrador y usuario y password. Creamos un bat para los nodos con estas instrucciones:
@SETLOCAL
set DOMAIN_HOME=C:\bea\user_projects\domains\treball_domain_cluster
call "%DOMAIN_HOME%\bin\startManagedWebLogic.cmd" server1 127.0.0.1:7001 weblogic weblogic
ENDLOCAL
  • Podemos crear otro bat, para el parado del cluster
taskkill /F /IM java.exe
  • Podemos crar un bat con el borrado de los temporales del cluster (en los 2 nodos)
rd "C:\bea\user_projects\domains\domain_cluster\servers\AdminServer\tmp" /S /Q
rd "C:\bea\user_projects\domains\domain_cluster\servers\server1\tmp" /S /Q
rd "C:\bea\user_projects\domains\domain_cluster\servers\server1\stage" /S /Q
rd "C:\bea\user_projects\domains\domain_cluster\servers\server2\tmp" /S /Q
rd "C:\bea\user_projects\domains\domain_cluster\servers\server2\stage" /S /Q

libreria Java FTPES

Libreria para conexión FTPES desde Java

FTPES http://sourceforge.net/projects/ftp4che

instalación de un servidor FTPES(ftp explicit)

• Install FileZillaServer 0.9.29
• http://wiki.filezilla-project.org/FTPS_using_Explicit_SSL/TLS_howto_%28Server%29

• Poner el server a escuchar en el puerto 22


• Generar un nuevo certificado y marcar las opciones siguientes…..