Web Logic Server

  Home  Server (Computing)  Web Logic Server


“Web Logic Server frequently Asked Questions by expert members with experience in Web Logic Server. These interview questions and answers on Web Logic Server will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. So get preparation for the Web Logic Server job interview”



35 Web Logic Server Questions And Answers

21⟩ How to write a program to call the store procedure of Oracle that takes no parameter?

The stored procedure are the procedures that is called when a function need to use some internal variables. These variables are used to access the relational database system and used to play a big role in web logic server. The code that is given below shows the same:

CallableStatement cstmt = conn.prepareCall("Begin procName; END;");

cstmt.execute();

//procName is the name of an Oracle stored procedure.

//The above statement is the standard oracle statement that works with the Oracle DBMS. // The following syntax given below will call the stored procedure.

CallableStatement cstmt = conn.prepareCall("{call procName};");

cstmt.execute();

// This is the syntax which will work with all the database system.

 149 views

22⟩ Do you know what type of object is returned by ResultSet.getObject()?

Web logic jDriver for Oracle returns a Java object that includes the data and the information for retrieval. The object that is returned from ResultSet.getObject() is as follows:

• A double is returned for the column types of Number(n) and Number(m,n). If the precision that is defined is not accurate then it can be represented by using the BigDecimal as well.

• If the column type is a NUMBER then the Java type that has to be returned based on the actual value of each row. The values in this type may vary from one row to another row.

These are the type of objects that are returned by using the data variables in the Web logic server.

 167 views

23⟩ How to write a program of web logic server to get the connection pool attribute?

The connection pool attribute can be accessed using the administrative console of the connection pool. This includes the Web logic jDriver for Oracle and JDBC connection pool configuration for setting up the attribute for overall server system. The example that is given below show the attribute that is been accessed in the web logic server:

<JDBCConnectionPool

Name="userPool"

Targets= “userserver,server1"

DriverName="weblogic.jdbc.oci.Driver"

InitialCapacity="1"

MaxCapacity="10"

CapacityIncrement="2"

Properties="databaseName=userOracleDB"

 142 views

24⟩ Explain what are the steps required to setup the Oracle instance for OS Authentication?

To setup the Oracle instance of the OS Authentication feature. The steps that have to be followed are:

1. Open the INIT[sid].ORA file from the config directory of the web logic server.

2. Add the line OS_AUTHENT_PREFIX = OPS$ in the file INIT[sid].ORA file and as the statements are case sensitive so the statements should be written as it is.

3. Open the database of Oracle server by using the credentials of the SYSTEM.

4. Create a user using the name of OPS$userid, where userid is the name of operating system loginID. Grant the full privileges to the user for connection and using the resources on the server.

5. After setting up the connection with the made user then the Web logic jDriver for Oracle can be connected by using the “/” as the username property and “” as the password property. The example is given below:

$ java utils.dbping ORACLE "/" "" userserver

Properties props = new Properties();

props.put("user", "/");

props.put("password", "");

props.put("server", "userserver");

Class.forName("weblogic.jdbc.oci.Driver").newInstance();

Connection conn = myDriver.connect("jdbc:weblogic:oracle",props);

 189 views

25⟩ Tell me what are the ways in which weblogic servers can run on multiple machines?

There are various configurations that have to be made to make the weblogic server run on multiple machines. The methods that are involved have their advantages and disadvantages. The Web logic server consists of no built-in limit for the number of instances it can have in a cluster, but it can consists of larger number of instances if it is having multiple clustered systems. The web logic servers are best deployed to use more than one server instance at a time. Multiple machine can have one cluster each and have a synchronization method to increase the distribution of server instances.

 166 views

26⟩ Do you know what are the steps involved in setting up CLASSPATH in web logic server?

The steps involved in setting up the CLASSPATH in web logic server are as follows:

• Start the web logic server and open the setting option where the CLASSPATH is being mentioned. This includes the option of starting and stopping the web logic server.

• Open the web logic distribution shell script and start the server. The script is located in the config directory and it is used to set up the CLASSPATH variable automatically as soon as the server script starts.

• While compiling the application classes or using the web logic utilities, the CLASSPATH can be set and right entries can be made to the configuration file.

 130 views

27⟩ Explain what are the databases that are available to be used with the Web logic J2EE connector architecture?

There are two databases that can be used with the Web logic J2EE connector architecture and these databases are as follows:

1. Cloudscape database: This is the default database that is used with the architecture and this consists of the samples that contain the resource adapter representing the database system. The configuration of this is set in weblogic-ra.xml file that contains the cloudscape datasource.

2. Oracle database: The settings of cloudscape can be replaced by oracle settings. The resources that are provided consist of the JDBC support, hence it can use any database for which the resources can be configured and represented.

 149 views

28⟩ Explain where are the files placed while deploying the resource adapter in web logic server?

The resource files are represented in CLASSPATH and the resource adapters are also mentioned there. The server instance includes the deployment of EJB and resource adapter in the form of .rar file format. The EJB consists of no dependencies as it is being written on the common client interface (CCI). EJB client is used to communicate with one another and it consists of message sending mechanism. EJB is having the parameter classes that are defined in .rar file format. EJB uses the class loaders also maintaining a hierarchy that is defined in the .rar specific class. When the instance is being passed as an argument to the EJB the application server de-serialize the object and sends the message to the servers of its deactivation.

 159 views

29⟩ Tell me how is the security handled in Web logic J2EE Connector Architecture?

The security is quite strict when it comes to add new servers or update an existing one. The current configuration includes the information of all the connections that are established with the main server and it consists of the packaging requirements for the resource adapters in web logic servers. The server provides password protection and encryption method to increase the security of the overall standards. All the passwords are present in the file weblogic-ra.xml. The web logic server provides a converter tool that allows the information to be encrypted and made password protected. This converter tool is present in standard weblogic.jar file.

 173 views

30⟩ Do you know what is the function of ManagedConnection.addConnectionEventListener() in web logic server?

This function is used in EJB to call ConnectionFactory.getConnection() that connects to the EIS. It is a part of the Resource adapter and the application server. This is called to listen to an event that is taking place on the entire server whose data is present. This allows the connection to be established between the two servers and used to get the connection details for the new server. This function manages all the connections that are in the list and adds the connection whenever there is a requirement and the need.

 180 views

31⟩ Do you know how can third-party JDBC driver be used with JMS?

Web logic server supports the JDBC drivers that are included and with other databases as well. The JDBC drivers if not present then the JMS has to be created manually. If it is present then it just has to be included. The files that are used having .ddl extension that is located in weblogic/jms/ddl directory of the weblogic.jar file and this can be used as a template. The jar utility that is supplied can be extracted with JDK using the following command:

jar xf weblogic.jar weblogic/jms/ddl

After the extraction the drivers gets copied to the specified location and then they can be inserted in the application by going the console. This will automatically create the database tables for the JDBC store. This is easier to configure and provide better performance in compare to other methods.

 128 views

32⟩ Explain what is the procedure to configure JMS security?

Open the web logic server console and select ACLs in the tree view. To configure the JMS security there is a need to create a control list. The procedure is as follows:

1. Set ACL name like weblogic.jms.queue.QUEUENAME or weblogic.jms.topic.TOPICNAME.

2. Create it with new permission that include send and receive permissions.

3. Create users of groups list and set the permissions for it. Save the changes of implementation and exit.

The procedure will update the fileRealm.properties file with the statements given below: acl.send.weblogic.jms.queue.myQueue=user

acl.receive.weblogic.jms.queue.myQueue1=user

 124 views

33⟩ Tell me what are the steps involved in configuring the JMS?

• Start web logic server and go to console.

• Select JMS, to configure anything create a store and create a new JMS file.

• Create a new connection and add it to the JDBC connection pool.

• Select the target server. Select the template that needs to be applied on the JMS.

• Select a server or create a new JMSServer, this server will consist of the JMS that will be booted when the system or the server will be turned on.

• Create destinations in which the query from the JMS server will get stored.

• Create connection factories by typing in the name and JNDI name. The targets can be selected from here to deploy the connection factory.

 129 views

34⟩ Do you know what is the purpose of T3 in WebLogic Server?

T3 provides a framework for WebLogic Server messages this includes the necessary support for the enhancements of the services that needs to be given. T3 framework includes certain features like object replacement and tunneling concept used in the clustering of the web logic servers. T3 uses Java Object Serialization and RMI, to provide the object and communication from one server to another server remotely. T3 is a framework that connects the web logic server with the programmatic clients. T3 uses protocols such as HTTP and IIOP to communicate between the processes and web logic servers.

 121 views

35⟩ Do you know what is the local interface used by web logic server?

EJB is used with the web logic server and provides the mechanism of remote method invocation using the JAVA API’s. The support is extended to CORBA that is used to transport these remote calls using RMI/IIOP protocols. This interface provided flexibility and performance by increasing the development of the application. EJB supports the local interface mechanism to allow streamlined calls to the bean if a caller is in the same container. This doesn’t include any overhead that is usually involved with RMI when using the marshalling feature. The interfaces provide the foundation for the container managed relationships between the entity beans.

 124 views