This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Create an anonymous connection

Information about development with ProjX.

--Create an anonymous connection

Postby Development@SIB » Thu May 15, 2014 4:16 pm

This article is outdated - please use our new system at

You have different options if you need a connection before the user is authenticated. You could establish a connection with pre-configured username and password (but this isn't high secure). You could use JVx' standard AUTOLOGIN feature via database configuration (Table AUTOLOGIN) or you could create an anonymous connection.

An anonymous connection is similar to a connection created via Autologin, but in Autologin case you store the login key on the client machine. An anonymous connection doesn't store anything on the client.

How to establish an anonymous connection?

You have to do following steps:

  1. Change the security manager of your application, in your config.xml, to

    Code: Select all

  2. Configure a new User in the database table USERS with ANONYMOUS set to Y
  3. Create the connection:

    Code: Select all
    MasterConnection con = new MasterConnection(createConnection());
    con.setProperty(IConnectionConstants.PREFIX_CLIENT + "login.anonymous", "true");
User avatar
Posts: 313
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation