• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to chage all local interfaces to remote?

 
Farhad Rahmati
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heya

I have developed my application without thinking about Remote interfaces and I am almost done. but now I realized that I should have done using remote interfaces. to be honest I have not idea about remote and local stuff as I am totally new. I found some simple books and tutorials to develop this application. Now, I am planning to change all session beans to remote. and I really don't know what to do and how to do.

any suggestions, any idea, any tutorials any books,

I appreciate your help.

Thank you very much.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of EJB are you using and what does your code look like? It should be a simple enough change for EJB 3.x.
 
Farhad Rahmati
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaikiran for the reply,

I am using EJB 3.0, Java EE 6, JSF 2, Can you please provide a couple of lines showing how to change it. I don't have any interface at the moment and I have some where that by default it is local. so I have to change it to remote and design the interfaces.

At the moment I have only got stateless session beans, which are simply classes.


Thanks
 
Myyron Murray Latorilla
Ranch Hand
Posts: 65
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about try to create an interface annotating it with @Remote and implement the interface on your session bean. i dont see any related configuration in ejb-jar.xml/sun-ejb-jar.xml so this should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic