on 11-03-2010 6:01 PM
Hello,
Is there a way to use EJBs directly inside WDJ without Model generation, to avoid producing tonnes of code and reuse the JPA Entities?
Thanks
Sebastian
Edited by: Sebastian Lenk on Nov 3, 2010 7:01 PM
of course, you can.
it's pure java programming.
Context ctx = new InitialContext();
Object o = ctx.lookup(
"sap.com/HelloWorldEAR/REMOTE/HelloWorldBean/com.sap.sdn.ejb.HelloWorldRemote");
HelloWorldRemote helloRef = (HelloWorldRemote)
PortableRemoteObject.narrow(o, HelloWorldRemote.class);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.