Mittwoch, 30. Januar 2013

WAS choose faces implementation

Because WAS7 ist JEE5 compiant -
and every JEE5 container need to deliver a JSF 1.2 .
WAS7 gives you the option to choose which JSF-Implementation you want to provide for the app.

The following Screenshot tells you how to do this.

By the way - Did you notice that IBM does not offer the option to choose an IBM-Implementation of JSF 1.2
That's the reason why we have to deal with the old JSF 1.1 version in our app.
Migration is very difficult.
>
I read that with JEE7 (comming mai 2013) - JSF 2.2 will be part of the spezifikation.

Dienstag, 29. Januar 2013

OpenJPA DB2 hellojpa

In order to execute the sample app, you need to create the table in your Database.
In our case the user/owner ist called TESTUSR.
The table definition works fine with the sample, and it has soem adtional features.
CREATE TABLE TESTUSR.MESSAGE (
 ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY,
 CREATED DATE DEFAULT CURRENT_DATE NOT NULL,
 MESSAGE VARCHAR(2000) NOT NULL
);
INSERT INTO TESTUSR.MESSAGE (MESSAGE ) VALUES  ( 'hi2' )
don't forget the configuration of your persistence.xml.
In our case we set 4 parameters.
It is also possible to use a datasource in hosted appserverenvironment.
Because we are assuming the simple we choose to set the minimal necessary parameters.

Freitag, 25. Januar 2013

WAS7 enable debugging



In order to connect to a remote java process. The JVM must be started in debugging-mode.

Application servers > server1 > Process definition > Java Virtual Machine











Mittwoch, 9. Januar 2013

Drucken-Link

Um eine HTML-Seite zu drucken kann man einen Link in seine HTML-Seite einfügen.
window.print();
Seite-Drucken

Reparieren eines kaputten WAS7 Profiles

C:\Programme\IBM\SDP75\runtimes\base_v7\bin\ProfileManagement\pmt.bat
Sobald das Tool gestartet ist, kann man sehen, wie das aktuelle Profil heisst.


C:\Programme\IBM\SDP75\runtimes\base_v7\bin>manageprofiles -delete -profileName was70profile1 INSTCONFSUCCESS: Erfolg: Das Profil ist nicht mehr vorhanden.
C:\Programme\IBM\SDP75\runtimes\base_v7\bin>manageprofiles -create -profileName was7profile1 INSTCONFSUCCESS: Erfolg: Das Profil was7profile1 ist jetzt vorhanden. Weitere In formationen zu diesem Profil finden Sie in der Datei "C:\Programme\IBM\SDP75\run times\base_v7\profiles\was7profile1\logs\AboutThisProfile.txt".
Nach der Reparatur des defecten Profiles kann man den Server wieder wie gewohnt starten.
C:\Programme\IBM\SDP75\runtimes\base_v7\bin>startserver server1 ADMU0116I: Tool information is being logged in file C:\Programme\IBM\SDP75\runtimes\base_v7\profiles\was7profile1\logs\s rver1\startServer.log ADMU0128I: Starting tool with the was7profile1 profile ADMU3100I: Reading configuration for server: server1 ADMU3200I: Server launched. Waiting for initialization status. ADMU3000I: Server server1 open for e-business; process id is 1720
http://localhost:9060/ibm/console
  • Port der Administrationskonsole: 9060
  • Sicherer Port der Administrationskonsole: 9043
  • Port für HTTP-Transport: 9080
  • Port für HTTPS-Transport: 9443
  • Bootstrap-Port: 2809
  • SOAP-Connector-Port: 8880