• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How the client call remote interface in jboss5 ?

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jaikiran Pai , i solved this by changing the return type which extends serializable.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic