Compare commits
2 Commits
bb2d93d3c3
...
4fbd462714
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fbd462714 | |||
| d4502eb762 |
@@ -92,7 +92,7 @@
|
|||||||
packages = with pkgs; let
|
packages = with pkgs; let
|
||||||
fmtNum = strings.fixedWidthNumber 2;
|
fmtNum = strings.fixedWidthNumber 2;
|
||||||
fmtReleaseName = sem: author: chap: "${fmtNum sem} - ${fmtNum chap} - ${author.lastName}, ${author.firstName}.pdf";
|
fmtReleaseName = sem: author: chap: "${fmtNum sem} - ${fmtNum chap} - ${author.lastName}, ${author.firstName}.pdf";
|
||||||
fmtRelease = fmtReleaseName 3 {
|
fmtRelease = fmtReleaseName 4 {
|
||||||
firstName = "Linus";
|
firstName = "Linus";
|
||||||
lastName = "Nagel";
|
lastName = "Nagel";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class Client {
|
|||||||
|
|
||||||
InitialContext ctx = new InitialContext(props);
|
InitialContext ctx = new InitialContext(props);
|
||||||
EncryptorRemote encryptor = (EncryptorRemote) ctx.lookup(
|
EncryptorRemote encryptor = (EncryptorRemote) ctx.lookup(
|
||||||
"ejb:/IhrProjektname/Encryptor!encryption.EncryptorRemote");
|
"ejb:/demo/Encryptor!encryption.EncryptorRemote");
|
||||||
|
|
||||||
String original = "Hallo Welt";
|
String original = "Hallo Welt";
|
||||||
String encrypted = encryptor.encrypt(original);
|
String encrypted = encryptor.encrypt(original);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class CounterClient {
|
|||||||
|
|
||||||
InitialContext ctx = new InitialContext(props);
|
InitialContext ctx = new InitialContext(props);
|
||||||
CounterRemote counter = (CounterRemote) ctx.lookup(
|
CounterRemote counter = (CounterRemote) ctx.lookup(
|
||||||
"ejb:/IhrProjektname/Counter!counter.CounterRemote?stateful");
|
"ejb:/demo/Counter!counter.CounterRemote?stateful");
|
||||||
|
|
||||||
System.out.println(counter.getAndIncrement());
|
System.out.println(counter.getAndIncrement());
|
||||||
System.out.println(counter.getAndIncrement());
|
System.out.println(counter.getAndIncrement());
|
||||||
|
|||||||
Reference in New Issue
Block a user