Hello Parth and thank you for your answer, I thought of transient, but the problem is that I want my ZooKeeper object to persist among consecutive invocations of the execute() function. Is the "transient" keyword going to guarantee the ZooKeeper object's persistence?
Thanks Nick 2015-01-28 18:41 GMT-05:00 Parth Brahmbhatt <[email protected]>: > You can mark zookeeper instance as transient. > > Thanks > Parth > > From: "Nick R. Katsipoulakis" <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Wednesday, January 28, 2015 at 3:38 PM > To: "[email protected]" <[email protected]> > Subject: Non-serializable objects as Bolt members > > The reason I am asking is because I know that a Bolt needs to be > Serializable and I have a feeling that a ZooKeeper object is not (I am > pretty confident about that, since it keeps a socket connection with the > zookeeper server). Can somebody give me more information on the topic? > Also, If I go ahead and use something like what I described earlier, what > might be the possible problems that I might run into? Apparently, in local > mode the above works. > > -- Nikolaos Romanos Katsipoulakis, University of Pittsburgh, PhD candidate
