2 Replies Latest reply on Feb 1, 2005 5:02 PM by peake

    How can I create an Application client that has a java:comp/

    peake

      This goes back to problem I posted recently:
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=58775
      and
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=58597

      In essence: I am writting java application that is not in the container but is looking up ejb's.
      I have a 'client' jar I must use and can't change formally to get the ejb's.
      So it doesnt' wor cause I can't look up an ejb using the private ENC naming of java:/compent/ejb/somesessionbean but that is what the client jar uses.
      Cause of the private application space.

      Someone suggested in response to this that I setup my own namespace for java:comp/ent etc.
      How would I do this? Go about it?
      etc.
      thanks!!!

        • 1. Re: How can I create an Application client that has a java:c
          starksm64

          Read about the j2ee client container:

          http://www.jboss.org/wiki/Wiki.jsp?page=J2EEClient

          • 2. Re: How can I create an Application client that has a java:c
            peake

            Thanks for replying. Sorry to pursue this topic more but I still have questions. I understand the link provided that shows me the jboss-client.xml. And the reference to it from the client Java application. What I dont' understand is 'where' to put it. Do I put it with the ejbs?
            Do I create some kind of special 'client' application that registers this special jboss-client.xml. I tried a few places but when I tried my client application, it said the 'importer-client' which is the name I used in my jboss-client.xml file, was not 'bound.
            So, it looks like it wants to work if I can just deploy this 'thingy' correctly.

            Do I put it in the ear that deploys the ejb's?
            What is the application-client.xml that the link talks about?
            Do I need one of those?
            Do I need to create some 'new' type of application?
            I looked at documentation and could not find this, but that is probably user error.
            Help!