Quote:
So objects cannot be used to pass to the master via JMS topic.
Instances of
LuceneWork instances have to be placed on the queue. One of this instance contains the Lucene document to be indexed, the class being indexed and the (serializable) id. Since it seems that you switched to topics instead of queues, I am wondering how you've done this? Did you write your own backend and directory provider?
It think you are trying to put your actual instances onto the JMS topic. Since your subscriber is running in a separate Session (persistent context) you cannot just take the instance from the queue and index it. You would have to reattach it to a new Session on the server. So it does not make sense to pass entity instances. You might as well just pass the id and retrieve the to index entity again on the master.
Quote:
My architecture is similar to a multiple single-HS. But i need to separate the web tier with the data tier. Thus, the indexed files needs to be stored on a separate data server.
I don't understand. So you seems to have a webapp setup and I assume you want to be able to search within the webapp. To do this you need an index on the webapp machine.
Quote:
The data tier is master in my context and i do not have any slaves. The master service the search requests and I also cannot afford much delays in the copying from master to slave node.
So you have multiple webapps, but search requests you want to pass to a single master? What do you really try to achieve?