This commit is contained in:
2026-04-17 00:11:06 +02:00
parent d4502eb762
commit 4fbd462714
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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());