0 Replies Latest reply on Apr 5, 2006 7:02 AM by devchris

    SessionBean return own defined JavaObject

    devchris

      Hi,

      well, i developed a session bean and i deloyed it to my jboss server.

      Now, i want to return my own Object, which i defined in my package,
      but it does not run.

      For example a Method in a Session Bean:

      public MyObject getIt()
      {
      MyObject o=new MyObject("Hello World");
      return o;
      }

      If i call my session bean in a client, i am getting always an javax.naming error.

      What`s wrong with my approach? Can anyone help me?

      Must i define MyObject as a Session Bean?

      Kind regards Chris.