Simple as coding to interfaces.
| public class TestEJB {
|
| public static void main(String[] args) {
| TestHelloBean thb = (TestHelloBean)
findJndi(gema/TestHelloBeanImpl/remote);
| if (thb != null)
| System.out.println(thb = + thb.sayHello(Ales));
thanks for the suggestion. I'm still not entirely clear:
My interface is:
| @Remote
| public interface Get {
| public int get(int key);
| }
|
My bean is:
@Stateless
| public class GetBean implements Get {
|
| public int get(int key) {
| return 42+key;
|
manishATjboss wrote : thanks for the suggestion. I'm still not entirely clear:
|
| My interface is:
|
| | @Remote
| | public interface Get {
| | public int get(int key);
| | }
| |
|
| My bean is:
| @Stateless
| | public class GetBean implements Get {
thanks. works just right
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940404#3940404
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940404
---
Using Tomcat but need to