Working with specific period on the Portal and "jobs" are defined as services;
This structure was created on the portal follow the map, this map work times specified in the java code Incentives can be defined. Java code specified times time maps are loaded onto the system. "PAR" project with their own functions in this manner specified çalıştırılar times the requested operation is implemented as periodically.
Using Netweaver Developer Studio to create a job;
Netweaver Developer Studio enables the creation of over jobların java classes and types of projects are available, created a job'un stages are as follows;
• NWDI (NetWeaver developer studio) should be opened on a new portal project.
• Create name of the project be required to determine the project will be initiated.
• Press the right mouse click on the project created new --> other choice must be made.
• The selection of the options should be made repositroy framework --> shecduler task wizard.

• Create specifications and must have job'ın be desired areas are determined and job formation has been completed.

Built to be associated with a job'ın java functions;
After creating a job in the job for NWDI. Açılmıl java extension would run this file in the desired functions can be created java or another field that was created is a java function call, sample code is as follows;
public void run (String id, Properties properties) ( / / Implement the tasks to be scheduled util utility = new utility (); / / Receive processing changes util.process (2); )
The above code is to be held explanation for this java class as a function of each class is run util fonksiyonuda process is executed. In this way, the map used in this job function, the process will run as close as you periyodlarına.
Transactions determined to be created and developed job'ların java code;
These codes are created pure java applications java classes of functions within the portal, or portal than on the structures associated with whether the process can perform. As an example, to connect oracle database performs code is as follows blog;
public Connection connect () ( Connection conn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/OracleJ2EDB"); conn = (Connection) dataSource.getConnection (); ) Catch (NamingException ex) ( ) Catch (SQLException ex) ( ) return conn; ) public void disconnect (Connection conn) ( try ( conn.close (); ) Catch (Exception ex) ( ) ) SAP portal that provides database connection code sample; lconnect public Connection () ( Connection lconn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/SAPSR3DB"); lconn = (Connection) dataSource.getConnection (); ) Catch (Exception ex) ( ) lconn return; ) public void ldisconnect (lconn Connection) ( try ( lconn.close (); ) Catch (Exception ex) ( ) )
Created to be used on a portal that provides job'ların iView and use features;
Use features that provide Jobların iView, the portal has been developed for the determination of the characteristics of each structure by the creation of methods that are portalaap.xml file. Within this structure, a portal will be connected as iview'inin visual and functional structures are indicated. This process portalapp.xml file " name" feature is provided with. This feature runs every specified iView provides java code to work. Visual features used in building "jsp" pages, and in addition to this page through the use of html element is created. Java code to the routing process within the jsp page is provided with the following code blog;
IResource jspResource = request.getResource ( "jsp", "Example.jsp"); response.include (request, jspResource);
Time maps are created on the portal jobs regulation;
Portal created maps on job'ların time that the System Administration System Configuration --> Knowledge Management Content Management Tasks --> Global Services directory under Schuduler --> can be displayed. A screenshot of this field is as follows;
Built to be associated with a job'ın java functions;
After creating a job in the job for NWDI. Açılmıl java extension would run this file in the desired functions can be created java or another field that was created is a java function call, sample code is as follows;
public void run (String id, Properties properties) ( / / Implement the tasks to be scheduled util utility = new utility (); / / Receive processing changes util.process (2); )
The above code is to be held explanation for this java class as a function of each class is run util fonksiyonuda process is executed. In this way, the map used in this job function, the process will run as close as you periyodlarına.
Transactions determined to be created and developed job'ların java code;
These codes are created pure java applications java classes of functions within the portal, or portal than on the structures associated with whether the process can perform. As an example, to connect oracle database performs code is as follows blog;
public Connection connect () ( Connection conn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/OracleJ2EDB"); conn = (Connection) dataSource.getConnection (); ) Catch (NamingException ex) ( ) Catch (SQLException ex) ( ) return conn; ) public void disconnect (Connection conn) ( try ( conn.close (); ) Catch (Exception ex) ( ) ) SAP portal that provides database connection code sample; lconnect public Connection () ( Connection lconn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/SAPSR3DB"); lconn = (Connection) dataSource.getConnection (); ) Catch (Exception ex) ( ) lconn return; ) public void ldisconnect (lconn Connection) ( try ( lconn.close (); ) Catch (Exception ex) ( ) )
Created to be used on a portal that provides job'ların iView and use features;
Use features that provide Jobların iView, the portal has been developed for the determination of the characteristics of each structure by the creation of methods that are portalaap.xml file. Within this structure, a portal will be connected as iview'inin visual and functional structures are indicated. This process portalapp.xml file "
IResource jspResource = request.getResource ( "jsp", "Example.jsp"); response.include (request, jspResource);
Time maps are created on the portal jobs regulation;
Portal created maps on job'ların time that the System Administration System Configuration --> Knowledge Management Content Management Tasks --> Global Services directory under Schuduler --> can be displayed. A screenshot of this field is as follows;
This area has been selected job on the action required to be the time this job'a map is displayed, the screen image is as follows;
On-screen by clicking the edit button in the desired shape changes can be made.
Important points on usin Time Map;
Time will run parallel on a map for actions to be considered when a point is to prevent conflicts. For example, a daily, instant, weekly and monthly information on a system which processes all of these different job if they use one of them is the map of the likelihood of conflict is high, because this sebebten maps done on time schedules should be subjected to careful calculations.

wonderfull
YanıtlaSil