![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Version
Table of Contents 1.2 What do you need to understand this book 4 2.1 Selection of Software Packages / Versions 5 2.4 Build the Runtime Binaries 6 2.5 Installing / Configuring Database 6 2.6 Installing / Configuring Application Server 6 3 openCRX Setup and Configuration 8 3.2 Verify/Create Application Server Logins 8 3.3 First Login / Initial Setup as admin-Root 9 3.3.2 Create Data Segment “Standard” 14 3.3.3 Import Codes and Data 16 3.3.4 Set Access Levels of Codes 17 3.4 Create a new User guest 18 3.4.1 Create a new Subject guest 19 3.4.2 Create a new Principal guest in realm Default 22 3.4.3 Make new Principal guest member of group Users 28 3.4.4 Segment Administrator creates new Contact 32
List of Figures Figure 1: openCRX Login page 9 Figure 2: First login with admin-Root / rootSecret 10 Figure 3: Start screen of admin-Root 13 Figure 4: Create a new segment named Standard 14 Figure 5: Result of operation Create Administrator 15 Figure 6: Load Code Tables and Data – Step 1 16 Figure 7: Load Code Tables and Data – Step 2 16 Figure 8: Execute Operation Set Access Level 17 Figure 9: Parameters of Operation Set Access Level 17 Figure 10: Create a new Subject 19 Figure 11: Change the Subject's Qualifier to guest 20 Figure 12: Grid Subjects with admin-Root, admin-Standard, and guest 21 Figure 13: Click on bread crum entry Security Realms 22 Figure 14: Realm Default 23 Figure 15: Create a new Principal 24 Figure 16: Select Subject guest in the Lookup Inspector 25 Figure 17: Change the Principal's Qualifier to guest 26 Figure 18: Grid Principals with newly created Principal guest 27 Figure 19: Add Principal guest to Principal Group Users – Step 1 28 Figure 20: Add Principal guest to Principal Group Users – Step 2 29 Figure 21: Add Principal guest to Principal Group Users – Step 3 30 Figure 22: Add Principal guest to Principal Group Users – Step 4 31 Figure 23: First login with admin-Standard / adminSecret 32 Figure 24: View > Recalculate and Refresh activates/updates charts 33 Figure 25: Create new Contact – Step 1 33 Figure 26: Create new Contact – Step 2 34 Figure 27: Create new User 35 Figure 28: Result of operation Create User 36
List of Listings Listing 1: Console Output – JBoss startup 7 Listing 2: File users.properties with syntax user=password 8 Listing 3: File roles.properties with syntax user.Roles=role1,role2,... 8 Listing 4: Console Output – Initialization of the openCRX servlet 11 Listing 5: Configuration of segment ABC in web.xml 15 Listing 6: Console Output – Importing Codes and Data 16
1 About this BookThis book describes what you need to get started with openCRX and how to configure openCRX. openCRX is the leading enterprise-class open source CRM suite. openCRX is based on openMDX, an open source MDA framework based on the OMG's model driven architecture (MDA) standards. This guarantees total openness, standards compliance, a state-of-the-art component-based architecture, and virtually unlimited scalability. 1.1 Who this book is forThe intended audience are openCRX administrators and advanced users. 1.2 What do you need to understand this bookThis book describes how to install openCRX and how to configure openCRX. Even though it is possible to install openCRX without a deeper understanding of J2EE applications, application servers, and database management systems, it is still a plus if you are comfortable with these topics. openCRX is an enterprise-class J2EE application. Installation, administration, and maintenance of such applications is somewhat more involved than running a simple setup.exe (or make install, for that matter). So please do not expect that you will manage to install openCRX in 10 minutes as even experienced administrators can easily spend an hour or more on their first install. 1.3 Tips, Warnings, etc.We make use the following pictograms:
2 PrerequisitesInstalling openCRX is a somewhat involved process as you are required to install/configure various other components as well. In a first step, however, you need to choose an appropriate selection of software packages, namely an application server (click here for list J2EE-compliant application servers supported by openCRX), a database management system (click here for list of database management systems supported by openCRX), and a JDK. Before you get started with the selection process, however, it is a good idea to spend some time browsing the various pages containing information about the products and reviewing the openCRX version compatibility information provided at http://www.opencrx.org/faq.htm#versioncompatibility. 2.1 Selection of Software Packages / Versions
2.2 Installing JDKInstall the JDK.
2.3 Installing AntInstall Ant. Ant is required to build the openCRX runtime binaries.
2.4 Build the Runtime BinariesRead the file /core/README included in the openCRX distribution. This README contains important information, including how you can build the Runtime Binaries from the distribution. 2.5 Installing / Configuring DatabaseAs far as the database is concerned, the openCRX FAQ might give you some guidance in making your choice (please note that the openCRX distribution includes all the required configuration and deployment files for MySQL, MaxDB, PostgreSQL, MS SQL, and Oracle). Various openCRX installation guides for database management systems are available from http://www.opencrx.org/documents.htm. The remainder of this document assumes that you decided for MySQL and hence – after following the openCRX Installation Guide for MySQL - you should have a working installation of the MySQL database. 2.6 Installing / Configuring Application ServerAs far as the application server is concerned, your best bet is probably the one you know best as long as it is J2EE-compliant (additional information regarding the choice of an application server is available in the openCRX FAQ). The openCRX distribution includes the required configuration and deployment files for JBoss (which is also Open Source and free), BEA Weblogic, and IBM WebSphere. Installation guides are available from http://www.opencrx.org/documents.htm. The remainder of this document assumes that you decided for JBoss and hence – after following the openCRX Installation Guide for JBoss - you should have a working installation of the JBoss application server. If you follow our application server installation guides you will also install openMDX, the leading Open Source MDA platform. Obviously, if you ended up making different choices, you can still follow this guide. You might have to make some minor adjustments to the instructions given here and some of our screen shots might look somewhat different from what you will see on your screen. Assuming you have JBoss up and running, the last few lines of your console output should look similar to the following ones: Listing 1: Console Output – JBoss startup
...
Now you are ready to continue.
3 openCRX Setup and ConfigurationOnce the database is ready and openCRX properly deploys on your application server there are still a few tasks left to set up and configure openCRX. This chapter guides you through these tasks on a step-by-step basis. 3.1 OverviewLet us give you a brief overview of the tasks ahead before we get started:
All right, let's get started. 3.2 Verify/Create Application Server LoginsFor the following steps we assume that the openCRX administrator has configured the users admin-Root, admin-Standard and guest with the appropriate roles on the application server. In the case of JBoss this requires creating/editing the files users.properties and roles.properties as follows: Listing 2: File users.properties with syntax user=password admin-Root=rootSecret Listing 3: File roles.properties with syntax user.Roles=role1,role2,... admin-Root.Roles=OpenCrxRoot
3.3 First Login / Initial Setup as admin-RootConnect to the login page of openCRX. The exact URL depends on your deployment details. For a standard openCRX deployment to JBoss running on your local machine and listening at port 8080 the URL is http://localhost:8080/opencrx-core-CRX/Login You should see the openCRX Login page as follows:
Figure 1: openCRX Login page
3.3.1 Login as admin-RootEnter admin-Root into the field Username and then enter rootSecret into the field Password (you may have chosen a different password, i.e. enter the password you chose during installation/configuration of the application server):
Figure 2: First login with admin-Root / rootSecret Click the button
The openCRX servlet is initialized during this first login, i.e. don't kill the browser if it takes a while. The application console output will look similar to the following listing: Listing 4: Console Output – Initialization of the openCRX servlet
10:28:08,719 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in
21s:922ms
After the successful startup of the openCRX servlet you see the start screen as shown in the figure below. You should at least see the root objects Administration, Codes, Security Realm, Security Policies, and Security Subjects:
Figure 3: Start screen of admin-Root 3.3.2 Create Data Segment “Standard”Execute the operation Actions > Create Administrator to create a new segment and selected default accounts (including an administrator's account which allows you to manage the newly created segment). Set the field Segment name to Standard. Leave the field Admin principal name empty and set the fields Initial password and Password again to * as shown in the figure below:
Figure 4: Create a new segment named Standard
Next you click OK to execute the operation Create Administrator which creates the segment named Standard. The result of executing this operation should look as follows:
Figure 5: Result of operation Create Administrator 3.3.3 Import Codes and DataopenCRX is distributed with many code tables and several data files (e.g. unit of measurement information, standard activity management process). Code tables and data files must be imported from the provided XML files to make them available to openCRX. Execute the operation View > Reload and then click Yes to start the import:
Figure 6: Load Code Tables and Data – Step 1
Figure 7: Load Code Tables and Data – Step 2 Please note that this operation takes some time to complete as thousands of objects are made persistent in your database during the import. The console output will look similar to the following listing: Listing 6: Console Output – Importing Codes and Data
... 3.3.4 Set Access Levels of CodesNavigate to the package Codes by clicking on the Root menu entry Codes. Then execute the operation Security > Set Access Level as shown below:
Figure 8: Execute Operation Set Access Level Set the parameters as follows (see also figure below): Browse access level: [4]
global
Figure 9: Parameters of Operation Set Access Level Please note that this operation also takes a fair amount of time to complete. 3.4 Create a new User guestNew users are created with the following steps:
The following sections will guide you through the creation of a new User guest with permission to access the previously created segment Standard. 3.4.1 Create a new Subject guestAs admin-Root, navigate to the package Security Subjects and then create a new Subject with the creator menu New > Subject as shown below:
Figure 10: Create a new Subject Enter guest into the field Description. More importantly, change the proposed Qualifier to guest as shown in the figure below:
Figure 11: Change the Subject's Qualifier to guest
Next you click Save to store this new Subject. You should now see 3 Subjects in the grid Subjects:
Figure 12: Grid Subjects with admin-Root, admin-Standard, and guest 3.4.2 Create a new Principal guest in realm DefaultNext, you need to create a new Principal in realm Default.
Click on the package Security Realm in the root menu and then navigate to the realm Default. You can do this – for example – by clicking on the bread crum entry Security Realms as shown in the figure below:
Figure 13: Click on bread crum entry Security Realms Next you click on the icon of the Realm Default. Your screen should now look as follows:
Figure 14: Realm Default Select the creator menu New > Principal as shown as shown below:
Figure 15: Create a new Principal You need to link this Principal with the previously created Subject. Click on the looking glass icon of the field Subject to open the Lookup Inspector in a new browser window. Select the Subject guest by clicking in the appropriate check box:
Figure 16: Select Subject guest in the Lookup Inspector Next you enter the Principal name (which will be the user/login id) of the Principal into the field Qualifier (e.g. guest as shown in the figure below):
Figure 17: Change the Principal's Qualifier to guest Next you click Save to store this new Principal. In the grid Principals you should now see 2 Principal Groups (Administrators, Users) and 3 Principals (admin-Root, admin-Standard, and the newly created Principal guest):
Figure 18: Grid Principals with newly created Principal guest 3.4.3 Make new Principal guest member of group UsersNext you must add the newly created Principal guest to the appropriate Principal Group. Navigate to the newly created principal (i.e. load it into the inspector by clicking on its icon). Click on the looking glass in the tab Member of Principal Groups to open the Lookup Inspector:
Figure 19: Add Principal guest to Principal Group Users – Step 1 The Lookup Inspector lists all the principals and principal groups of the respective realm; principal group entries have a check box:
Figure 20: Add Principal guest to Principal Group Users – Step 2 Select the Principal Group Users by clicking the appropriate check box as shown in the figure above. This will automatically close the Lookup Inspector.
Back in the tab Member of Principal Groups you click the button [+] to add the Principal to the Principal Group Users selected in the previous step:
Figure 21: Add Principal guest to Principal Group Users – Step 3
Finally, this principal group should show up in the Grid Member of Principal Groups as shown below:
Figure 22: Add Principal guest to Principal Group Users – Step 4 That's it for admin-Root. You can now log out by clicking on Logoff. 3.4.4 Segment Administrator creates new ContactEnter admin-Standard into the field Username and then enter adminSecret into the field Password (you may have chosen a different password, i.e. enter the password you chose during installation/configuration of the application server):
Figure 23: First login with admin-Standard / adminSecret Click the button
As administrator you first have to create a new Contact in Accounts for the new user guest. To do so, click on the package Accounts in the root menu and then select the creator menu New > Contact as shown in the figure below:
Figure 25: Create new Contact – Step 1 This brings up the form for new contacts. Enter guest into the field Last name (feel free to provide additional information, but don't change the Qualifier unless you know exactly what you are doing):
Figure 26: Create new Contact – Step 2 Next you click Save to store this new Contact. This takes you back to the Account grid. 3.4.5 Segment Administrator creates new UserClick User Homepages and select the operation Actions > Create User... which allows you to create and initialize a new user. Set the fields to the values as shown below – type guest into the field Principal name, use the Lookup Inspector to fetch values for Contact and Primary user group (note that you must use the Lookup Inspector to fetch values for the parameters Contact and Primary user group, i.e. you cannot just type some text into these fields), and then type a password (e.g. guest) into the fields Initial password and Password again:
Figure 27: Create new User
Next you click OK to execute the operation Create User which creates the User named guest. The result of executing this operation should look as follows:
Figure 28: Result of operation Create User The grid User Homes contains now 2 entries: admin-Standard and guest.
Congratulations! You have successfully created a new user guest. The new user should now be able to login. You can try this out with the following steps:
4 Next StepsNow that you have successfully installed and configured openCRX you might want to have a look at some of the additional documentation published at http://www.opencrx.org/documents.htm. License
The contents of this file are
subject to a BSD license (the "License"); you may not use
this file except in compliance with the License. You may obtain a
copy of the License at http:// Copyright 2006 © CRIXP Corp. All rights reserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||