ejabberd - Comments for "Two Vservers using identical storage data using mnesia" https://www.ejabberd.im/node/4458 en Thank you! https://www.ejabberd.im/node/4458#comment-56927 <p>Hi badlop!</p> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>What you imagined is what will happen because in ejabberd, mod_roster and the other modules store in Mnesia the information using as key username+vhost. Interestingly, mod_roster_odbc and the other ODBC modules use as key only the username, not the vhost.</p> <p>I think you have at least two solutions:</p> <p>1. Forget about jabber.example.com, and use only the new example.com. Dump the mnesia database to text file, and rewrite in it the vhost. Then clean the Mnesia database, and load the modified text file.</p> <p>2. Migrate the Mnesia content to ODBC storage, and use the ODBC modules. Then configure both vhosts for using the same database. In this way you are taking benefit of a specific feature in ejabberd.</p> <p>Note: I think in ejabberd 3.0.0 the trick 2. will not work, because both Mnesia and ODBC will use as key username+vhost.</p></div> <p>Thank you very much for this information and the possible solution you pointed out. I will investigate what option is the best one for this case.</p> <p>Gollo</p> Fri, 31 Dec 2010 11:17:21 +0000 gollo comment 56927 at https://www.ejabberd.im gollo wrote: I want to have https://www.ejabberd.im/node/4458#comment-56911 <div class="quote-msg"> <div class="quote-author"><em>gollo</em> wrote:</div> <p>I want to have exactly the same data for *both* vhosts, so I doesn't matter if the user logs in with his/her @jabber.example.com or @example.com Jabber ID. This means that ejabberd should *not* differentiate between the vhosts in regard of the storage. Is this possible?</p></div> <p>What you imagined is what will happen because in ejabberd, mod_roster and the other modules store in Mnesia the information using as key username+vhost. Interestingly, mod_roster_odbc and the other ODBC modules use as key only the username, not the vhost.</p> <p>I think you have at least two solutions:</p> <p>1. Forget about jabber.example.com, and use only the new example.com. Dump the mnesia database to text file, and rewrite in it the vhost. Then clean the Mnesia database, and load the modified text file.</p> <p>2. Migrate the Mnesia content to ODBC storage, and use the ODBC modules. Then configure both vhosts for using the same database. In this way you are taking benefit of a specific feature in ejabberd.</p> <p>Note: I think in ejabberd 3.0.0 the trick 2. will not work, because both Mnesia and ODBC will use as key username+vhost.</p> Fri, 24 Dec 2010 16:22:05 +0000 mfoss comment 56911 at https://www.ejabberd.im