I forgot to post my client-code to retrieve the addresses:
| protected void GetAddresses() {
| try {
| Context context = ClientTools.getInitialContext();
| Object ref = context.lookup("AddressesBean/remote");
| Addresses addresses =
(Addresses)PortableRemoteObject.narrow(ref,Addresses.class);
| setLstAddresses(addresses.getAllAddresses());
|
| for (int i=0; i<lstAddresses.size(); i++) {
|
System.out.println(((Address)lstAddresses.get(i)).getName1()+String.valueOf(((Address)lstAddresses.get(i)).getId()));
| }
|
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
|
As I manetioned in my previous post, the function getName1() returns the
currect names of the addresses but the getId() always returns 0.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951761#3951761
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951761
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user