aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes How the client call remote interface in jboss5 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How the client call remote interface in jboss5 ?" Watch "How the client call remote interface in jboss5 ?" New topic
Author

How the client call remote interface in jboss5 ?

Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 187
Good day,

I'm searching around to find the solution on how to do the junit testing on session bean with remote interface in eclipse, may i know what is wrong on my code? any step i miss out ?

I using eclipse as my client to test this, i turn on jboss 5(which have been customise by vendor), and drop the myEarFileName.ear into it.

I try to google what is happening to Ejb3Registrar but couldn't get much clue , anyone have idea of why line 39 provide such error?





Trace :

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10200
    
166

Are you sure you are looking up a remote interface? The stacktrace suggests that it's a local interface proxy that you are trying to use. What does your bean code and interfaces look like (including the annotations)? Also the server logs the JNDI names on the console when the application is deployed. Please post that part.

[My Blog] [JavaRanch Journal]
Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 187
Thanks Jaikiran Pai for your help !

here is my code, i changed the content little bit for company code protection, hope you understood.


Here are the detail, below code package into an ear file named "myEarFileName"which provided by vendor, and put into jboss 5, this ear file is actually a proxy to API code, you may noticed StatusManager is the manager class to get touch to those API method.

I'm using J2SE with simple class to reference the remote interface here, previously it doesn't provide remote interface, and i mob it by adding remote interface with below way.

Local interface


Remote interface


Session bean


Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 187
Hi Jaikiran Pai,
Is the above enough? i do not have the access of server log, will try way to get that later
Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 187
Thanks Jaikiran Pai , i solved this by changing the return type which extends serializable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How the client call remote interface in jboss5 ?