Showing posts with label environment variables. Show all posts
Showing posts with label environment variables. Show all posts

Thursday, 7 December 2017

SOA 12c : Change BPEL Preference Property at Runtime on EM

Here is what you can do if you want to update your bpel.preference.variable value on 12c Enterprise Manager.

Example, if you have set variable as below in your composite.xml:

<property name="bpel.preference.Email">test@test.com</property>
  
1. Login to EM [http://hostname:port/em]
2. On Left Navigator, navigate to WebLogic Domain > soa_domain

 
 
3. Right-click and select 'System MBean Browser'
4. On next page, left pane scroll at the bottom and expand oracle.soa.config
5. Navigate under that to Server: soa_server > SCAComposite > Your composite[version]
6. Expand and select SCAComposite.SCAComponent > Click on your component
7. On the left pane, under Attributes column click on Properties
8. Under Key expand Element for Email and change the contents of value field.
9. Apply.

The new values should now reflect.

Helpful?  Please Comment.

Happy Learning!!

Monday, 30 October 2017

ANT : How to get User, OS name and Environment properties

Here is what you need to do if you want to fetch below in/using ANT:

a. Logged user - built-in property
b. Machine OS name - built-in property
c. Environment properties - ANT provides a property task which has an attribute environment. Thus if you specify the task with environment="myenv" you will be able to access OS-specific environment variables via property names "myenv.PATH" or "myenv.TERM".


Below is a sample ant script.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="systeminfo">
  <target name="systeminfo">
    <property environment="my_env" />
    <echo>
      User is ${user.name}
      OS Name is ${os.name}     
      ANT_HOME is set to ${my_env.ANT_HOME}
    </echo>
  </target>
</project>
Output:

BuildFile: build.xml systeminfo
[echo]
[echo] User is nadimwarsi
[echo] OS Name is Windows 10 Enterprise
[echo] ANT_HOME is set to C:\Program Files\Java\jdk1.7
[echo] BUILD SUCCESSFUL
Total time: 0 seconds

Helpful? Please Comment.

Happy Learning!!

Saturday, 7 October 2017

SOA 12c : Setting up Environment variables on Unix/Windows

Generally before we begin our local installation or execute commands on Windows or Unix/Linux systems we should setup the environment variables so that we do not face any issues.

In this post we will learn how to setup the environment variables.



1.       Windows (one-time activity):
a.       Right click on MyComputer/This PC > Properties
b.       On left pane click on ‘Advanced system settings’
c.       On System Properties pop up click on ‘Advanced’ tab
d.       Click on button ‘Environment Variables’
e.       Under System variables box, click on New
f.        Insert Variable name and Variable values as below





 

g.       Add above variables to ‘Path’ variable by selecting on Path and clicking on Edit
h.       Add  %JAVA_HOME%\bin
i.     Apply and Save.
j.        Open command-prompt, type echo %JAVA_HOME% to validate.

 


1.       Unix/Linux (on every login):
a.       Login to box
b.       Identify dir path for variable
c.       Run command to set environment variable for JAVA_HOME like below

                            export JAVA_HOME=/java/jdk/jdk1.8.0_131
 
d.       Run command echo %JAVA_HOME% to validate

Note: Paths may differ based on how installation has been done.

If you want to set path permanently on Linux box, edit you ~/.profile or ~/.bash_profile and add the export commands.

You can also check the post on How to create a shell script which is easier to execute every time.


Helpful? Please Comment.


Happy Learning!!





OSB 12c : Dynamic Routing to Business/Proxy Service

Dynamic routing is a kind of  Content-based Routing pattern, which is used when the BusinessService/ProxyService path is required to be de...