This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

swing  RSS feed

 
Kalyan Rao
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can I access EJB in my Swing application.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First get your InitialContext for the App Server then you need to use the JNDI lookup to get a reference to the EJB Home object, call create, you then can use the object just like any other object.
That's the short and easy answer to your question.
If you are new to EJBs then you should get a book on EJBs. I suggest This book by O'reilly publishing.
If you have built some EJB's that access other Ejb's using my above steps, then you just do the same in Swing. Good Luck
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!