Advertisements

Wednesday, December 18, 2013

Windows equivalence of "ps -ef | grep java" linux command

Dejo un comando muy util para matar procesos en Windows, es su similar en Linux.

1wmic process where "name='java.exe'" get ProcessID, Commandline /format:list

Este es otro comando es para matar el proceso usando el ID, similar al "kill -9 ID".

1taskkill /F /PID 827

Tuesday, November 5, 2013

Oracle BPA ServerSetting files configuration

Para usar Oracle BPA Repository tuve que realizar algunas configuraciones en los archivos que se encuentran en $BPA_HOME/server/config

En los siguientes archivos.


  • defaultServerSettings.cfg
  • userServerSettings.cfg
  • setupServerSettings.cgf
En seguida voy a poner el contenido de cada archivo:

defaultServerSettings.cfg

001<!--xml version="1.0" encoding="ISO-8859-1" ?-->
002 
003<defaultserversettings>
004  
005  <!-- specifies the role of this server -->
006  <!-- can be one of: SM BS BS_SM LOCAL STANDARDSRV ADAPATER -->
007  <serverrole>STANDARDSRV</serverrole>
008   
009  <!-- internal switch for server mode -->
010  <!--  can be one of: STANDARD DEV TEST -->
011  <servermode>STANDARD</servermode>
012     
013    <!-- hostname of ARIS Site Manager machine -->
014  <sitemanager location="yourhostname">
015     
016    <profiles>
017     <!-- in this section the server tcp/ip endpoint profiles are configured -->
018     <!-- for each profile one can configure -->
019     <!-- port : the tcp/ip port to listen -->
020     <!-- threadpoolsize : the thread pool size to handle the incoming requests -->
021     <!-- options : additional start parameters -->
022     <!-- ssl : the tcp/ip port to listen for SSL connections. This is optional and only for the public profile relevant -->
023     <!-- debug properties for the CORBA orb can be specified in a nested orbproperties element -->
024      
025     <public port="16070" localport="16075" threadpoolsize="100" options="">
026      <!-- can be placed in userServerSettings.cfg to enable ORB logging -->
027      <!-- <orbproperties>ooc.orb.trace.connections=1</orbproperties> -->
028      <!-- <orbproperties>orb.clientrequests=orb.logger.client</orbproperties> -->
029      <!-- <orbproperties>orb.serverrequests=orb.logger.server</orbproperties> -->
030     </public>
031      
032     <private port="16071" localport="16077" threadpoolsize="110" options="">
033       
034     </private>
035      
036     <agent port="16073" localport="16078" threadpoolsize="20" options="">
037       
038     </agent>
039      
040     <!-- port where simulation server is listening -->
041     <simulationserver port="16080" localport="16081">
042    </simulationserver></profiles>
043     
044    <!-- ARIS Business Publisher settings -->
045    <!-- the bpserviceport can be used to specifiy the communication port between ARIS Server and the       -->
046  <!-- Business Publisher Server. following parameter are important:                              -->
047  <!-- "value" specifies the connection port which is normally preconfigured based on the major ARIS Version     -->
048  <!-- "usenameservice" specifies if instead of the included CORBA Server a proprietary nameservice will be   -->
049  <!-- used. In that case, the value should be changes to "true"             -->
050  <!-- "nameserviceprefix" specifies the prefix which will be used as root name for the name service.    -->
051  <bpserviceport value="16079" usenameservice="false" nameserviceprefix="">
052  <!-- The bpdocumentsize can be used to specifiy the maximum document size which will be used during collecting -->
053  <!-- further documents. This option is only relevant when using "Copy documents" option.      -->
054  <!-- If document size is higher than size parameter, document will directly transferred to Business    -->
055  <!-- Publisher Server. If not, next document will be collected until size is reached.       -->
056  <!-- Attention: This parameter influences directly the amount of memory consumption in ARIS Business Server  -->
057  <!-- Attention: Please be careful to increase this parameter. Please check that value is corresponding with  -->
058  <!-- Attention: available hardware environment                 -->
059  <!-- Size in MegaBytes (mb)-->
060  <bpdocumentsize size="20">
061  
062  
063  
064    <!-- Java Runtime Environment (JRE)settings -->
065   <jre>
066    <!-- path to JRE -->
067    <path>${sys:aris.server.home}/jre</path>
068     
069    <!-- maximum memory settings for server and agent -->
070    <maxmem server="512m" agent="16m" permspace="96m">
071     
072    <!-- options relevant for running java. Need not be changed in general! -->
073    <runoptions>
074     <option>-server</option>
075     <option>-XX:+DisableExplicitGC</option>
076     <option>-Xrs</option>
077     <option>-Daris.server.home=${sys:aris.server.home}</option>
078     <option>-Djava.endorsed.dirs=${sys:aris.server.home}/endorsed</option>
079     <option>-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser</option>
080     <option>-Djava.security.auth.login.config=${sys:aris.server.home}/config/jaas.cfg</option>
081      
082     <option>-Dcom.sun.jndi.ldap.connect.pool.protocol=none plain ssl</option>
083     <option>-Dcom.sun.jndi.ldap.connect.pool.timeout=300000</option>
084     
085     <!-- options relevant for unix. Need not be changed in general! -->
086     <unix>
087      <option>-Djava.awt.headless=true</option>
088      <option>-d64</option>    
089     </unix>
090    </runoptions>
091   </maxmem></jre>
092     
093    <!-- Turn on/off account loggin. That means logging of user login/logout times -->
094    <!-- level : MINIMAL means log times and key only -->
095    <!--         DETAILED means log complete information -->
096    <accounting state="on" level="MINIMAL">
097     
098    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
099    <!--   * use_dongle: indicates, if a Dongle is used in the system.   -->
100    <!--                 on: Yes, get the licenseKey from the dongle   -->
101    <!--                 off: No, get the licenseKey from this cfg File   -->
102    <!--   * key: The license Key for this installation     -->
103    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
104    <licenseservice use_dongle="off" key="">
105 
106   
107  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
108    <!-- The BL is a client of one license service per application server farm   -->
109    <!--   * timeout_interval : On connecting to the license service the app server -->
110    <!--                        passes the wanted timeout interval after which   -->
111    <!--                        the license service would assume the app server to  -->
112    <!--                        be dead.                                         -->
113    <!--                        The value is measured in milliseconds.           -->
114    <!--   * heartbeat_interval: The interval the appserver sends a heartbeat    -->
115    <!--                         message to the license service.                 -->
116    <!--                         The value is measured in milliseconds.          -->
117    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
118    <licenseservice_client timeout_interval="300000" heartbeat_interval="50000">
119      
120      
121    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
122    <!-- The business server expects a call from the client to keep          -->
123    <!-- it's session alive. If a call does not occur in time, the client session will be considered  -->
124    <!-- as a dead connection and removed.                                               -->
125    <!--   * timeout_interval :  The timeout interval at which the appserver     -->
126    <!--                         checks for active client sessions -->
127    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
128    <appservertimer timeout_interval="60000"
129 
130 
131  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
132    <!-- The DL is a client of several lockservice instances                     -->
133    <!--   * timeout_interval : On connecting to a lock service the app server   -->
134    <!--                        passes the wanted timeout interval after which   -->
135    <!--                        the lock service would assume the app server to  -->
136    <!--                        be dead.                                         -->
137    <!--                        The value is measured in milliseconds.           -->
138    <!--   * heartbeat_interval: The interval the appserver sends a heartbeat    -->
139    <!--                         message to the lock service.                    -->
140    <!--                         The value is measured in milliseconds.          -->
141    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
142  <lockservice_client timeout_interval="300000" heartbeat_interval="50000">
143 
144 
145 
146  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
147    <!-- There are different modes for starting the application server:          -->
148    <!--   * debugoutput: This mode enables debug output in the log file         -->
149    <!--                 value 'off': no debug output  (default)                 -->
150    <!--                 value 'on': debug output                                -->
151    <!--   * debuglevel: Level for debug output if enabled. Defaults to 'INFO'   -->
152    <!--                   Use 'ALL' if you want most detailed log output     -->
153    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
154    <startmode debugoutput="off" debuglevel="INFO">
155  
156  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
157    <!-- The following section is used to determine if Solar should run in       -->
158    <!-- FastTrack-Mode                                                          -->
159    <!--   * fastTrack:  This mode signals that the Solar-Synch. runs in         -->
160    <!--                 FastTrack Mode                                          -->
161    <!--                 value 'on': FastTrack-Mode                              -->
162    <!--                 value 'off': normal mode (default)                      -->
163    <!--   * announcewarnings: value 'on' if solar should output warnings (default) -->
164    <!--        value 'off' if solar should output no warnings    -->
165 <!--   * checkStructureLock: value 'on' if solar should check the structure lock while synchronisation (default) -->
166 <!--                         value 'off' if solar should not check the structure lock while synchronisation -->
167    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
168    <solarmode fasttrack="off" announcewarnings="on" checkstructurelock="on" writekwwaittime="1">
169  
170    
171    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
172    <!-- ARIS DMS configuration                          -->
173  <!-- switch status decides, whether the internal dms system is turned on or not  -->
174    <!-- value "on" (upper- or lowercase is both ok) turns system on,           -->
175  <!-- all others turn it off                        -->
176    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
177  <dmsintegration state="off">
178   
179    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
180    <!-- - - - -  specifies the location of your report configurations  - - - -  -->
181    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
182  <!-- Need not be changed in general! -->
183  <reportdir location="${sys:aris.server.home}/templates/">
184  <!-- Need not be changed in general! -->
185    <report_developer_language active="off">
186    <report>
187        <scheduler active="true" minutescycletime="10">
188    </scheduler></report>
189  
190 <!-- Set to "true" if new report standard output object should be used -->
191    <report use-new-output="false"
192     
193 <!-- Options for the ReportServer that can execute VB-Reports -->
194    <!-- * active : true -> start ReportServer on server start -->
195    <!-- * starttimeout : time in miliseconds to wait for the ReportServer to start -->
196    <reportserver active="on" starttimeout="30000">
197     
198     <!-- path to executable. Need not be changed in general! -->
199     <path>${sys:aris.server.home}/..</path>
200    </reportserver>
201     
202     
203     
204     
205    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
206    <!-- Possible logins on the server                      -->
207    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
208    <!-- Need not be changed in general! -->
209    <loginfactories>
210   <loginfactory classname="com.idsscheer.aris.server.bl.logic.aris.AArisLogin">
211  </loginfactory></loginfactories>
212 
213  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
214    <!-- Possible login info provider for webreports                     -->
215    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
216    <!-- Need not be changed in general! -->
217    <logininfoproviders>
218   <logininfoprovider type="0" classname="com.idsscheer.aris.server.bl.common.reportobjects.aris.logic.AProvideArisWebLoginInfo">
219  </logininfoprovider></logininfoproviders>
220 
221     
222    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
223    <!-- Configuration Provider Service Section                            -->
224    <!--   * backup :  Backup of the sysconfig directory after successful start.-->
225    <!--                (not requried)          -->
226    <!--                value 'off': no backup      -->
227    <!--                value 'on' : backup      -->
228    <!--   * on_demand: Configuration files (ie. filter) can be loaded on demand.-->
229    <!--                (not requried)          -->
230    <!--                value 'off': load all  (default in not standalone mode) -->
231    <!--                value 'on' : load on demand (default in standalone mode) -->
232    <!--   * evaluation_filter_wins:                                             -->
233    <!--     When using a evaluation filter the orders (ie. attribute)-->
234    <!--     of the method filter is applied                          -->
235    <!--                (not requried)          -->
236    <!--                value 'off': order method filter is applied    (default) -->
237    <!--                value 'on' : order evaluation filter is applied          -->
238    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
239    <sysconfig backup="off" on_demand="off" path="${sys:aris.server.home}/sysconfig" evaluation_filter_wins="off">
240    </sysconfig>
241 
242 
243  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
244    <!-- HTLMGENERATOR                                                           -->
245    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
246    <htmlgen>
247     
248    <!-- use this to overwrite default app server name that is generated into the html pages -->
249    <appserver name="">
250     
251    <!-- list of languages the html pages should be generated into -->
252    <languagelist default="en">
253    <!--
254    <language tag="de"/>
255    -->
256   </languagelist>
257    
258   <!-- default by pages for all installed languages will be generated. With this setting you can restrict page generation to the specified languages -->
259   <!-- the value is a comma separated list of language tags, e.g. "de,en" -->
260   <outputlanguages value="">
261    
262    
263   <templatepath path="${sys:aris.server.home}/templates/htmlgen">
264  
265   <genlist>
266    <genfile target_dir="app" target_name="dblist.html" database_template="aris_database_app.html">
267  
268    <!-- add this to user settings to turn on ssl encryption
269    <genfile target_dir="ssl" target_name="dblist.html" database_template="aris_database_ssl.html"/>
270    <genfile target_dir="lan" target_name="dblist.html" database_template="aris_database_lan.html"/>
271    -->
272  
273   </genfile></genlist>
274  
275   <dblist use="true">
276  
277     <!-- Please edit only these paths for HTMLgenerator configuration-->
278     <!-- path where the htlm pages will be generated to -->
279   <outputpath path="${sys:aris.server.home}/html/">
280   <!-- path where the htlm pages backup will be generated to -->
281   <backuppath path="${sys:aris.server.home}/html/backup">
282   <backupperiod period="7">
283   </backupperiod></backuppath></outputpath></dblist></templatepath></outputlanguages></appserver></htmlgen>
284 
285 
286  <!-- mail server to use for mailing in admin agent and busines optimizer -->
287  <mailhost host="test.de" username="user" password="password">
288   
289  
290  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
291   <!-- Mailing System BO                                               -->
292   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
293    <mailservice wait_time="500" mail_check_intervall="5000" count_before_wait="50" adress="adminservice@yourcompany.com">
294    
295    
296   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
297    <!-- BO Blocksize for loading KPIs                                 -->
298    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
299    <!-- Need not be changed in general! -->
300    <boblocksize transportsize="10000" rangesize="100000">
301     
302     
303     
304    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
305    <!-- ARIS Administration Agent                   -->
306    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
307    <adminagent heartbeat_interval="15000" servicecheck_interval="20000" timeout_interval="300000" dbserverwatch="on" alivecheckretries="3" restartonfailure="on" startuptimeout="300000">
308        <mailing state="off" language="de" warnings="on" username="adminservice" address="adminservice@yourcompany.com">
309          <!-- add recipient elements in userServerSettings.cfg to configure your recipients
310            <recipient address="adminservice@yourcompany.com" />
311          -->
312        </mailing>
313    </adminagent>
314  
315  
316   
317  
318  
319  
320 <!-- Settings for simulation server -->
321 <!-- * active : true -> start simulation server on server start -->
322 <simuserver active="true">
323   <!-- max memory the simulation server should use -->
324  <maxmem>512m</maxmem>
325  <!-- Need not be changed in general! -->
326   <property>server.bin.path=${sys:aris.server.home}</property>
327    <property>server.start.cmd=y-simusrv.exe</property>
328  <property>server.start.param="${sys:aris.server.home}/config/simusrv.cfg"</property>
329  <property>server.run.path=${sys:aris.server.home}</property>
330  <!-- Need not be changed in general! --> 
331  <fallback>
332   <property>server.bin.path=${jre.path}/bin</property>
333      <property>server.start.cmd=java</property>
334   <property>server.start.param=-server -XX:MaxPermSize=92m -XX:NewRatio=2 -Djava.endorsed.dirs="${sys:aris.server.home}/simusrv/endorsed" -classpath "${sys:aris.server.home}/simusrv/y-simulationserver-3.jar" -Xrs com.idsscheer.simulationserver.core.AMain "${sys:aris.server.home}/config/simusrv.cfg"</property>
335   <property>server.run.path=${sys:aris.server.home}</property>
336  </fallback>
337     
338 </simuserver>
339  
340  
341  
342  
343  
344 <!-- password for administrative users like SITEADMIN, SCRIPTADMIN -->
345 <passwords>
346  <siteadmin>e3123ece7f283400a988e2187080902811e87f5c</siteadmin>
347  <scriptadmin>4fa22348945ed26474789cf5683b9445d74fd181</scriptadmin>
348 </passwords>
349  
350  
351 <!-- Settings for LDAP integration -->
352 <!-- pagesize : Some LDAP systems restric the total search results returned by a limit. With that setting you can get the results in chunks of the specified value. 0 means do not split into chunks -->
353 <!-- referral : specifies the LDAP referral handling: possible values are 'ignore' 'follow' or ''  -->
354 <!-- connect_timeout : specifies a connect_timeout in milliseconds to use when connecting to a LDAP system. An integer less than or equal to zero means to use the network protocol's (i.e., TCP's) timeout value. -->
355 <!-- search_match_attribute : LDAP attribute against wich the search is done when using the import wizard -->
356 <ldap pagesize="0" referral="" connect_timeout="0" search_match_attribute="cn" use_connection_pool="false">
357  
358 <!-- Need not be changed in general! -->
359 <support_unique_one_to_n_cxns active="off">
360  
361 <!-- here you can specifiy that client below this version  are not allowed to connect to this server -->
362 <clientversion minimalrequired="">
363  
364 <!-- with this settings you can enable custom events for db actions like create delete -->
365 <customdbevents state="off">
366     
367 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
368 <!-- AGE Server location                                -->
369 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
370 <ageserver location="">
371 
372  
373     
374 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
375 <!-- AML Export Options:                                                       -->
376 <!-- Here we can enable or disable the export of the Features of Freeformtext  -->
377 <!-- or 3D Symbol Effect.                                                      -->
378 <!-- Attribute 1: enable/disable the export of the new 3D Symbol Effect        -->
379 <!-- Attribute 2: enable/disable the export of the customized information on   -->
380 <!--              freeformtext.                                                -->
381 <!-- Attribute 3: enable/disable the export of the state information for       -->
382 <!--              CentraSite-related objects                                   -->
383 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
384 <amlexport enableexportsymboleffect="off" enableexportfreeformtext="off" enablecentrasitestate="off">  
385  
386  
387  
388 <!-- lockretrymaxtime specifies the time in milliseconds the server should wait in case of a second started merge/versioning run -->
389 <!-- the server then waits up to lockretrymaxtime ms to gain the merge lock to see if the merge run can be started. -->
390 <merge lockretrymaxtime="20000">
391  
392  
393 <!-- By default session id's are generated continously. By setting random_id_generation to 'on' one can change that to a random strategy -->
394 <sessions random_id_generation="off">
395  
396 <access_right_handling_for_deleted_groups active="off">
397  
398 <!-- with this setting you can enable the html generation of documents -->
399 <externaldocument includehtml="false">
400  
401 <!-- On 64 bit JREs there is a known bug, which crashs the java process while drawing curves (curved ARIS symbols and connections) on a scaled java graphics context. -->
402    <!-- With this setting you can change the threshold of curves and scaling in order to prevent the application crash. -->
403    <!-- 1. "curve" parameter: Curves with a value smaller than this threshold will not be drawn, if the scaling factor of the graphics context is smaller than the threshold defined by the third value. -->
404    <!--    Choose a higher value in order to fix problems; choose a lower value in order to draw smaller curves as well; choose  -->
405    <!-- 2. "smallcurve" parameter: Curves with a value smaller than this threshold will not be drawn at all (independent from the scaling factor). -->
406    <!-- Use a negative value for turning off curves completely; choose a higher value in order to fix problems; choose a lower value in order to draw smaller curves as well -->
407    <!-- 3. "scale" parameter: Threshold of scaling. Curves with a smaller value than the value defined by the first threshold will not be drawn if the scaling value of the graphics is smaller than this value -->
408    <!--    Choose a smaller value in order to fix problems; choose a higher value in order to draw smaller curves as well. -->
409    <!-- 4. "scaleOfInnerSubprocesses" parameter: Threshold of scaling for BPMN 2.0 subprocesses. In BPMN 2.0 models the assigned model of an expanded subprocess, -->
410    <!--    is drawn inside the object occurence, if and only if the ratio of the space available inside the object occurrence and the need space for the model is higher than this value -->
411    <!--    Choose a smaller value in order to fix problems; choose a higher value in order to draw smaller models as well. -->
412    <!--    Choose a negative value in order to draw no models inside expanded subprocesses at all -->
413 <!-- 5. "scaleOfDashedStroke" parameter: Threshold of scaling for replacing the stroke under some circumstances. -->
414    <!--    Choose a higher value in order to fix problems -->
415    <!--    Choose a negative value in order to disable this workaround; could be used if the lines of a model or the edges of an symbol are not as nice as usual -->
416 <!-- In order to fix crashes securest (this means turning off drawing curves completely; and drawing no models inside expanded subprocesses at all), use the following settings:  -->
417 <!--  <Curve64BitThresholds curve="50" smallcurve="-1" scale="0.5" scaleOfInnerSubprocesses="2" scaleOfDashedStroke="100"/>  -->
418 <!-- In order to turn off this workaround for the mentioned bug, use the following settings: -->
419 <!--  <Curve64BitThresholds curve="0" smallcurve="0" scale="0.5" scaleOfInnerSubprocesses="-1" scaleOfDashedStroke="-1"/> -->
420 <!-- A proven configuration with average values is the following: -->
421 <!-- <Curve64BitThresholds curve="50" smallcurve="10" scale="0.5" scaleOfInnerSubprocesses="0.01" scaleOfDashedStroke="0.1"/> -->
422 <curve64bitthresholds curve="0" smallcurve="0" scale="0.5" scaleofinnersubprocesses="0.01" scaleofdashedstroke="0.1">
423  
424 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
425 <!-- Aris Download Client Webserver Mapping:           -->
426 <!-- The following two properties will be used by the WebMethods Integration   -->
427 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
428 <!-- Port 80 as default Value  downloadType values = "app", "lan", "ssl" -->
429 <webserverport port="80" downloadtype="app">
430  
431 <!-- Port 9090 as default Value -->
432 <publisherserver>
433  <server name="localhost" port="9090"
434 </server></publisherserver>
435 
436 <centrasite_integration>
437     <submithumantask search_interval="5000" search_timeout="600000">
438 </submithumantask></centrasite_integration>
439  
440 <!-- Set to "true" if "Data Service" is provided by Service Enabling -->
441 <datalink active="false">
442 
443    <!-- If you set the following to "true" then HTML files created by Report and static Publisher will have the same size as in the clients Designer -->
444 <graphics useclientscaling="false">
445 
446</graphics></datalink></webserverport></curve64bitthresholds></externaldocument></access_right_handling_for_deleted_groups></sessions></merge></amlexport></ageserver></customdbevents></clientversion></support_unique_one_to_n_cxns></ldap></boblocksize></mailservice></mailhost></report></report_developer_language></reportdir></dmsintegration></solarmode></startmode></lockservice_client></appservertimer></licenseservice_client></licenseservice></accounting></bpdocumentsize></bpserviceport></sitemanager></defaultserversettings>

userServerSettings.cfg
01<!--xml version="1.0" encoding="ISO-8859-1" ?-->
02<userserversettings>
03<sitemanager location="yourIP">
04 
05<profiles>
06 
07<public port="16070" localport="16075" threadpoolsize="100" options="--host yourIP">
08 
09<private port="16071" localport="16077" threadpoolsize="110" options="--host yourIP">
10 
11<agent port="16073" localport="16078" threadpoolsize="20" options="--host yourIP">
12 
13<simulationserver port="16080" localport="16081">
14</simulationserver></agent></private></public></profiles>
15</sitemanager></userserversettings>


setupServerSettings.cfg


01<!--xml version="1.0" encoding="ISO-8859-1"?-->
02<setupserversettings>
03 
04 <serverrole>BS_SM</serverrole>
05 
06 <licenseservice key="S9100099-BPA11G_BS-V71svU1-WqlWcRl5nyybfi1toq+DHNDVln0celVNjn9JBAqTMnrG9mbV0w748NU1jyYbev0yj/8bT5oqzLuq6ySpgP0S9oLxK6JSyF0oDDSfucsHMLzgG0cVTBL97jh3YBT0n8MOI3Ii92qzHcRXhIwNB1qWiTmBLvwYX03fSHObztvretc=">
07 
08<jre>
09 <maxmem agent="512m" permspace="256m" server="4300m">
10</maxmem></jre>
11<simuserver>
12 <maxmem>1842m</maxmem>
13</simuserver>
14<ageserver location="http://yourhostname:7071/age">
15 
16 
17 
18<htmlgen>
19<outputpath path="E:\Oracle\Oracle BPA Suite\server\html\">
20<backuppath path="E:\Oracle\Oracle BPA Suite\server\html\backup">
21 <languagelist>
22  <language tag="en">
23 </language></languagelist>
24</backuppath></outputpath></htmlgen>
25</ageserver></licenseservice></setupserversettings>
Al terminar de editar los archivos hay que reiniciar el servicio del Repository.

Wednesday, October 9, 2013

BPEL 11g - Disabling the Auto recovery

En este blog encontre esta solucion interesante para deshabilitar el "Recovery" y evitar que las instancias de BPEL se queden en el estatus "Running".

http://www.albinsblog.com/2011/10/oracle-soa-suite-11g-disabling-auto.html#.UlWnNVC3_Al



Scenario 1:Auto Recovery only for sync process.

  1. In the navigator, right click "soa-infra" and select "SOA Administration Common Properties" Advanced More SOA Infra advanced Configuration Properties
  2. In the Name Column, click GlobalTxMaxRetry (The maximum of times  a GLOBAL_RETRY FabricInvocationException can be retried before bubbling up)
  3. Set GlobalTxMaxRetry = 0 (Default : 2)
  4. Similary, GlobalTxRetryInterval (The number of seconds between retries in the case of GLOBAL_RETRY FabricInvocationException) Set GlobalTxRetryInterval = 0 (Default : 3)


Scenario 2: Disabling recovery attempts for faulted instances.
1. Log in to Oracle Enterprise Manager Fusion Middleware Control.
2. Right-click soa-infra.
3. Select SOA Administration > BPEL Properties.
4. Click More BPEL Configuration Properties.
5. In the Name column, click RecoveryConfig.
6. Expand RecurringScheduleConfig.
7. Set the following properties to values and click Apply.
maxMessageRaiseSize =0
8. Expand StartupScheduleConfig, respectively.
9. Set the following properties to values and click Apply.
maxMessageRaiseSize=0




Friday, September 27, 2013

Configuring JMS Distributed Queue step by step!

Enseguida voy a mostrar como crear una cola distribuidas las cuales se utilizan en ambientes del tipo CLUSTER.

Despues de ingresar a nuestra consola de Weblogic nos dirigimos a la ruta "Services/JMS Modules", si estamos en ambiente productivo bloqueamos la sesion.


Haciendo clic en el boton "New" procedemos a crear primeramente nuestro modulo el cual contendra nuestra fabrica de coneccion y nuestras colas.


Nombramos nuestro modulo, en mi caso lo llamare "MyJMSModule" y hacemos clic en el boton "Next".


Antes de finalizar seleccionamos el "check box" como se muestra en la imagen y presionamos el boton "Finish".


Ahora procedemos a activar la sesion para guardar esta configuracion.



A continuacion se muestra el modulo que acabamos de crear.



El siguiente paso es dar clic al modulo que acabamos de crear y procedemos a crear el "Subdeployment" antes de comenzara crear la fabrica de conexiones y nuestra cola. Para esto nos dirigimos al tab "Subdeployments" y hacemos clic en el boton "New".


Nombramos nuestro subdeployment, en este caso yo lo llamare "MyQueue" y hacemos clic en el boton "New".



En la siguiente pantalla tenemos que seleccionar los "Targets", en este paso vamos a reutilizar unos previamente configurados con la instalacion de SOA en el servidor de nombre "SOAJMSServer" en este caso encontramos uno por cada instancia configurada en el ambiente CLUSTER y las seleccionamos para finalizar haciendo clic en el boton "Finish".


Ahora procedemos a activar la sesion para guardar esta configuracion.


Bien, ahora podemos proceder a la creacion de la "Fabrica de Conexiones" que usara nuestra Cola, para esto dentro del modulo que creamos nos dirigimos al tab "Configuration".

Volvemos a activar la sesion.



Y damos clic al boton "New".



En esta pantalla tenemos que seleccionar "Connection Factory" y damos clic al boton "Next".


Ahora procedemos a nombrar este recurso en el cual en este ejemplo nombre lo siguiente:

Name: MyQueueCF
JNDI Name: jms/MyQueueCF

Y realizamos clic al boton "Next".


En la siguiente pantalla damos clic al boton "Advanced Targeting" el cual nos permetira seleccionar el "Subdeployment" previamente creado el cual nos permite apuntar los Server correspondientes.


Seleccionamos el "Subdeployment" anteriormente creado.


En seguida nos aparecera una lista de los Servers en los cuales estan previamente seleccionados segun la configuracion realizada en el "Subdeployment" anteriormente creado.


Damos clic en el boton "Finish" y activamos la sesion para guardar los cambios.


Una vez creada la Fabrica de Conexion procedemos a crear nuestra cola, para esto nos dirigimos al tab "Configuration" dentro de nuestro modulo creamos y tambien nos encontraremos la Frabrica de Conexion anteriormente creada.

Antes de comenzar actuvamos la sesion.



Hacemos clic en el boton "New".





En esta pantalla tenemos que seleccionar "Distributed Queue" y damos clic al boton "Next".


Ahora procedemos a nombrar este recurso en el cual en este ejemplo nombre lo siguiente:

Name: MyQueue
JNDI Name: jms/MyQueue

Y realizamos clic al boton "Next".


En la siguiente pantalla damos clic al boton "Advanced Targeting" el cual nos permetira seleccionar el "Subdeployment" previamente creado el cual nos permite apuntar los Server correspondientes.


Seleccionamos el "Subdeployment" anteriormente creado.


En seguida nos aparecera una lista de los Servers en los cuales estan previamente seleccionados segun la configuracion realizada en el "Subdeployment" anteriormente creado.


Damos clic en el boton "Finish" y activamos la sesion para guardar los cambios.


Ahora que terminamos de crear nuestra Queue podemos revisar si se ha creado correctamente,  para esto nos dirigimos al modulo donde se encuentra y seleccionamos "MyQueue" y buscamos el tab llamado "Monitoring" lo seleccionamos y nos debe de mostrar las Queue's activas una por cada instancia de SOA en nuestro ambiente de CLUSTER.


gl hf^^

Monday, September 23, 2013

Enable ANT for AIA manually

Para poder habilitar ANT y usar los comandos de AIA, este producto ya viene con la instalacion y para habilitarlo manualmente se tiene que configurar las variables de ambiente. Para efectos practivos se puede ejecutar el archivo setenv.cmd

Las librerias de ANT las localizamos en el siguiente directorio:

$MW_HOME\modules\org.apache.ant_1.7.1

$MW_HOME es el directorio donde se installo FMW 11g.

Ahora que agregar las siguientes variables de ambiente:

ANT_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=512m"

ANT_HOME=${MW_HOME}/modules/org.apache.ant_<version number>

Si estamos en linux agregamos las variables anteriores dentro del perfil


1vi .bash_profile


Si estamos en windows quedaria de esta manera:




Nota: Si estamos en windows recomiendo que pongan la ruta completa y no hagan referencias a variables por ejemplo

ANT_HOME=%MW_HOME%/modules/org.apache.ant_<version number>

No me funciono y no supe como corregirlo.

Tambien hay que agregar la ruta a la variable PATH

%MW_HOME%/bin

Ahora vamos a revisar si esta funcionando ejecutando el comando "ant-version"




Nota: Despues de agregar las variables tenemos que hacer "logout" de la sesion y entrar de nuevo.

GL!

Tuesday, September 3, 2013

Weblogic config.sh "No such file or directory"

Me he topado con el siguiente error en la version de Weblogic 11.1.1.7 usando Oracle Linux 6, en el cual al intentar realizar la configuracion para la instalacion de SOA Suite.

Lo primero que intente realizar fue configurar la variable de ambiente JAVA_HOME con JRockit pero no funciono, me seguia apareciendo el siguiente error.

Buscando en archivos de Weblogic que actualizan estas variables de ambiente encontre el error.

La solucion esta en modificar el siguiente archivo que se encuentra en "$SOA_HOME/wl_server_10.3/common/bin/commEnv.sh":


Buscamos la linea donde se encuentra la variable JAVA_HOME y la cambiamos por nuestra actual ruta que deseamos usar.


Bien, ahora ya podemos ejecutar sin ningun problema la configuracion.

gl hf!

Tuesday, June 11, 2013

Populating type table

El siguiente script de PL SQL muestra un ejemplo de como llenar una colección de tipo tabla, en la cual se definen puros tipos de datos simples.
01DECLARE
02 
03  V_LIST AP_OTM_IF_TBL_T := AP_OTM_IF_TBL_T();
04  V_LINE1 AP_OTM_IF_T :=    AP_OTM_IF_T(1,1,'n',SYSDATE,SYSDATE,'N','N','N',1,'N','N',1,SYSDATE,'N','N',1,1,'N','N',1,SYSDATE,1,1,SYSDATE,'N',1,1);
05 
06  V_RES CHAR(20) :='N';
07BEGIN
08  V_LIST.extend();
09  V_LIST(V_LIST.count()) := V_LINE1;
10  DBMS_OUTPUT.PUT_LINE('COUNT = ' || V_LIST.count());
11  SOA_AP_INVOICES_IF_INPUT.SEND_VOUCHER(V_LIST,V_RES);
12    
13DBMS_OUTPUT.PUT_LINE('V_RESULT = ' || V_RES);
14 
15END;

Este es otro ejemplo de como poblar un objeto de tipo tabla usando BULK COLLECT INTO.
01set serveroutput on;
02 
03DECLARE
04  V_DATE_FORMAT varchar2(50) := 'DD-MON-YYYY';
05  v_date varchar2(50) := '11-DEC-2013';
06  v_eexp_list SWC_FA_EEXP_IFACE_TBL_T := SWC_FA_EEXP_IFACE_TBL_T();
07BEGIN
08 
09select
10SWC_FA_EEXP_IFACE_T (ADMIN_REVIEWED,   
11  APPROVER_TEMPLATE_PHASE,  
12  APP_ID,        
13  BRIEF_DESC, 
14  CHANGED_BY, 
15  COST_CENTER,  
16  DATE_CHANGED,          
17  DATE_CREATED,          
18  DIVISION,   
19  DIV_NAME,  
20  DIV_ID,        
21  LONG_DESC,
22  ORIGINATING_LOCATION, 
23  PRIME_ACCOUNT,  
24  PRIOR_REQUEST,   
25  PRIOR_REQUEST_AMT,        
26  PROJECT,  
27  REQUEST_ID,        
28  REQUEST_STATUS,   
29  REVISED_TOTAL_AMT,        
30  SENT_TO_ONBASE,          
31  SITE_CITY_OTHER,  
32  SITE_ID,        
33  SITE_NUM_OTHER,  
34  SITE_STATE_OTHER,   
35  SUB_ACCOUNT,   
36  SUPPORT_MAILED,   
37  TOTAL_COST_AMT ,        
38  DATE_APPROVED)
39BULK COLLECT INTO v_eexp_list from swc_fa_eexp_v where TO_CHAR(date_created,V_DATE_FORMAT) = v_date and request_status IN ('A', 'D');
40  dbms_output.put_line('COUNT: ' || v_eexp_list.count());
41 
42END;

Monday, May 27, 2013

How to "select count(*) from table" with oraext:query-database

Me ha pasado que al intentar usar un query con la funcion de XPATH oraext:query-database, me marca error.

Estoy queriendo usar un simple "select count(*) from tabla".

Encontre que para poder realizar este count dentro de la expresión es ejecutar algo como se muestra:


1oraext:query-database(concat('select count(no_viaje) as count FROM xbol.xxdi_map_ap_otm_interface WHERE no_viaje = ',$noViaje,' and line_id is not null'),true(),true(),'jdbc/ebs')

Como se observa, se ocupa poner un alias al campo en la cosulta, de paso también especifique un campo dentro del count y funciono.

gg hf!

Tuesday, April 30, 2013

Jndi Name is null or empty ERROR FIXED

Ahora me he encontrado con la siguiente excepción:


weblogic.connector.exception.RAException: Jndi Name is null or empty.

La cual nos impide realizar despliegues en la consola de BPEL puesto que el aplicativo DBAdapter.rar se encuentra inhabilitado.

Para solucionar este problema se tiene que ejecutar lo siguiente:

  1. Borrar el adaptador de aplicaciones "DbAdapter" desde la consola de Weblogic.
  2. Reinstalar el componente desde la consola de Weblogic usando el botón "Install".

Nota: Esta solución necesitara crear nuevamente el archivo Plan.xml por lo tanto hay que respaldar todas las configuraciones de fabrica de conexion ej. eis/DB/test




Tuesday, April 23, 2013

Customizing JVM Weblogic/SOA resources

Actualizando el archivo de configuracion para iniciar weblogic y el modulo de soa tenemos el siguiente apoyo:

1if [ "${SERVER_NAME}" = "soa_server1" ]; then
2 DEFAULT_MEM_ARGS="-Xms768m -Xmx1536m"
3 PORT_MEM_ARGS="-Xms768m -Xmx1536m"
4else
5 DEFAULT_MEM_ARGS="-Xms256m -Xmx512m"
6 PORT_MEM_ARGS="-Xms256m -Xmx512m"
7fi
 

Thursday, April 4, 2013

Java singleton sample

Ejemplo de como implementar el patron de diseño "Singleton".
01private synchronized static void createInstance(){
02    if(INSTANCE == null){
03      INSTANCE = new StockCountMRG();
04    }
05}
06 
07public static StockCountMRG getInstance(){
08  createInstance();
09  return INSTANCE;
10}

How to build a XSD property-value?


A continuacion se muestra un ejemplo de un XSD para poder establecer una estructura de (property-value).
01<element name="process">
02  <complextype>
03   <sequence>
04    <element name="type" type="string" minoccurs="0">
05   </element></sequence>
06  </complextype>
07 </element>
08 <element name="processResponse">
09  <complextype>
10   <sequence>
11    <element name="resultList">
12     <complextype>
13      <sequence>
14       <element name="propertyValue" type="ns1:propertyValue" maxoccurs="unbounded">
15      </element></sequence>
16     </complextype>
17    </element>
18   </sequence>
19  </complextype>
20 </element
21   
22   
23  
24 <complextype name="propertyValue">
25    <simplecontent>
26      <extension base="string">
27        <attribute name="name" type="string">
28        </attribute>
29      </extension>
30    </simplecontent>
31</complextype>

XML de Ejemplo:
1<!--xml version="1.0" encoding="UTF-8" ?-->
3  <resultlist>
4    <propertyvalue name="nombrePropiedad">Valor</propertyvalue>
5  </resultlist>
6</processresponse>

Thursday, March 28, 2013

How to get parameters from WF_BPEL_QTAB?

Con este query podemos obtener el valor del parametro deseado a partir del event_key que normalmente nos da una ejecución de un "Evento de Negocio".


1SELECT   q.q_name
2,        q.msgid
3,        q.state
4,        TO_CHAR(q.enq_time,'DD-MON-YYYY HH24:MI:SS') "ENQ_TIME"
5,        q.user_data.event_name "EVENT_NAME"
6,        (select value from table(q.user_data.getParameterList()) where name='CUSTOMER_PRODUCT_ID') instance_id
7FROM     WF_BPEL_QTAB q
8WHERE   1=1
9and q.user_data.event_key = 'oracle.apps.csi.instance.update3451'

En este escenario estamos probando el busines event de ""Install Base" de update en el cual obtenemos el instance_ide (id del item) el cual nos va a permitir poder acceder a su información completa.

Wednesday, March 6, 2013

How to query collections types in PL SQL

Tenemos definido los siguientes objetos type:


1CREATE OR REPLACE TYPE "SOAADM"."AP_INVOICES_IF_T" AS OBJECT (
2INVOICE_ID NUMBER,
3INVOICE_NUM VARCHAR2(50 BYTE),
4INVOICE_TYPE_LOOKUP_CODE VARCHAR2(25 BYTE),
5INVOICE_DATE DATE,
6VENDOR_ID NUMBER
7)
8 
9CREATE OR REPLACE TYPE "SOAADM"."AP_INVOICES_IF_TBL_T" AS TABLE OF AP_INVOICES_IF_T;


Ahora probamos con el siguiente script como saber si se pobló de manera correcta:
01declare
02  v_ap_if_tbl AP_INVOICES_IF_TBL_T;
03  v_ap_if_t AP_INVOICES_IF_T;
04  v_count number;
05begin
06  v_ap_if_t.INVOICE_ID:=1;
07  v_ap_if_tbl := AP_INVOICES_IF_TBL_T(v_ap_if_t);
08  select count(*) into v_count from table(cast(v_ap_if_tbl as AP_INVOICES_IF_TBL_T);
09  dbms_output.put_line('length: '||v_count);
10end;

Monday, February 11, 2013

Creating deployment plan for EJB 3.0

Para crear el "Deployment plan" hay que dar clic derecho a nuestro proyecto como se muestra en la figura y elegir "New Deployment Profile"


Nos aparece una galería de tecnologías y elegimos la que dice "EJB JAR File".



Y nombramos nuestro "Deployment Profile".



Nos aparecerá la siguiente pantalla y solamente presionamos el botón "Ok".


Bien, ahora ya es posible desplegar el EJB en nuestro servidor de Weblogic haciendo clic derecho a nuestro proyecto y en "Deploy".

hf gl!

How to make an EJB 3.0 with JDeveloper

A continuación se muestra como crear un EJB 3.0 usando el wizard del JDeveloper 11.1.1.4.

Primero creamos nuestro proyecto como se muestra en la imagen.



En la siguiente pantalla elegimos el tipo de proyecto "Generic Project".



Después definimos el nombre del proyecto, en este caso lo llamaremos "EJBsample" y presionamos el botón "Finish".



Ahora vamos a crear un EJB haciendo clic derecho en el proyecto que acabamos de crear y en el menú elegimos "New".



Y después buscamos en la galería "Session Bean" el cual se refiere a nuestro EJB Bean que usaremos del tipo "Stateless".



Definimos la versión del EJB 3.0.



Ahora procedemos a darle nombre a nuestro EJB y renombramos el nombre con el cual sera mapeado en nuestro servidor de Weblogic una vez desplegado.



Y después renombramos el nombre del Bean que va a contener nuestro EJB como se muestra en la imagen.



Ahora en los tipos de interfase seleccionamos solamente la interfaz remota ya que nuestro objetivo es exponer nuestro EJB para que sea invocado desde cualquier lugar.



Finalmente presionamos el botón "Finish".



Bien, ahora que tenemos nuestro EJB listo falta crear algunos métodos los cuales expondrá nuestro EJB para que sean invocados.

Procedemos a modificar nuestra interfaz remota y agregamos un método para concatenar String's.



Finalmente implementamos nuestro método que acabamos de definir en nuestra interfaz remota como se muestra en la imagen.




gl hf!