EJB Jbuilder calling remote methods
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   javier_Moreno
Posted On:   Monday, May 22, 2006 10:27 AM

Hello, i am developing a client-server application with Jbuilder X using session beans. I am trying to call to a remote method from a main class and i obtained the next error message: "_Subreconfiguration_Stub.java": subreconfiguration._Subreconfiguration_Stub should be declared abstract; it does not define copyTopology(java.lang.Integer) in subreconfiguration._Subreconfiguration_Stub at line 4, column 1 My source code is the next one: - The main class public static void main(String[] args) { try { Context context = new InitialContext(); Object ref = context.lookup("Subreconfiguratio   More>>

Hello, i am developing a client-server application

with Jbuilder X using session beans.

I am trying to call to a remote method from a main

class and i obtained the next error message:





"_Subreconfiguration_Stub.java": subreconfiguration._Subreconfiguration_Stub should be declared abstract; it does not define copyTopology(java.lang.Integer) in subreconfiguration._Subreconfiguration_Stub at line 4, column 1


My source code is the next one:


- The main class


public static void main(String[] args) {

try {


Context context = new InitialContext();

Object ref = context.lookup("Subreconfiguration");

subreconfigurationHome = (SubreconfigurationHome) PortableRemoteObject.narrow(ref, SubreconfigurationHome.class);


copyTopology(new Integer("1001"));

}

catch (Exception ex)


}

}

}


- The copyTopology method:



public static String copyTopology(Integer ID) {

String returnValue = "";


try {

returnValue = ((Subreconfiguration)(nodeList.GetAddress("SR1"))).copyTopology(ID);
System.out.println(returnValue);



catch(Exception e) {


e.printStackTrace();

}


return returnValue;

}

The remote copyTopolgy method code is:



public String copyTopology(Integer ID) {

return "Test ID" + String.valueOf(ID);

}



The home interface is:

public interface Subreconfiguration

extends EJBObject {

public String copyTopology (Integer ID) throws
remoteException;

}



I obtained this error after change the remote

copyTopology code. At the beginning this method it

was called getMessage and it had not parameters.

I think that the problem is that the Jbuilder is not

updating corretly the stub because when i click on the

error message, the Jbuilder shows a stub

which contains a getMessaage method without

parameters.


What do you think about this error?



Thank you very much

   <<Less
About | Sitemap | Contact