Followers

Tuesday, February 19, 2013

Orace SOA & Weblogic Interview Questions


·        

1. Define relation between Oracle SOA Suite and Weblogic.
·         Weblogic Administration:

Manage a WebLogic Server installation.
To install weblogic server in one or multiple instances
Installing on single or multiple physical machines
How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
How to do runtime configuration for your applications.
How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
Install and Configure WebCache 11g as Load Balancer

and Much more..

OFM SOA Administrator:
·         Manage a WebLogic Server installation (Administration Server and Managed Server).
To install weblogic server in one or multiple instances
Installing on single or multiple physical machines
How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
How to do runtime configuration for your applications.
How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.

and

File System and Directory Structure in Fusion Middleware
Installing Oracle Database, Configuring RCU, weblogic server and SOA Suite.
Deploying SOA Applications.
Deploying and Undeploying Java EE Applications
Configuring Node Manager and starting Managed Servers using Node Manager
Monitoring OFM Server, admin server, managed server and composites
Configuring HA and Security (Creating users, assigning responsibilities)
Monitoring performance of SOA composites
Install and Configure WebCache 11g as Load Balancer
·        

2. Functional differences between Fusion EM console and WLS Admin console.
·         http://weblogicandsoaadmin.blogspot.in/2012/02/soa-11g-em-console-performance-issues.html

3. List some key Fusion Middleware 11g products and their usage in brief.

4. Define key components/building blocks/basic architecture of Oracle SOA Suite.

5. Explain concept of domains, admin, managed server in Weblogic.

6. Difference between Weblogic Development and Production mode.

7. Explain Node Manager in Weblogic.

8. Key functionality of Nodemanager.

9. What are the different types of nodemanager?

10. What is the default port number of nodemanager?

11. Mention the path for Nodemanager home.

12. Explain some properties present in nodemanager.properties file.

13. Is Nodemanager setup mandatory in a standalone WLS installation?

14. Is nodemanager setup mandatory in a clustered WLS environment? If not what are the demerits.

15. Explain the functionalities of Node manager in a clustered WLS environment.

16. Explain the term managed Server Independence mode.

17. Can I start a managed server even if Admin server is down?

18. Can I make configurationally changes to managed server if admin server is down?

19. Explain significance of admin server in a WLS domain.

20. Why do you think Oracle recommends not deploying applications to Admin server in production environments?

21. Explain different ways of starting or stopping WLS Admin/managed server.

22. What is config.xml? Where can I find it?

23. You deployed a faulty code to Admin server which brought it down. You are not able to restart it. How would you undeploy the faulty piece of code then?

24. How do I clear cache for a WLS managed/Admin server?

25. What is meant by data source?

26. Explain how would you tune a data source and apply some best practices to it.

27. Explain difference between multicast and unicast IP.

28. Explain hardware requirement for a WLS 2 node cluster.

29. How do you configure OHS/Apache web server for a 2 node WLS cluster?

30. What is the role of mds in ofmw?

31. What are the main components of ofmw and their usage in brief?

32. Explain the procedure for installation of ofmw components in a cluster environment?

33. What is a SOA composite?

34. Path of the server related log files

35. What is synchronus and asynchronous process in BPEL

36. Basic commands in solaris like checking the CPU usage RAM consumption

37. Basic questions on database

38. List the various adapters used

39. What is SOA, Oracle SOA suite, BPEL, ESB

40. Designer for Business process

41. Difference between BPEL and ESB

42. Transactions and fault (exception) management

43. Run time components of SOA

44. Calling external web service

45. Calling asynch BPEL process within empty BPEL process

46. Combination of ESB and BPEL and third party web services

47.
Java embedding

48. BPEL and OSB console

49. Adapter - concepts, integration, life-cycle mgmt., translation errors

50. Oracle E-Biz adapter and capturing event from oracle ERP

51. Fine tuning BPEL process

52. Deployment framework

53. Business rules and AIA

54. Email notification and rejection handler

55. Patches and installation - UNIX based and windows based

56. External resource management (example MQ shared library and third party jar files)

57. JMS and connection pools

58. Transformation and iteration

59. Which are the areas you think Oracle SOA fits perfectly

[Answer - EAI with real-time data transfer, need heavy data communication with rich business logic, Oracle ERP in existing environment]


60. Loose coupling and control at central point (orchestration vs. choreography)



1. Define relation between Oracle SOA Suite and Weblogic. 2. Functional differences between Fusion EM console and WLS Admin con...
1.      How to know the Managed Servers status, when admin console is not available? 2.      What is the performance issue in weblogic ...
Oracle Fusion Middleware 11g installation is broadly covered in 5 steps 1.     Create Repository 2.     Install Weblogic Server 3. ...
Why Oracle Fusion Middleware is #1 in Middleware comparatively with IBM. Please access below the webcasts, white papers and other resour...
1.   What is the default HTTP Port? 2.   What is the difference between production mode and development mode? What is weblo...
Scenario and Symptoms: The BPEL Engine Audit level is set to Development. The BPEL engine is load tested with some huge number of transac...
1.       How to know the Managed Servers status, when admin console is not available? 2.       What is the performance issue in weblogi...
1)  Starting and Stopping a Managed Server       As a best practice, it is always recommended that you start and stop a managed ser...
While configuring any Weblogic domain the there are two modes the domain can be configured with. - Development Mode  - Product...
Monitoring Remote JVMs Using JVisualVM Real-time monitoring of a SOA/ADF 11g server Sun JVM can be provided by several tools. VisualV...

1) Starting and Stopping a Managed Server

      As a best practice, it is always recommended that you start and stop a managed server through one, but not both, of the following methods. Do not mix these methods, such as starting the managed server from the command line and stopping it from Oracle Enterprise Manager Fusion Middleware Control, or vice versa.
  • Oracle Enterprise Manager Fusion Middleware Control
With this method, the node manager must be up and running. The node manager tracks all managed server startups and shutdowns performed from Oracle Enterprise Manager Fusion Middleware Control. With this method, the server state is not an issue.
  • Command line
With this method, the node manager does not track the server state. Therefore, if you start the server from the command line and shut it down from Oracle Enterprise Manager Fusion Middleware Control, the Oracle WebLogic Administration Server accesses the node manager to determine its status, which returns a state of Unknown.


Perform the following steps to stop and start the server from Oracle Enterprise Manager Fusion Middleware Control.
    1. Expand the WebLogic domain.
    2. Select the managed server (for example, named soa_server1).
    3. Select Control  --> Shut Down.
    4. Select Control  --> Start Up
·         1.      How to know the Managed Servers status, when admin console is not available?
·         2.      What is the performance issue in weblogic and how can you resolve, explain in brief?
·         3.      What is the Digital Certificate? How do we generate a Digital Certificate? 
·         4.      What is Thread Dump? What is the UNIX command to take Thread Dumps?
·         5.      What is a cluster? What is High Availability and Fail over?
·         6.      How to handle out of memory in weblogic and if server is getting more requests then what we have to do in production environment?
·         7.      What is clustering? How do weblogic instances communicate in a clustered environment? In a cluster, if one of the servers has an issue and it is not accessible, will the other servers know about it and how?
·         8.      What are the roles you have played and what are the day today activities?
·         9.      WHAT IS TROUBLE SHOOTING IN WEBLOGIC?
·         10. How to integrate apache webserver with weblogic server? What is the purpose of integrating both?
·         11. Define the different groups of Users?
·         12. What are the different thread queues?
·         13. How will you analyze if a page responds slowly?        
·         14. What is Work manager? Explain briefly?
·         15. What are the different types of drivers?
·         16. What are the various types of log files?
·         17. What are you commonly used fine tuning commands?
·         18. What is Session replication? What are the different types of Session Replications?
·         19. What happens if we change config.xml while server is running?
·         20. What is HTTP tunneling?
·         21. What is asynchronous communication? Is there any synchronous communication in JMS?
·         22. How to find Weblogic Version?
·         23. What is the use of log4j?
·         24. What is Work manager?
·         25. What is virtual host?
·         26. What is eden size and perm size?
·         27. What is Weblogic shrink?
·         28. What is diff b/w JNDI and JDBC?
·         29. What are the different types of drivers?
·         30. What driver you are using?
·         31. What is diff b/w unicast and multicast?
·         32. When core dump will not be created even if the server crashed?
·         33. Can we change the heart beat interval?
·         34. What are the various types of log files?
·         35. What is WorkManager?
·         36. What is Multicast IP Address? What are the things done by it? How to
·         test multicast IP?
·         37. How to check whether the cluster multicast adress is available or not?
·         What is the command to check in UNIX environment?
·         38. What is Virtual Host in Weblogic, how to create it & what is the
·         advantage ?
·         39. How can you find the jdbc version on server side?
·         40. What you do to close the connections automatically in JDBC?
·         41. What are the things that we take care under Database fine tuning apart
·         from increasing or decreasing connections?
·         42. What is MBean, how many types are there?
·         43. How to restart proxy?
·         44. Reasons for server crash?
·         45. Reasons for servers hang?
·         46. What is the thread hogging?
·         47. Various garbage collection algorithms?
·         48. How to find whether the PORT No is free or not?
·         49. What is the command to find CPU utilization?
·         50. What is the command to find version of Unix?
·         51. How to find CPU utilization? What if top command doesn’t work?
·         52. What are you commonly used fine tuning commands?
·         53. What is the difference between webservers and Proxy server?
·         54. How to sort the files?
·         55. What is Session replication? What are the different types of Session Replications?
·         56. Which IP segment will you use for Multicasting?
·         57. Is it possible to manage multiple domains through a single weblogic
·         admin console?
·         58. What happens if we change config.xml while server is running?
The intent of this note is to list the important configuration and log files used to diagnose SOA 11g problems.

Throughout this note we will refer to the following:
$ MIDDLEWARE_HOME =
$ DOMAIN_HOME = $ MIDDLEWARE_HOME/user_projects/domains/

Here is a list of files to look for:
1.Domain configuration under $DOMAIN_HOME/config  directory
   - Config.xml
   - jdbc/-Jdbc.xml
   - jms/-Jms.xml files under

2. Adapter configuration under $MIDDLEWARE_HOME//soa/connectors/   directory. ( Oracle_SOA1 is the default name)
  - AppsAdapter.rar
  - DbAdapter.rar
  - FtpAdapter.rar
  - MQSeriesAdapter.rar
  - SocketAdapter.rar
  - AqAdapter.rar
  - FileAdapter.rar
  - JmsAdapter.rar
  - OracleBamAdapter.rar
Issue:


while creating new domain in step select domain source I am getting "CFGFWK-64069 prerequisite missing: Oracle WSM Policy Manager 11.1.1.0 Oracle BI Composer Runtime , oracle BI-ADF runtime 11.1.1.0


Solution:


This could be because of higher security in windows vista/windows 7


Check file permission and owner of MW_HOME and subdirectory (reset permission of MW_HOME directory and subdirectory) .


If you are creating domain using command line config.cmd then start command promt in administrative mode and then try.
1. Define SOA and how do you explain it to a layman.
2. Deferentiate SOA from Oracle SOA Suite.
3. Define relation between Oracle SOA Suite and Weblogic.
4. Functional differences between Fusion EM console and WLS Admin console.
5. List some key Fusion Middleware 11g products and their usage in brief.
6. Key difference between Oracle SOA Suite 10g and 11g.
7. Define key components/building blocks/basic architecture of Oracle SOA Suite.
8. Explain concept of domains,admin,managed server in Weblogic.
9. Explain basic functionality of Application Servers eg WLS,OAS,Websphere.
10.Difference between Weblogic Development and Production mode.
11. Explain Node Manager in Weblogic.
12. Key functionality of Nodemanager.
13. What are the different types of nodemanager.
14. What is the default port number of nodemanager.
15. Mention the path for Nodemanager home.
16. Explain some properties present in nodemanager.properties file.
17. Is Nodemanager setup mandatory in a standalaone WLS installation.
18. Is nodemanager setup mandatory in a clustered WLS environment. If not what are the demerits.
19. Explain the functionalities of Nodemanager in a clustered WLS environment.
20. Explain the term managed Server Independence mode.
21. Can I start a managed server even if Admin server is down.
22. Can I make configurational changes to managed server if admin server is down.
23. Explain significance of admin server in a WLS domain.
24. Why do you think Oracle recommends not to deploy applications to Admin server in production environments.
25. Explain different ways of starting or stopping WLS Admin/managed server.
26. What is config.xml. Where can I find it.
27. You deployed a faulty code to Admin server which brought it down. You are not able to restart it.How would you undeploy the faulty piece of code then?
28. How do I clear cache for a WLS managed/Admin server.
29. What is meant by datasource.
30. Explain how would you tune a datasource and apply some best practices to it.
31. Explain difference between multicast and unicast IP.
32. Explain hardware requirement for a WLS 2 node cluster.
33. How do you configure OHS/Apache web server for a 2 node WLS cluster?
34. Explain basic steps for SSL configuration in WLS.
35. Explain JVM concept and detailed architecture.
36. What is the function of Permanent Generation (PermGen) space.
37. Explain OOM errors and what are the different causes.
38. Explain Memory Leaks. Explain how would you detect it. state examples of some tools to analyze it.
39. What would be your approach if you are asked to tune JVM.
40. Explain some key Sun JVM startup/tuning arguments.
41. State some JVM tuning properties that you would use in a multi threaded box like the Oracle T series so as to improve JVM performance.
42. Explain Garbage Collection. State some GC algorithms you are aware of.
43. What is the Verbose GC option used for?
44. Explain what would you do to mimimise frequent major GC.
45. Explain difference between major and minor GC.

Sunday, February 17, 2013

Certification Questions

1. Which of these two are the part of WEB-INF in typical web applications:
A. web.xml
B. classes
C. META-INF
D. enterprise application files


 2. Developer asked you to install all the Examples which come with WebLogic. Which type of installation you choose :
A. choose typical installation
B. choose custom installation
C. console installation
D. Silent installation


3. You can use the Administration Console to (select 4 true statements):
A. Configure WebLogic Server instances and clusters, start, and stop servers 
B. Configure WebLogic Server services, such as database connectivity (JDBC), and messaging (JMS).
C. Configure and deploy your applications.
D. View server access log files, application log files, debug logs
E.  View application deployment descriptors, Edit selected run-time application deployment descriptor elements.
F.  Create domain templates for new domain creations


4. Consider you have configured a new domain with Admin, two managed servers managed1, managed2 both on the same machine. When will you see the servers folder updates with managed1 server folder under your domain home.
A. When you configure the domain server folder generated
B. When you start the managed server managed1 first time
C. When you restart the managed server managed1
D. When all the servers stared


5. What happens when you run startWebLogic.cmd/startwebLogic.sh under DOMAIN_HOME directory.
A. It starts the WebLogic admin server
B. It calls startWebLogic under DOMAIN_HOME /bin
C. It calls depending environment scripts.
D. it wait for arguments

6. An application need changes in a jsp file you opted production redeployment strategy, What is the best suitable command for deploy
A. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy webapp
B. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy webapp/mypage.jsp
C. java weblogic.Deployer -username username -password password -name mywebapp -redeploy webapp/mypage.jsp
D. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp  webapp/mypage.jsp



7. When will you get boot.properties file generated?
A. While configuring domain
B. When you start the Admin Server first time
C. It is copied to all managed server machines when they started first time started
D. When you change credentials in the Administration console


8. The JMS producer produces but the application that consumes with a client program which is hosted on a server that got crashed. What happen to the messages.
A. Messages will be stored in the persistent store
B. It will be stored in the managed until the crashed server come up.
C.


9. A domain configured with a cluster of 10 server. Out of which 8 servers are in RUNNING state. when an application deployed on the cluster what happens to it?
A. It will be deployed on RUNNING servers of the cluster.
B. it will be failed to deploy and it's state changes to ADMIN.
C. it will be in prepared state for the application
D. Application deployment is completes when 2 servers join the cluster.


10. You run the default startManagedWeblogic (.cmd in Windows) script as shown here:
startManagedWebLogic.cmd server1 http://192.168.1.102:8001.
What does this do?
A. It starts the administration server named server1, which is running at 192.168.1.102.8001.
B. It starts the managed server named server1, which is running at 192.168.1.102.8001.
C. It starts the managed server named server1 whose Node Manager is running at 192.168.1.102.8001.
D. It starts the Managed Server named server1 whose Administration Server is running at 192.168.1.102:8001.
11. When you change an existing configuration through the admin console added few managed servers what happen when a managed server is started? (select two)
A. The configuration will be locked 
B. The managed server downloads the configuration from administration server machine.
C. When a managed server is started then the  <domain_home>/servers/domain_bak/config_prev will copies the last modified config.xml or domain's resources configurations into the respective folders under it.
D. You need to make a copy manually for the config archive


12. A web application is already deployed to a cluster Clustr1. There is a need of redeployment when developers came with few changes in JSP dynamic and static contents.  What is the best suitable command :
A. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy -target Clustr1
B. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy
C. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy -target managed1, managed2
D. java weblogic.Deployer -adminurl url -username username -password password -name mywebapp -redeploy -target mod@managed1
ANS: B

13. If Admin port is enabled is your Admin console is accessible with existing port
A. Accessible only with Admin port.
B. Admin Port will be used for communicating with managed servers
C. Admin Port can be used for applications deployed in Admin mode


14. NodeManager Running on a machine. managed1 server is RUNNING state you had choosen 'Force Shutdown' from the Shutdown options.
A. managed1 server transit to SHUTDOWN state
B. managed1 server request will be completed and then stop all services, finally reaches to SHUTDOWN state
C. managed1 server don't wait for requests. it will stop all services and transit to SHUTDOWN state
D. managed1 server first reaches to SUSPEND state then transit to SHUTDOWN state


15. You are connected to a managed sever with WLST. Issued shutdown() command what happen ?
A. It will shutdown admin server
B. It will shutdown the connected managed server gracefully.
C. It will shutdown the connected managed server Forcefully.
D. It will reach to Admin state


16. Select four options to create a domain with existing domain.
A. WLST
B. Configuration Wizard
C. wlcontrol.sh
D. pack/unpack
E. editing config.xml


17. When a managed server is bounced then its server log file will be rotated based on two options you select on console for a server:
A. Rotated automatically because default "Rotate log file on startup" is enabled, by default roated when it reach 500 Kb in size
B. Rotated by file size 5000 KB
C. Rotation wil be begin at every midnight 0:00 and it can be set to H hours to rotate
D. Rotation log file only stores standard out file of the server
E.  Rotated log file stores Standard Error when you select for Enable


18. On WebLogic console you configure HTTP logging for the server. By default, HTTP logging is enabled and the server saves HTTP requests in a separate log file. Select 4 true statements:
A.  It is defined rotation is based on File Size by default.
B.  The default is 500 kilobytes. After the log file reaches the specified minimum size, the next time the server checks the file size, it will rename the current log file as SERVER_NAME.lognnnnn
C. You can specify the directory where the rotated log files will be stored.
D. Application requires that ejb-tier server then the HTTP logging file doesnot saves anything in it.
E. it is nomal log file it will contain all the request details.


19. Within a WebLogic  installation, you can only use one type of leasing for the migration. Migration Basis is going to controls the mechanism used for server and service migration. Select two types of Migration Basis:
A. Database   Requires the availability of a high-availability database, such as Oracle RAC, to store leasing information.
B. Consensus  Stores the leasing information in-memory within a cluster member. This option requires Node Manager to be configured and running.
C. File store based  leasing
D. Migration is possible only when Node manager defined


20. In the Startup Mode field set to STANDBY state, then
A. The server listens for administrative requests only on the domain-wide administration port and only accepts life cycle commands that transition the server instance to either the RUNNING or SHUTDOWN state.
B. It can be changed its state by using Resume button
C. It can be changed its state by using Suspend button
D. It can be either Force Shutdown or Graceful Shutdown
21. Your management assigned you for change the context path change for admin console How do you do?
A. It is not suggestable
B. Need to change in deployment descriptor of weblogic console portal.
C. Admin console have the "Advanced" option to change "Console Context Path" domain Configuration ->General. 
D. Using WLST you can change.


22 How to turn off host name verification for WebLogic web server in two of the following ways
A. Disable with command line of an SSL client argument as -Dweblogic.security.SSL.ignoreHostnameVerification=false
B. JMX program can be used to modify it  
C. Admin console,  select server for which you want to configure host name verification update in advanced options Hostname Verification field is set to None.
D. You can modifying the configuration repository directly

23. You got urgent assignment to add JDBC datasource for your domain. Changes made in the administration console and saved. Before activating changes. Choose two true statements.
A. The changes will be updated into the configuration immediately.
B. The changes can be effected when the target servers are restarted.
C. The changes can be stored on <your_domain>/pending directory when you saved.
D. The command center buttons eables you to do the permanent changes to those are configured.

24. Which two statements are true about java EE shared libraries?
A. A shared library cannot be deployed to a cluster.
B. An application that is targeted to server1 can use a shared library that is targeted to server 2.
C. Multiple versions of the same shared library can be deployed and be active at the same time
D. A shared library is referenced through an application's deployment descriptor.



25. You use the Start button in the administration console to start managed2 successfully. Which two statements must be true?
A. Managad2 is part of a cluster.
B. The Administration Server is running.
C. Managed2 has applications deployed to it.
D. The Node Manager for machine2 is configured and running.
E. The Node Manager for the Administration Server machine is configured and running.



26. Within your data center, the Administration and Managed Servers utilize a shared, central storage device,
which server’s access via NFS. In this scenario, your application files no longer need to be copied to servers across
the network. Which server attribute allows you to override this behavior?
A. Startup Mode
B. Staging Mode
C. Root Directory
D. Listen Address


27. An EJB is targeted to a cluster. Remote EJB clients can therefore take advantage of WebLogic Server’s load balancing and failover capabilities. However, a proxy server exists between the clients and cluster, which performs IP address transaction. Which cluster attribute should you modify to ensure that load balancing and failover work correctly?
A. Multicast Address
B. Persistent Store
C. Cluster Address
D. Migration Basis
E. Replication Channel


28. An application requires a JDBC data source, which you create in the domain. You name it but the administrator allot another domain name the same data source DatasourceB. Without modifying either domain, which is the best method to ensure that the application deploys successfully in both?
A. Create a separate application archive to use with each domain.
B. Create a separate deployment plan file to use with each domain.
C. Create and register a custom deployment listener.
D. Modify the application code to determine the current domain.



29. Identify three options for Keystores In a server's configuration.
A. Demo Identity and Demo Trust
B. Demo Identity and Java Standard Trust
C. Java Standard Identity and Custom Trust
D. Custom Identity and Demo Trust
E. Custom Identity and Custom Trust
F. Custom Identity and Command Line Trust


30. When installing Oracle Weblogic Server 11g with the graphical installer, which three statements are true?
A. You must choose either a typical or a custom installation.
B. You install under Microsoft Windows because the graphical installer is available only for Window
C. You may create a new middleware home directory or choose an existing one.
D. You must register for critical security updates.
E. You may install a JDK or choose one that was previously installed.

31. Each domain has a directory called servers that contains subdirectories for each server in the domain. Your domain has a managed server named managed1. When will the managed1 directory be created?
A. When the managed1 server is defined in the configuration Wizard
B. When the domain is created
C. When the administration server comes up for the first time
D. When the managed1 server1 comes for the first time

JMS configuration in weblogic



Overview
A JMS server implements the JMS infrastructure on a WebLogic server.  Destinations (queues or topics) are targeted to a WebLogic server when the JMS server is targeted to the WebLogic server. 
This exercise is going to have you configure a JMS server dizzyworldJMSServer, a queue dizzyworldQueue and a topic dizzyworldTopic. You will then post messages to the queue and topic and monitor them in the Administration Console. Right now you will not have any consumers; you will simply be posting the messages and getting familiar with monitoring the message statistics in the Administration Console.


Configuration JMS
Configure a JMS Server with the following specifications:
Navigate to Doamin à Services à Messaging à JMS Servers. Lock the console.
Click New under the JMS Servers table and specify the following properties:
Name:  dizzyworldJMSServer
Persistent Store: (none)
Click Next and target the JMS server to ms1 Managed Server. Click Finish
Save and Activate your changes.
Configure a JMS module and add a queue and a topic to the JMS module according to the following specifications: 

Navigate to dizzyworld à Services à Messaging à JMS Modules. Lock the console, if necessary.
Click New under the JMS Modules table and specify the following properties:
Name:            dizzyworldModule
Descriptor File Name:
dizzyworldModule

Click on Finish

In the Setting for dizzyworldModule page, click the Subdeployments tab. Under the Subdeployments table, click New to create a subdeployment with the following specifications:

Subdeployment Name: dizzy1SubDeployment
In the Targets page, select the dizzyworldJMSServer as the target under the JMS Servers table. Click Finish

Click the Configuration tab.

In the Settings for dizzyworldModule page under the Summary of Resources table, click New to configure a new JMS queue for the JMS module

In the Create a New JMS System Module Resource page under the heading of Choose the type of resource you want to create, select Queue.

Click Next.

In the JMS Destination Properties, specify the following parameters:

Name: dizzyworldQueue
JNDI Name: dizzyworldQueue
Template: None

Click Next.

Click Advanced Targeting. Select dizzy1SubDeployment from the subdeployments list. Click Finish

In the Settings for dizzyworldModule page under the Summary of Resources table, click New to configure a new JMS topic for the JMS module.

In the Settings for dizzyworldModule page under the Summary of Resources table, click New to configure a new JMS topic for the JMS module

In the Create a New JMS System Module Resource page under the heading of Choose the type of resource you want to create, select Topic.

Click Next.

In the JMS Destination Properties, specify the following parameters:

Name: dizzyworldTopic
JNDI Name: dizzyworldTopic
Template: None

Click Next.

Click Advanced Targeting. Select dizzy1SubDeployment from the subdeployments list. Click Finish.

Activate the changes.
You should be able to see a JNDI entry on the dizzy1 Managed Server called dizzyworldQueue and dizzyworldTopic.

Deploy the Web application messaging.war

Start the application by selecting the checkbox against the application name under the Deployments table. Click Start and select Servicing all requests.

open http://localhost:7003/messaging.

Use the Administration console to view the number of messages that have been posted into each of the destinations, navigate to dizzyworld à Services à Messaging à JMS Modules. In the JMS Modules table, click dizzyworldModule. In the Summary of Resources page, click dizzyworldQueue, and then click the Monitoring tab.

Customize this table to show the Messages Total column.  The Messages Total column shows you the number of messages that have been sent to the dizzyworldQueue. Repeat these steps to view the number to messages sent to the dizzyworldTopic.

Note: On the topic (unlike the queue), messages do not appear to be getting stored. This is because we do not have any durable subscribers registered for this topic.

please follow the link to get the war file 

https://www.dropbox.com/sh/r7iwcihvej18quk/4pCyn9EFBA



Saturday, February 16, 2013

Weblogic Installation GUI Mode for Windows 32 bit


Please follow the link for GUI mode installation

https://www.dropbox.com/s/vligwul868mliu6/Lab1.docx

Thursday, November 1, 2012

Datasource Creation in ant for Weblogic

<?xml version="1.0" ?>
<project name="deploy" default="makeDataSource" basedir=".">
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="weblogic1" />
<property name="wls.url" value="t3://localhost:7001" />
<property name="wls.targetServer" value="AdminServer" />
<property name="wls.domainName" value="base_domain1" />
<property name="database.url" value="jdbc:oracle:thin:@dbhostname:1521:dbname" />
<property name="database.driver" value="oracle.jdbc.OracleDriver" />
<property name="database.user" value="dbusername" />
<property name="database.password" value="dbpassword" />
   
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"/>
<taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig"/>

<target name="makeDataSource">
<wlconfig username="${wls.username}" password="${wls.password}" url="${wls.url}">
<query domain="${wls.domainName}" type="Server" name="${wls.targetServer}" property="x" />
<create type="JDBCConnectionPool" name="TestDS">
<set attribute="CapacityIncrement" value="1"/>
<set attribute="DriverName" value="${database.driver}"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="10"/>
<set attribute="Password" value="${database.password}"/>
<set attribute="Properties" value="user=${database.user}"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestTableName" value="SYSTABLES"/>
<set attribute="URL" value="${database.url}"/>
<set attribute="Targets" value="${x}" />
</create>
<create type="JDBCDataSource" name="TestDS" >
<set attribute="JNDIName" value="jdbc/TestDS"/>
<set attribute="PoolName" value="TestDS"/>
<set attribute="Targets" value="${x}" />
</create>
</wlconfig>
</target>
</project>