Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How the client call remote interface in jboss5 ?

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaikiran Pai , i solved this by changing the return type which extends serializable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic