3 Replies Latest reply on Mar 11, 2004 3:15 PM by remrick

    there's a SerializableFactory ?

    blakbox

      Hi

      I've done an MBean that binds a HashMap to a JNDI name using the NonSerializableFactory class. So, i can get this HashMap doing a lookup if i do from inside jboss.

      However i want to retrieve this hashmap from a client outside jboss. There's another object factory that allow this? or there's another way to do this?

      thanks

        • 1. Re: there's a SerializableFactory ?

          Bind the HashMap directly?

          Of course if the HashMap contains non-serializble
          objects it won't work.
          And the client will get a copy of the HashMap

          Why not create a stateless session bean to give
          remote access to the HashMap?

          Regards,
          Adrian

          • 2. Re: there's a SerializableFactory ?
            blakbox

            i'm sorry, was a stupid question.

            Before i posted that question, i've tried to bind directly, but it not worked, because i forgot doing serializable the objects into the hashmap.

            Thank you,
            Luis

            • 3. Re: there's a SerializableFactory ?
              remrick

              Adrian,

              Forgive me if this is appears to be a "dumb question" but I'd like to be sure... when you say "Bind the HashMap directly" i assume you mean use InitialContext.bind(), correct?

              Thanks,
              -Ron