5 Replies Latest reply on Mar 8, 2004 11:54 AM by julien1

    re-deploying core modules without changing original source c

    aristoi

      Hello,
      I need to make some changes in the user module. Is there a way to write a new user module in a separate archive, without making any changes to the original nukes-distribution? I want jboss to replace the original user module with my new one.

        • 1. Re: re-deploying core modules without changing original sour

          could you describe what you need first ?

          • 2. Re: re-deploying core modules without changing original sour
            mcscottmc

            Julien,
            This question is a good example of one of the problems with the user module overall. It allows little to no room for customizing what user information is captured and stored. This is something I have been thinking about off and on for a while now, and unfortunately I have not really come up with an elegant solution.

            It seems like one direction to look would be to have the core user module manage things like logins, whosonline, etc. and then have a seperate registration module that actually captures and stores the user information (you would probably need two EntityBeans, a slimmed down one for login info and a bigger one for custom information like AIM, ICQ, etc). This way, someone could always write their own registration module to replace the default one. Just an idea.

            To answer your question aristoi, what I did was write my own UserModule (basically stealing the code from the core UserModule), removed the core UserModule from the deployment list, and deployed mine in its place. I set up my own db table to hold the custom info that I need. I still use the core backend (UserBean, GroupBean, etc), but then I do custom logic to store my extra info.

            -Scott

            PS: I have not looked at the changes you guys have made recently. I am pretty much running off of the source as of about a month ago. Things are working well as-is so I don't have a compelling reason to upgrade until I get some free time.

            • 3. Re: re-deploying core modules without changing original sour

              we have started the development of a Profile stuff which allows to capture a user profile, unfortunately it is not finished yet.

              • 4. Re: re-deploying core modules without changing original sour
                mcscottmc

                Cool - that sounds like it will go a long way to making Nukes more customizable.

                -Scott

                • 5. Re: re-deploying core modules without changing original sour

                  yes, it need to be finished though, you can have a look on it it is in the codebase.