fix
This commit is contained in:
@@ -12,7 +12,7 @@ public class Client {
|
||||
|
||||
InitialContext ctx = new InitialContext(props);
|
||||
EncryptorRemote encryptor = (EncryptorRemote) ctx.lookup(
|
||||
"ejb:/IhrProjektname/Encryptor!encryption.EncryptorRemote");
|
||||
"ejb:/demo/Encryptor!encryption.EncryptorRemote");
|
||||
|
||||
String original = "Hallo Welt";
|
||||
String encrypted = encryptor.encrypt(original);
|
||||
|
||||
@@ -12,7 +12,7 @@ public class CounterClient {
|
||||
|
||||
InitialContext ctx = new InitialContext(props);
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user