• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Simple EJB Remote Client Question

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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~
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Valentin,
it works perfectly!
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are very welcomed!
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic