Several basic problems of WebLogic

Source: Internet
Author: User
Tags port number ssl connection

1, how to give WebLogic the specified size of memory?

In the script that initiates WebLogic (Startservername in the corresponding server directory of the Domian), add set mem_args=-xms32m-xmx200m, you can adjust the minimum memory to 32M, Max 200M

2, how to set the WebLogic hot start Mode (development mode) and product release mode?

You can modify the startup mode of the corresponding server in the admin console for one of the development or product models. or modify the service's startup file or commenv file to add set Production_mode=true.

3, how to start without entering a username and password?

Modify service startup files to add Wls_user and WLS_PW entries. You can also add encrypted user names and passwords to the Boot.properties file.

4, in the WebLogic management platform for an application domain (or a Web site, domain) for JMS and the EJB or connection pool and other related information configuration, the actual save in what file?

stored in the Config.xml file in this domain, it is the core configuration file for the server.

5, talk about a domain in the WebLogic default directory structure? For example, to put a simple helloworld.jsp

In what directory, but in the browser can be into the http://host: port number//helloword.jsp can see the results of the operation? And for example, what do you do with a javabean that you write?

Domain directory \ Server directory \applications, the application directory will be placed in this directory can be used as an application access, if it is a Web application, the application directory needs to meet the requirements of the Web application directory, JSP files can be placed directly in the application directory, JavaBean need to be placed in the classes directory of the Web-inf directory of the application directory, setting the server's default application will be implemented without entering the application name on the browser.

6. How do I see the EJB that has been published in WebLogic?

You can use the Admin console to view all published EJBS in its deployment

7, how to WebLogic in the SSL configuration and client authentication configuration or say Java (standard) for SSL configuration

The default installation uses Demoidentity.jks and Demotrust.jks KeyStore to implement SSL, which requires the server to configure its ports with enable SSL, and to obtain private keys and digital certificates from the CA in product mode. Create identity and trust KeyStore, mount the acquired key and digital certificate. You can configure whether this SSL connection is one-way or bidirectional.

8. Which configuration files should be involved in publishing EJB in WebLogic

Different types of EJBS involve different configuration files, and the configuration files involved include ejb-jar.xml,weblogic-ejb-jar.xmlcmp entity beans that typically require weblogic-cmp-rdbms-jar.xml

9, EJB need to directly implement its business interface or home interface, please brief reasons.

The remote interface and the home interface do not need to be implemented directly, their implementation code is generated by the server, the corresponding implementation class in the program running is used as an instance of the corresponding interface type.

10, talk about the difference between persistent and non-persisten when developing a message bean in WebLogic

Persistent MDB can guarantee the reliability of message delivery, that is, if the EJB container is problematic and the JMS server still sends the message to the MDB when it is available, the non-persistent message is discarded.

11. What are some of the common patterns in Java EE that you know or have heard about? and some ideas about design pattern

Session façade pattern: using Sessionbean to access Entitybean

Message façade pattern: implementing an Asynchronous call

EJB command pattern: Use command JavaBeans instead of Sessionbean for lightweight access

Data Transfer Object Factory: Simplifies Entitybean with DTO Factory features

Generic Access: Simplifies Entitybean data-delivery features via the Attibuteaccess interface

Business Interface: Achieve same interface Specification business logic consistency through remote (local) interface and Bean class

The design of EJB architecture will directly affect the system performance, scalability, maintainability, component reusability and development efficiency. The more complex the project, the greater the project team, the greater the importance of good design.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.