Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how do swings applications communicate with ejb

  Asked By: Dukker    Date: Mar 03    Category: Java    Views: 1455
  

I am having an swings application and i want to use ejb,

i want to know who to use ejb using swings. if weblogic is a
applciation server.

I came to know that there are two ways for that
1. RMI
2. servlets
But i want to know how to use them

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jarvia Miller     Answered On: Mar 03

ya there is a simple approach
u r using ejb  through weblogic( through JNDI),
just set the weblogic  properties in ur swing client
and through lookup method get the reference of bean object and call appropriate
method of ur bean class.

 
Answer #2    Answered By: Allan Bailey     Answered On: Mar 03

if you are using a swing appication ,
and you want to use ejb  , simply you can use
jndi for looking up the jndi name that you specified
for your ejb in the deployment descriptor.
and call ejb method from your swing application.
you do not neeed to use servlet!

 
Didn't find what you were looking for? Find more on how do swings applications communicate with ejb Or get search suggestion and latest updates.




Tagged: