Wildfly 13.0.0Final EJB problem.
verytired Oct 17, 2018 6:17 AMHello.
Im a jnior java developer and i got thrown into my first assignment begining of this year and now I'm working on a migration project. I'm moving code from JBOSS 5.1.0 to a Wildfly 13.0.0Final server.
The Project is a "simple" Enterprise Project with web part, client part and EJB part. IVe managed to get most of it to work now. but im having issues with the persistence? of some data. Ive managed to make a simpler Project that gets the same problem im gettign in the migrated Project.
The Project is basicaly this layout:
Web | Client | EJB |
---|---|---|
HelloCoffee.jsp | Command.java | CoffeeLoverUnitedBean.java |
GiveMeCoffeNow.java | mainCommand.java | |
StartClass.java | TargetableCommand.java | |
CoffeeLoverUnitedRemote.java |
| |
JNDILookupClass.java |
Pardon my bad naming standard and inconsistency.
So starting from the Web. Hello coffee calls on StartClass wich then has an object of GiveMeCoffee.
GiveMeCoffee extends TargetableCommand, wich in its self extends Command wich extends serializable.
GiveMeCoffee has two string members wich I'm setting to null and "". It also has a method thats named performExecute()
TargetableCommand is an abstract class with performExecute() as abstract and execute() as a defined method.
this in it self calls on mainCommands static method executeCommand(TargetableCommand cmd)
inside mainCommand.executeCommand() we make our lookup to the EJB CoffeeLoverUnitedBean wich then performs the GiveMeCoffeeNow.performExecute().
I know its a bit messy. but in it all it all works. the methods gets called. and the GiveMeCoffeeNow.performExecute() Changes the member strings to diffrent values. but after its executed. when we try to do a System.out.prinln on the members, they havnt changed.
I've attached the Project folderers here:
Im using Eclipse Oxygen 4.7.3
JDK 1.8.0_172
Wildfly 13.0.0Final.
Would appreciate all the help I could get. also pardon my narcisistic package names >.<
-
LoveForCoffee.zip 31.3 KB