File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Interactivity between two ejb application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Interactivity between two ejb application " Watch "Interactivity between two ejb application " New topic
Author

Interactivity between two ejb application

kiran krishna
Greenhorn

Joined: Oct 07, 2002
Posts: 6
I have a requirement where two Ejb Applications need to interact. We have a Role access control application that handles user related stuffs like login, user roles in applicatiosn ect.
Another application does not have any tables in the database that correspond to Users. This application need to intereact with the Access control application for user authentication and roles access.
The Access control application is a full Web application with Ejb and web modules.
Can any one suggest me an approach where i can integrate both the applications easily.
Thanks in advance
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Ejbs are remote objects (I should said can be remote objects), just make remote calls.
kiran krishna
Greenhorn

Joined: Oct 07, 2002
Posts: 6
Thanks Chris
We have a login page in the acess control application. Its a jsp. It inturn has its own business logic classes.
This logic i generic with respectiveto the application that will access.
Hence we require to use this business logic in our application.
In short i need to use both Web application and Ejb application in our application.
Again thanks in advance
kiran
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Good design dicates that we remove business logic from our presentation layer. Your first task is to push the authentication business logic into your ejb layer and modify your presentation layer to use this. Then it is an easy step to allow other external applications to access these ejbs.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
kirangkp, you should also change your name to meet the JavaRanch Naming Policy.
Ismail
Greenhorn

Joined: May 16, 2002
Posts: 7
I hope you may use, URLConnection especially, for authentication purposes. See, Core Java, Vol 2 book, for how to implement this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interactivity between two ejb application
 
Similar Threads
Using default JAAS Mechanism in Websphere makes applications to access the context path of the other
Tivoli Access Manager WebSEAL
Administration concept for online applications
Use JAAS for access control.
User, Group, Roles for J2ee applications