Help coderanch get a
new server
by contributing to the fundraiser
  • 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

talking to deaf jboss

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry to do this to you guys, but pretty much exhausted everywhere else...
say you've got tomcat4.1.12 on one machine, happpily talking to apache2.0.43, and you want it to talk to jboss2.2.4, which is on another machine, in order to retrieve, say a session and an entity bean. how would you go about doing this?
lets assume that the java on the tomcat machine has to act in the same way as a normal, java, remote client would - ie: we can't load the same jar's from inside jboss's lib directory etc.etc. and we are not running an integrated jboss/catalina instance.
For example, lets say we've used an env-entry tag inside web.xml to define:
Name: myName
Type: java.lang.String
Value: Matthew Webster
Which can be retrieved using normal lookup. We also get:
Name: ejb
Type: org.apache.naming.NamingContext
Value: org.apache.naming.NamingContext@11eb199
using the normal lookup process.
But trying to retrieve a session bean gives:
javax.naming.NameNotFoundException: Name Service is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)

Help really appreciated on this one! Will post to products\Jboss if asked.
Thanks,
Matt.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic