Skip to content

Commit c3b9f9e

Browse files
Merge branch 'master' of ssh://github.ibm.com/BROWNAL7/cics-java-osgi-ds
2 parents a0b8ab0 + e64993e commit c3b9f9e

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.ear
17+
*.zip
18+
*.tar.gz
19+
*.rar
20+
21+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
22+
hs_err_pid*

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# cics-java-osgi-ds
2+
Demonstration of Declarative Services (DS) in OSGi JVM servers
3+
4+
## Supporting Files
5+
* [com.ibm.cicsdev.osgi.ds_1.0.0](projects/com.ibm.cicsdev.osgi.ds_1.0.0) - OSGi interfaces
6+
* com.ibm.cicsdev.osgi.ds.bundle_1.0.0 - CICS Bundle for the OSGi interfaces
7+
* com.ibm.cicsdev.osgi.ds.app_1.0.0 - CICS application entry point
8+
* com.ibm.cicsdev.osgi.ds.app.bundle_1.0.0 - CICS Bundle containing the application, program and transaction.
9+
* com.ibm.cicsdev.osgi.ds.tsq_1.0.0 - Base TSQ implementation
10+
* com.ibm.cicsdev.osgi.ds.tsq.bundle_1.0.0 - CICS Bundle for the base TSQ implementation
11+
* com.ibm.cicsdev.osgi.ds.tsq_1.0.1 - Improved TSQ implementation
12+
* com.ibm.cicsdev.osgi.ds.tsq.bundle_1.0.1 - CICS Bundle for the improved TSQ implementation
13+
14+
## Usage
15+
1. Deploy all found bundle projects to z/FS
16+
2. Create an OSGi JVM server with the name `DFHOSGI`.
17+
3. Define CICS bundles for these bundle projects. [Table 1](#table-1) shows the mapping of bundle to bundle name used.
18+
4. Install `DS `, `DS.APP ` and `DS.TSQ10`.
19+
5. Run the transaction `DSTS PUT TEST`, this should display the message `Created entry 1`
20+
6. Run the transaction `DSTS GET 1`, this should display the message `TEST`, which confirms the data was stored correctly.
21+
7. Install the bundle `DS.TSQ11`.
22+
8. Disable the bundle `DS.TSQ10`.
23+
9. Run the transaction `DSTS PUT TEST2`, this should display the message: `Created entry 2`.
24+
10. Run the transaction `DSTS GET 2`, this should display the message `TEST2`, which confirms the data was stored correctly by the new implementation.
25+
11. The standard out (STDOUT) file for the JVM server should display messages which indicate that the uncached service (version 1.0.0) was first bound. Then later unbound when the bundle was disabled. Then that the cached service (1.0.1) was bound in it's place.
26+
27+
28+
### Table 1
29+
30+
| CICS Bundle Name | Bundle Project |
31+
| ---------------- | ---------------------------------------- |
32+
| `DS ` | com.ibm.cicsdev.osgi.ds.bundle_1.0.0 |
33+
| `DS.APP ` | com.ibm.cicsdev.osgi.ds.app.bundle_1.0.0 |
34+
| `DS.TSQ10` | com.ibm.cicsdev.osgi.ds.tsq.bundle_1.0.0 |
35+
| `DS.TSQ11` | com.ibm.cicsdev.osgi.ds.tsq.bundle_1.0.1 |
36+

0 commit comments

Comments
 (0)