• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Is it possible to chage all local interfaces to remote?

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 65
Netbeans IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic