The reason for the above behavior is that , when a managed server is started
from the admindomain , copy of the configuration files are created in the
admindomain as well
admindomain/config/fmwconfig/server/soa_server1/applications/*
Once the config files are created in the admindomain, starting the
configuration files in the manegeddomain
manegeddomain/config/fmwconfig/server/soa_server1/applications/* , will be
overridden by the configuration from the admindomain.
So , for the issue to happen, the managed servers should have been started
atleast once from the admin server domain.
The solution would be to delete/rename the managed server details from the
adomain
admindomain/config/fmwconfig/server/soa_server1 to
admindomain/config/fmwconfig/server/soa_server1.bckup
This will make sure that the configuration files are always loaded from the
maneged domain.
The views expressed on this blog are my own and do not necessarily reflect the views of any Organisations owning these products.I keep on doing R & D with different products in and around Middle ware stack and these posts are result of that.Most of the post are result of my own experiments or ideas taken from other blogs .If in any case You feel content is not right you can comment to remove that post. This blog uses the default features,cookies of blogspot.com
Tuesday, July 19, 2011
Wednesday, July 13, 2011
OSB logs
Enable the alsb-transports-debug flag to true in the alsbdebug.xml
Also do the following
Go to you BEA_HOME\user_projects\domains\your domain\bin
edit your startManagedWeblogic.sh
You will find an entry like this
JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore="/refresh/home/osb11g/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
You need to change this to
JAVA_OPTIONS=" -Dweblogic.wsee.verbose=* -Dweblogic.security.SSL.trustedCAKeyStore="/refresh/home/osb11g/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
Once you made the changes retest your service.
Now you can get the logs in following location
BEA_HOME\user_projects\domain\osb domain\server\osb server\logs
Also do the following
Go to you BEA_HOME\user_projects\domains\your domain\bin
edit your startManagedWeblogic.sh
You will find an entry like this
JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore="/refresh/home/osb11g/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
You need to change this to
JAVA_OPTIONS=" -Dweblogic.wsee.verbose=* -Dweblogic.security.SSL.trustedCAKeyStore="/refresh/home/osb11g/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
Once you made the changes retest your service.
Now you can get the logs in following location
BEA_HOME\user_projects\domain\osb domain\server\osb server\logs
BAM-00533: Resources start operation for destination topic/oracle.bam.messaging.reportcacje.activedata failed.
You are trying to access the report through BAM viewer and you are getting the following error
BAM-00533: Resources start operation for destination topic/oracle.bam.messaging.reportcacje.activedata failed.
The error looks something like this.
This error occurs because you have changed the default port for BAM.
By default if you are installing soa suite 11g the port takes in 9001 if you are changing it you may need to do some extra changes to take this effect.
Configure ORACLE BAM with custom port 7777 (default is 9001)
GO to SOA_HOME/bam/config/BAMICommandConfig.xml
and change the ADC server port with new value
<ADCServerPort>7777</ADCServerPort>
Restart Server
Now go to BEA_HOME\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAME>\tmp\_WL_user\oracle-bam_11.1.1\<RANDOM_NUBMER>\APP-INF\classes\config\
BEA_HOME\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAME>\tmp\_WL_user\oracle-bam_11.1.1\<RANDOM_NUBMER>\APP-INF\config\
I have specified two location as it can be in any of the two location.There will be multiple files and you need to find out the one where in you have all the configuration file mentioned below are stored.
and change the port in following places.
BAMWebConfig.xml >> <ServerPort>7777</ServerPort>
BAMServerConfig.xml >> <ADCServerPort>7777</ADCServerPort>
BAMCommonConfig.xml >> <ApplicationURL>http://localhost:7777</ApplicationURL>
Now Restart server
You can also do the changes from console.Check the following document for the same.
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10226/bam_config.htm
BAM-00533: Resources start operation for destination topic/oracle.bam.messaging.reportcacje.activedata failed.
The error looks something like this.
This error occurs because you have changed the default port for BAM.
By default if you are installing soa suite 11g the port takes in 9001 if you are changing it you may need to do some extra changes to take this effect.
Configure ORACLE BAM with custom port 7777 (default is 9001)
GO to SOA_HOME/bam/config/BAMICommandConfig.xml
and change the ADC server port with new value
<ADCServerPort>7777</ADCServerPort>
Restart Server
Now go to BEA_HOME\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAME>\tmp\_WL_user\oracle-bam_11.1.1\<RANDOM_NUBMER>\APP-INF\classes\config\
BEA_HOME\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAME>\tmp\_WL_user\oracle-bam_11.1.1\<RANDOM_NUBMER>\APP-INF\config\
I have specified two location as it can be in any of the two location.There will be multiple files and you need to find out the one where in you have all the configuration file mentioned below are stored.
and change the port in following places.
BAMWebConfig.xml >> <ServerPort>7777</ServerPort>
BAMServerConfig.xml >> <ADCServerPort>7777</ADCServerPort>
BAMCommonConfig.xml >> <ApplicationURL>http://localhost:7777</ApplicationURL>
Now Restart server
You can also do the changes from console.Check the following document for the same.
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10226/bam_config.htm
Saturday, July 02, 2011
Single Threaded Model in File/FTP adapter
I am using the following reference document for my test.
http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_file.htm#BABGDDAE
By default a thread is created for each inbound file.So if you are sending 5 input file basically 5 threads will be created.This scenario is good if you are processing multiple file with large number of recors as you will get the output for each input file sequentially.
This is the general scenario but you can change it by using either single thread model or partitioned thread model.
A single thread model allow to process all the files in a single thread.The downside of this approach is that this is time consuming.If you are processing a batch of file with millions of records then single thread model will cause un-necessary delay in such scenario.
Similarly you can use Partitioned Threaded Model to process the number of thread to be used.This could be useful when you want to process your records in a batch of some particualr number.
http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_file.htm#BABGDDAE
By default a thread is created for each inbound file.So if you are sending 5 input file basically 5 threads will be created.This scenario is good if you are processing multiple file with large number of recors as you will get the output for each input file sequentially.
This is the general scenario but you can change it by using either single thread model or partitioned thread model.
A single thread model allow to process all the files in a single thread.The downside of this approach is that this is time consuming.If you are processing a batch of file with millions of records then single thread model will cause un-necessary delay in such scenario.
Similarly you can use Partitioned Threaded Model to process the number of thread to be used.This could be useful when you want to process your records in a batch of some particualr number.