This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Is it possible to chage all local interfaces to remote? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Is it possible to chage all local interfaces to remote?" Watch "Is it possible to chage all local interfaces to remote?" New topic
Author

Is it possible to chage all local interfaces to remote?

Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
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

Joined: Jul 20, 2005
Posts: 9953
    
163

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.

[My Blog] [JavaRanch Journal]
Farhad Rahmati
Ranch Hand

Joined: Dec 16, 2010
Posts: 96
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

Joined: Dec 10, 2009
Posts: 65

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.


OCPJP6
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is it possible to chage all local interfaces to remote?
 
Similar Threads
Accessing EJB s remote interface through seperate web application
Mock question from Headfirst EJB
EJB entity beans with both local and remote interface
JMS REMOTE CONNECTION Problems
How to interpret LocalHome interface