File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple EJB Remote Client Question

 
yc lim
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have just started trying EJBs and have some problems accessing a remote MDB on Websphere using my swing client. i specify my InitialContext.PROVIDER_URL as following



but i keep getting



how can i know what url/port to use to access my MDB, or how can i configure one? Thanks you~
 
Valentin Tanase
Ranch Hand
Posts: 704
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yc,

One thing to notice about MDB(s): they were not designed to be accessed via remote interfaces by the end-user. This is the reason why MDB(s) don�t have home or remote interfaces, etc. A MDB acts like a JMS message listeners and allows to J2EE applications to process messages asynchronously (this being actually the reason why they were introduced in J2EE 2.0).
Looking at your code I understand that you actually try to get a reference to a topic or a queue, in order to send a JMS message, which makes a lot of sense. As for the problem you have I would suggest you to check the next link: http://www.jguru.com/forums/view.jsp?EID=1157688
I hope this will help.
Regards.
 
yc lim
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Valentin,
it works perfectly!
 
Valentin Tanase
Ranch Hand
Posts: 704
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are very welcomed!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic