This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Simple EJB Remote Client Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Simple EJB Remote Client Question" Watch "Simple EJB Remote Client Question" New topic
Author

Simple EJB Remote Client Question

yc lim
Greenhorn

Joined: Jul 26, 2004
Posts: 14
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

Joined: Feb 17, 2005
Posts: 704
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.


I think, therefore I exist -- Rene Descartes
yc lim
Greenhorn

Joined: Jul 26, 2004
Posts: 14
thanks Valentin,
it works perfectly!
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
You are very welcomed!
 
 
subject: Simple EJB Remote Client Question