You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Yazad Khambata <ya...@gmail.com> on 2008/04/05 23:18:15 UTC

Adding/Editing user info programmatically

Hi All,
   I am interested in writing a a servelet/swing app that would act as a
registration form to add/edit users on James server... Is it possible to do
so? I searched on the net but all I could find is the adduser telnet
command. Thank you in advance.

   Please note that I am not new to java/javaee, but am essentially 2 days
old as far as james is concerned, so please pardon my dumb questions. Thanks
again.

Regards,
Yazad Khambata.

Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Ok Cool, Thanks... :)

Regards,
Yazad



On 4/6/08, Sascha Fröhlich <sa...@gmail.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Yazad,
>
> we needed a cheap, fast solution and there was no time to deal with the
> source code so I used commons-net
> and telnet, as far as I know we did not even care about the response.
>
> Greetings,
> Sascha
>
> Yazad Khambata schrieb:
> | Hey thanks Sascha, You made me feel so much better... :)
> |
> | But the main concern is a 2 phase commit! where some of my data will be
> | stored through telnet and the rest (other user details) via jdbc in my
> own
> | RDBMS... BTW what technique did you use to get the status of the command
> | executed?
> |
> | Regards,
> | Yazad Khambata
> |
> |
> | On Sun, Apr 6, 2008 at 7:14 PM, Sascha Fröhlich <
> saschafroehlich@gmail.com>
> | wrote:
> |
> | Hi,
> |
> | same thing I did a few months ago :-) Nothing to be ashamed of, I
> think...
> |
> | Greetings,
> | Sascha
> |
> |
> | Yazad Khambata schrieb:
> |
> | | Thank you,
> | |
> | | I wrote a code using commons-net to send data to the server to create
> | users,
> | | It is a shabby way to do things, with will suffice my current needs,
> | thank
> | | you all for your support
> | |
> | | _______________________________________________________________
> | | The below code use apache commons net...
> | |
> | |         TelnetClient telnetClient = null;
> | |         try {
> | |             telnetClient = new TelnetClient();
> | |
> | |             final InetAddress inetAddress =
> | | InetAddress.getByName("localhost");
> | |             telnetClient.connect(inetAddress, 4555);
> | |
> | |             System.out.println("Connection established...");
> | |
> | |             //Writer
> | |             final OutputStream outputStream =
> | | telnetClient.getOutputStream();
> | |             final OutputStreamWriter outputStreamWriter = new
> | | OutputStreamWriter(outputStream);
> | |             final BufferedWriter bufferedWriter = new
> | | BufferedWriter(outputStreamWriter);
> | |             PrintWriter printWriter = new PrintWriter(bufferedWriter);
> | |
> | |
> | |             //Reader
> | |             final InputStream inputStream =
> | telnetClient.getInputStream();
> | |             final InputStreamReader inputStreamReader = new
> | | InputStreamReader(inputStream);
> | |             final BufferedReader bufferedReader = new
> | | BufferedReader(inputStreamReader);
> | |
> | |             //printMessagesFromServer(bufferedReader);
> | |
> | |             //login as root
> | |             printWriter.println("root");
> | |             printWriter.println("root");
> | |
> | |             //add user
> | |             printWriter.println("adduser success success");
> | |             printWriter.flush();
> | |
> | |             printWriter.println("verify success4");
> | |             //close streams...
> | |             outputStream.close();
> | |             bufferedReader.close();
> | |         } finally {
> | |             if(telnetClient != null) {
> | |                 telnetClient.disconnect();
> | |                 System.out.println("Disconnected...");
> | |             }
> | |         }
> | |
> | | _______________________________________________________________
> | |
> | | On Sun, Apr 6, 2008 at 12:30 PM, Robert Burrell Donkin <
> | | robertburrelldonkin@gmail.com> wrote:
> | |
> | |> On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com>
> | wrote:
> | |>> Hi Robert,
> | |>>     Thanks for the link... I think  it's best if I download the
> source
> | |> zip
> | |>>  now... Is there any javadoc available? I couldn't find any on the
> | site,
> | |> nor
> | |>>  in the downloaded binary... Thanks.
> | |> the best plan is to download the source (if you're targeting stable)
> | |> or checkout the project from subversion (if you're targeting trunk)
> | |> and take a look at it in an IDE
> | |>
> | |> - robert
> | |>
> | |> ---------------------------------------------------------------------
> | |> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> | |> For additional commands, e-mail: server-dev-help@james.apache.org
> | |>
> | |>
> | |
> |
> |>
> |>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
>
> iEYEARECAAYFAkf48fwACgkQN1kDpsIDAWHLTACeO52ZGKf8xN+b/n3m5p3YcBLQ
> R+YAn3KxAWn+roKdhe+g54G1nIAaSTlO
> =7R2B
> -----END PGP SIGNATURE-----
>
>

Re: Adding/Editing user info programmatically

Posted by Sascha Fröhlich <sa...@gmail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Yazad,

we needed a cheap, fast solution and there was no time to deal with the 
source code so I used commons-net
and telnet, as far as I know we did not even care about the response.

Greetings,
Sascha

Yazad Khambata schrieb:
| Hey thanks Sascha, You made me feel so much better... :)
|
| But the main concern is a 2 phase commit! where some of my data will be
| stored through telnet and the rest (other user details) via jdbc in my own
| RDBMS... BTW what technique did you use to get the status of the command
| executed?
|
| Regards,
| Yazad Khambata
|
|
| On Sun, Apr 6, 2008 at 7:14 PM, Sascha Fröhlich 
<sa...@gmail.com>
| wrote:
|
| Hi,
|
| same thing I did a few months ago :-) Nothing to be ashamed of, I think...
|
| Greetings,
| Sascha
|
|
| Yazad Khambata schrieb:
|
| | Thank you,
| |
| | I wrote a code using commons-net to send data to the server to create
| users,
| | It is a shabby way to do things, with will suffice my current needs,
| thank
| | you all for your support
| |
| | _______________________________________________________________
| | The below code use apache commons net...
| |
| |         TelnetClient telnetClient = null;
| |         try {
| |             telnetClient = new TelnetClient();
| |
| |             final InetAddress inetAddress =
| | InetAddress.getByName("localhost");
| |             telnetClient.connect(inetAddress, 4555);
| |
| |             System.out.println("Connection established...");
| |
| |             //Writer
| |             final OutputStream outputStream =
| | telnetClient.getOutputStream();
| |             final OutputStreamWriter outputStreamWriter = new
| | OutputStreamWriter(outputStream);
| |             final BufferedWriter bufferedWriter = new
| | BufferedWriter(outputStreamWriter);
| |             PrintWriter printWriter = new PrintWriter(bufferedWriter);
| |
| |
| |             //Reader
| |             final InputStream inputStream =
| telnetClient.getInputStream();
| |             final InputStreamReader inputStreamReader = new
| | InputStreamReader(inputStream);
| |             final BufferedReader bufferedReader = new
| | BufferedReader(inputStreamReader);
| |
| |             //printMessagesFromServer(bufferedReader);
| |
| |             //login as root
| |             printWriter.println("root");
| |             printWriter.println("root");
| |
| |             //add user
| |             printWriter.println("adduser success success");
| |             printWriter.flush();
| |
| |             printWriter.println("verify success4");
| |             //close streams...
| |             outputStream.close();
| |             bufferedReader.close();
| |         } finally {
| |             if(telnetClient != null) {
| |                 telnetClient.disconnect();
| |                 System.out.println("Disconnected...");
| |             }
| |         }
| |
| | _______________________________________________________________
| |
| | On Sun, Apr 6, 2008 at 12:30 PM, Robert Burrell Donkin <
| | robertburrelldonkin@gmail.com> wrote:
| |
| |> On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com>
| wrote:
| |>> Hi Robert,
| |>>     Thanks for the link... I think  it's best if I download the source
| |> zip
| |>>  now... Is there any javadoc available? I couldn't find any on the
| site,
| |> nor
| |>>  in the downloaded binary... Thanks.
| |> the best plan is to download the source (if you're targeting stable)
| |> or checkout the project from subversion (if you're targeting trunk)
| |> and take a look at it in an IDE
| |>
| |> - robert
| |>
| |> ---------------------------------------------------------------------
| |> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
| |> For additional commands, e-mail: server-dev-help@james.apache.org
| |>
| |>
| |
|
|>
|>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
 
iEYEARECAAYFAkf48fwACgkQN1kDpsIDAWHLTACeO52ZGKf8xN+b/n3m5p3YcBLQ
R+YAn3KxAWn+roKdhe+g54G1nIAaSTlO
=7R2B
-----END PGP SIGNATURE-----


Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Hey thanks Sascha, You made me feel so much better... :)

But the main concern is a 2 phase commit! where some of my data will be
stored through telnet and the rest (other user details) via jdbc in my own
RDBMS... BTW what technique did you use to get the status of the command
executed?

Regards,
Yazad Khambata


On Sun, Apr 6, 2008 at 7:14 PM, Sascha Fröhlich <sa...@gmail.com>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> same thing I did a few months ago :-) Nothing to be ashamed of, I think...
>
> Greetings,
> Sascha
>
>
> Yazad Khambata schrieb:
>
> | Thank you,
> |
> | I wrote a code using commons-net to send data to the server to create
> users,
> | It is a shabby way to do things, with will suffice my current needs,
> thank
> | you all for your support
> |
> | _______________________________________________________________
> | The below code use apache commons net...
> |
> |         TelnetClient telnetClient = null;
> |         try {
> |             telnetClient = new TelnetClient();
> |
> |             final InetAddress inetAddress =
> | InetAddress.getByName("localhost");
> |             telnetClient.connect(inetAddress, 4555);
> |
> |             System.out.println("Connection established...");
> |
> |             //Writer
> |             final OutputStream outputStream =
> | telnetClient.getOutputStream();
> |             final OutputStreamWriter outputStreamWriter = new
> | OutputStreamWriter(outputStream);
> |             final BufferedWriter bufferedWriter = new
> | BufferedWriter(outputStreamWriter);
> |             PrintWriter printWriter = new PrintWriter(bufferedWriter);
> |
> |
> |             //Reader
> |             final InputStream inputStream =
> telnetClient.getInputStream();
> |             final InputStreamReader inputStreamReader = new
> | InputStreamReader(inputStream);
> |             final BufferedReader bufferedReader = new
> | BufferedReader(inputStreamReader);
> |
> |             //printMessagesFromServer(bufferedReader);
> |
> |             //login as root
> |             printWriter.println("root");
> |             printWriter.println("root");
> |
> |             //add user
> |             printWriter.println("adduser success success");
> |             printWriter.flush();
> |
> |             printWriter.println("verify success4");
> |             //close streams...
> |             outputStream.close();
> |             bufferedReader.close();
> |         } finally {
> |             if(telnetClient != null) {
> |                 telnetClient.disconnect();
> |                 System.out.println("Disconnected...");
> |             }
> |         }
> |
> | _______________________________________________________________
> |
> | On Sun, Apr 6, 2008 at 12:30 PM, Robert Burrell Donkin <
> | robertburrelldonkin@gmail.com> wrote:
> |
> |> On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com>
> wrote:
> |>> Hi Robert,
> |>>     Thanks for the link... I think  it's best if I download the source
> |> zip
> |>>  now... Is there any javadoc available? I couldn't find any on the
> site,
> |> nor
> |>>  in the downloaded binary... Thanks.
> |> the best plan is to download the source (if you're targeting stable)
> |> or checkout the project from subversion (if you're targeting trunk)
> |> and take a look at it in an IDE
> |>
> |> - robert
> |>
> |> ---------------------------------------------------------------------
> |> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> |> For additional commands, e-mail: server-dev-help@james.apache.org
> |>
> |>
> |
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
>
> iEYEARECAAYFAkf407IACgkQN1kDpsIDAWFKLwCgmI+UhgXzOkNaRbflQZXzX2Ct
> m5cAmgNq15h2xt4P4r4p9R/v1cX3FupB
> =TV6N
> -----END PGP SIGNATURE-----
>
>

Re: Adding/Editing user info programmatically

Posted by Sascha Fröhlich <sa...@gmail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

same thing I did a few months ago :-) Nothing to be ashamed of, I think...

Greetings,
Sascha


Yazad Khambata schrieb:
| Thank you,
|
| I wrote a code using commons-net to send data to the server to create 
users,
| It is a shabby way to do things, with will suffice my current needs, thank
| you all for your support
|
| _______________________________________________________________
| The below code use apache commons net...
|
|         TelnetClient telnetClient = null;
|         try {
|             telnetClient = new TelnetClient();
|
|             final InetAddress inetAddress =
| InetAddress.getByName("localhost");
|             telnetClient.connect(inetAddress, 4555);
|
|             System.out.println("Connection established...");
|
|             //Writer
|             final OutputStream outputStream =
| telnetClient.getOutputStream();
|             final OutputStreamWriter outputStreamWriter = new
| OutputStreamWriter(outputStream);
|             final BufferedWriter bufferedWriter = new
| BufferedWriter(outputStreamWriter);
|             PrintWriter printWriter = new PrintWriter(bufferedWriter);
|
|
|             //Reader
|             final InputStream inputStream = telnetClient.getInputStream();
|             final InputStreamReader inputStreamReader = new
| InputStreamReader(inputStream);
|             final BufferedReader bufferedReader = new
| BufferedReader(inputStreamReader);
|
|             //printMessagesFromServer(bufferedReader);
|
|             //login as root
|             printWriter.println("root");
|             printWriter.println("root");
|
|             //add user
|             printWriter.println("adduser success success");
|             printWriter.flush();
|
|             printWriter.println("verify success4");
|             //close streams...
|             outputStream.close();
|             bufferedReader.close();
|         } finally {
|             if(telnetClient != null) {
|                 telnetClient.disconnect();
|                 System.out.println("Disconnected...");
|             }
|         }
|
| _______________________________________________________________
|
| On Sun, Apr 6, 2008 at 12:30 PM, Robert Burrell Donkin <
| robertburrelldonkin@gmail.com> wrote:
|
|> On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com> wrote:
|>> Hi Robert,
|>>     Thanks for the link... I think  it's best if I download the source
|> zip
|>>  now... Is there any javadoc available? I couldn't find any on the site,
|> nor
|>>  in the downloaded binary... Thanks.
|> the best plan is to download the source (if you're targeting stable)
|> or checkout the project from subversion (if you're targeting trunk)
|> and take a look at it in an IDE
|>
|> - robert
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
|> For additional commands, e-mail: server-dev-help@james.apache.org
|>
|>
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
 
iEYEARECAAYFAkf407IACgkQN1kDpsIDAWFKLwCgmI+UhgXzOkNaRbflQZXzX2Ct
m5cAmgNq15h2xt4P4r4p9R/v1cX3FupB
=TV6N
-----END PGP SIGNATURE-----


Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Thank you,

I wrote a code using commons-net to send data to the server to create users,
It is a shabby way to do things, with will suffice my current needs, thank
you all for your support

_______________________________________________________________
The below code use apache commons net...

        TelnetClient telnetClient = null;
        try {
            telnetClient = new TelnetClient();

            final InetAddress inetAddress =
InetAddress.getByName("localhost");
            telnetClient.connect(inetAddress, 4555);

            System.out.println("Connection established...");

            //Writer
            final OutputStream outputStream =
telnetClient.getOutputStream();
            final OutputStreamWriter outputStreamWriter = new
OutputStreamWriter(outputStream);
            final BufferedWriter bufferedWriter = new
BufferedWriter(outputStreamWriter);
            PrintWriter printWriter = new PrintWriter(bufferedWriter);


            //Reader
            final InputStream inputStream = telnetClient.getInputStream();
            final InputStreamReader inputStreamReader = new
InputStreamReader(inputStream);
            final BufferedReader bufferedReader = new
BufferedReader(inputStreamReader);

            //printMessagesFromServer(bufferedReader);

            //login as root
            printWriter.println("root");
            printWriter.println("root");

            //add user
            printWriter.println("adduser success success");
            printWriter.flush();

            printWriter.println("verify success4");
            //close streams...
            outputStream.close();
            bufferedReader.close();
        } finally {
            if(telnetClient != null) {
                telnetClient.disconnect();
                System.out.println("Disconnected...");
            }
        }

_______________________________________________________________

On Sun, Apr 6, 2008 at 12:30 PM, Robert Burrell Donkin <
robertburrelldonkin@gmail.com> wrote:

> On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com> wrote:
> > Hi Robert,
> >     Thanks for the link... I think  it's best if I download the source
> zip
> >  now... Is there any javadoc available? I couldn't find any on the site,
> nor
> >  in the downloaded binary... Thanks.
>
> the best plan is to download the source (if you're targeting stable)
> or checkout the project from subversion (if you're targeting trunk)
> and take a look at it in an IDE
>
> - robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: Adding/Editing user info programmatically

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Sat, Apr 5, 2008 at 11:13 PM, Yazad Khambata <ya...@gmail.com> wrote:
> Hi Robert,
>     Thanks for the link... I think  it's best if I download the source zip
>  now... Is there any javadoc available? I couldn't find any on the site, nor
>  in the downloaded binary... Thanks.

the best plan is to download the source (if you're targeting stable)
or checkout the project from subversion (if you're targeting trunk)
and take a look at it in an IDE

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Hi Robert,
    Thanks for the link... I think  it's best if I download the source zip
now... Is there any javadoc available? I couldn't find any on the site, nor
in the downloaded binary... Thanks.

    And sorry for the cross post, won't happen again.
Regards,
Yazad K

On Sun, Apr 6, 2008 at 3:08 AM, Robert Burrell Donkin <
robertburrelldonkin@gmail.com> wrote:

> On Sat, Apr 5, 2008 at 10:18 PM, Yazad Khambata <ya...@gmail.com> wrote:
> > Hi All,
> >    I am interested in writing a a servelet/swing app that would act as a
> >  registration form to add/edit users on James server... Is it possible
> to do
> >  so? I searched on the net but all I could find is the adduser telnet
> >  command. Thank you in advance.
> >
> >    Please note that I am not new to java/javaee, but am essentially 2
> days
> >  old as far as james is concerned, so please pardon my dumb questions.
> Thanks
> >  again.
>
> dumb questions aren't a problem but please don't cross post
>
> the easiest way to write a servlet would be to start with the remote
> manager add user function in
>
> http://svn.apache.org/repos/asf/james/server/trunk/remotemanager-function/src/main/java/org/apache/james/remotemanager/RemoteManager.java
>
> - robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Thanks Norman... JMX sounds like a good idea, though that is not something
that I have used as yet... worth a try. But the point is james runs in a JVM
other than the web app, will I still be able to make remote calls?

Regards,
Yazad


On Sun, Apr 6, 2008 at 1:34 PM, Norman Maurer <no...@apache.org> wrote:

> Am Samstag, den 05.04.2008, 22:38 +0100 schrieb Robert Burrell Donkin:
> > On Sat, Apr 5, 2008 at 10:18 PM, Yazad Khambata <ya...@gmail.com>
> wrote:
> > > Hi All,
> > >    I am interested in writing a a servelet/swing app that would act as
> a
> > >  registration form to add/edit users on James server... Is it possible
> to do
> > >  so? I searched on the net but all I could find is the adduser telnet
> > >  command. Thank you in advance.
> > >
> > >    Please note that I am not new to java/javaee, but am essentially 2
> days
> > >  old as far as james is concerned, so please pardon my dumb questions.
> Thanks
> > >  again.
> >
> > dumb questions aren't a problem but please don't cross post
> >
> > the easiest way to write a servlet would be to start with the remote
> > manager add user function in
> >
> http://svn.apache.org/repos/asf/james/server/trunk/remotemanager-function/src/main/java/org/apache/james/remotemanager/RemoteManager.java
> >
> > - robert
>
> Hi,
>
> if you want to develop the app for trunk code you can use JMX to call
> the methods from your app.
>
> bye
> Norman
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: Adding/Editing user info programmatically

Posted by Norman Maurer <no...@apache.org>.
Am Samstag, den 05.04.2008, 22:38 +0100 schrieb Robert Burrell Donkin:
> On Sat, Apr 5, 2008 at 10:18 PM, Yazad Khambata <ya...@gmail.com> wrote:
> > Hi All,
> >    I am interested in writing a a servelet/swing app that would act as a
> >  registration form to add/edit users on James server... Is it possible to do
> >  so? I searched on the net but all I could find is the adduser telnet
> >  command. Thank you in advance.
> >
> >    Please note that I am not new to java/javaee, but am essentially 2 days
> >  old as far as james is concerned, so please pardon my dumb questions. Thanks
> >  again.
> 
> dumb questions aren't a problem but please don't cross post
> 
> the easiest way to write a servlet would be to start with the remote
> manager add user function in
> http://svn.apache.org/repos/asf/james/server/trunk/remotemanager-function/src/main/java/org/apache/james/remotemanager/RemoteManager.java
> 
> - robert

Hi,

if you want to develop the app for trunk code you can use JMX to call
the methods from your app.

bye
Norman



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Adding/Editing user info programmatically

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Sat, Apr 5, 2008 at 10:18 PM, Yazad Khambata <ya...@gmail.com> wrote:
> Hi All,
>    I am interested in writing a a servelet/swing app that would act as a
>  registration form to add/edit users on James server... Is it possible to do
>  so? I searched on the net but all I could find is the adduser telnet
>  command. Thank you in advance.
>
>    Please note that I am not new to java/javaee, but am essentially 2 days
>  old as far as james is concerned, so please pardon my dumb questions. Thanks
>  again.

dumb questions aren't a problem but please don't cross post

the easiest way to write a servlet would be to start with the remote
manager add user function in
http://svn.apache.org/repos/asf/james/server/trunk/remotemanager-function/src/main/java/org/apache/james/remotemanager/RemoteManager.java

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Thank you Magnus... will take your advice.

Regards,
Yazad

On Sun, Apr 6, 2008 at 3:00 AM, Magnus Olstad Hansen <ma...@rialtoforlag.no>
wrote:

> Hello again,
>
> I can only suggest the obvious; the James website at
> http://james.apache.org for reading up on the remote management
> possibilities, download James, fire it up and use a telnet session to the
> remote management port to explore the commands that are used to do the stuff
> you want.
>
> If the remote management does not include what you need it's probably
> possible to extend it - but I've never read about that.
>
> Cheers,
>
> Magnus
>
>
> Yazad Khambata wrote:
>
> > Hi Magnus,
> >   Thanks for the prompt... do you have any link/resources to help me
> > further in this direction?
> >
> > Regards,
> > Yazad K
> >
> >
> > On Sun, Apr 6, 2008 at 2:50 AM, Magnus Olstad Hansen <
> > magnus@rialtoforlag.no>
> > wrote:
> >
> >
> >
> > > Hi,
> > >
> > > I suppose you'd be best off implementing a separate app communicating
> > > with
> > > James using the RemoteManager protocol.
> > > I don't have any experience to put behind my statement - but I'm
> > > guessing
> > > that would be the correct way to do it.
> > >
> > > Magnus
> > >
> > >
> > > Yazad Khambata wrote:
> > >
> > >
> > >
> > > > Hi All,
> > > >  I am interested in writing a a servelet/swing app that would act as
> > > > a
> > > > registration form to add/edit users on James server... Is it
> > > > possible to
> > > > do
> > > > so? I searched on the net but all I could find is the adduser telnet
> > > > command. Thank you in advance.
> > > >
> > > >  Please note that I am not new to java/javaee, but am essentially 2
> > > > days
> > > > old as far as james is concerned, so please pardon my dumb
> > > > questions.
> > > > Thanks
> > > > again.
> > > >
> > > > Regards,
> > > > Yazad Khambata.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > > For additional commands, e-mail: server-user-help@james.apache.org
> > >
> > >
> > >
> > >
> >
> >
> >
>
>

Re: Adding/Editing user info programmatically

Posted by Magnus Olstad Hansen <ma...@rialtoforlag.no>.
Hello again,

I can only suggest the obvious; the James website at 
http://james.apache.org for reading up on the remote management 
possibilities, download James, fire it up and use a telnet session to 
the remote management port to explore the commands that are used to do 
the stuff you want.

If the remote management does not include what you need it's probably 
possible to extend it - but I've never read about that.

Cheers,
Magnus


Yazad Khambata wrote:
> Hi Magnus,
>    Thanks for the prompt... do you have any link/resources to help me
> further in this direction?
>
> Regards,
> Yazad K
>
>
> On Sun, Apr 6, 2008 at 2:50 AM, Magnus Olstad Hansen <ma...@rialtoforlag.no>
> wrote:
>
>   
>> Hi,
>>
>> I suppose you'd be best off implementing a separate app communicating with
>> James using the RemoteManager protocol.
>> I don't have any experience to put behind my statement - but I'm guessing
>> that would be the correct way to do it.
>>
>> Magnus
>>
>>
>> Yazad Khambata wrote:
>>
>>     
>>> Hi All,
>>>   I am interested in writing a a servelet/swing app that would act as a
>>> registration form to add/edit users on James server... Is it possible to
>>> do
>>> so? I searched on the net but all I could find is the adduser telnet
>>> command. Thank you in advance.
>>>
>>>   Please note that I am not new to java/javaee, but am essentially 2
>>> days
>>> old as far as james is concerned, so please pardon my dumb questions.
>>> Thanks
>>> again.
>>>
>>> Regards,
>>> Yazad Khambata.
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>>     
>
>   


Re: Adding/Editing user info programmatically

Posted by Yazad Khambata <ya...@gmail.com>.
Hi Magnus,
   Thanks for the prompt... do you have any link/resources to help me
further in this direction?

Regards,
Yazad K


On Sun, Apr 6, 2008 at 2:50 AM, Magnus Olstad Hansen <ma...@rialtoforlag.no>
wrote:

> Hi,
>
> I suppose you'd be best off implementing a separate app communicating with
> James using the RemoteManager protocol.
> I don't have any experience to put behind my statement - but I'm guessing
> that would be the correct way to do it.
>
> Magnus
>
>
> Yazad Khambata wrote:
>
> > Hi All,
> >   I am interested in writing a a servelet/swing app that would act as a
> > registration form to add/edit users on James server... Is it possible to
> > do
> > so? I searched on the net but all I could find is the adduser telnet
> > command. Thank you in advance.
> >
> >   Please note that I am not new to java/javaee, but am essentially 2
> > days
> > old as far as james is concerned, so please pardon my dumb questions.
> > Thanks
> > again.
> >
> > Regards,
> > Yazad Khambata.
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

Re: Adding/Editing user info programmatically

Posted by Magnus Olstad Hansen <ma...@rialtoforlag.no>.
Hi,

I suppose you'd be best off implementing a separate app communicating 
with James using the RemoteManager protocol.
I don't have any experience to put behind my statement - but I'm 
guessing that would be the correct way to do it.

Magnus

Yazad Khambata wrote:
> Hi All,
>    I am interested in writing a a servelet/swing app that would act as a
> registration form to add/edit users on James server... Is it possible to do
> so? I searched on the net but all I could find is the adduser telnet
> command. Thank you in advance.
>
>    Please note that I am not new to java/javaee, but am essentially 2 days
> old as far as james is concerned, so please pardon my dumb questions. Thanks
> again.
>
> Regards,
> Yazad Khambata.
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org