精华内容
下载资源
问答
  • weblogic面试

    2021-03-15 23:38:34
    weblogic面试题1、如何给weblogic指定大小的内存?在启动Weblogic的脚本中(位于所在Domian对应服务器目录下的startServerName),增加set M...1、如何给weblogic指定大小的内存?在启动Weblogic的脚本中(位于所在Domian...

    weblogic面试题

    1、如何给weblogic指定大小的内存?在启动Weblogic的脚本中(位于所在Domian对应服务器目录下的startServerName),增加set M...

    1、如何给weblogic指定大小的内存?

    在启动Weblogic的脚本中(位于所在Domian对应服务器目录下的startServerName),增加set MEM_ARGS=-Xms32m -Xmx200m,可以调整最小内存为32M,最大200M

    2、如何设定的weblogic的热启动模式(开发模式)与产品发布模式?

    可以在管理控制台中修改对应服务器的启动模式为开发或产品模式之一。或者修改服务的启动文件或者commenv文件,增加set PRODUCTION_MODE=true。

    3、如何启动时不需输入用户名与密码?

    修改服务启动文件,增加 WLS_USER和WLS_PW项。也可以在boot.properties文件中增加加密过的用户名和密码.

    4、在weblogic管理制台中对一个应用域(或者说是一个网站,Domain)进行jms及ejb或连接池等相关信息进行配置后,实际保存在什么文件中?

    保存在此Domain的config.xml文件中,它是服务器的核心配置文件。

    5、说说weblogic中一个Domain的缺省目录结构?比如要将一个简单的helloWorld.jsp放入何目录下,然的在浏览器上就可打入 http://主机:端口号//helloword.jsp就可以看到运行结果了? 又比如这其中用到了一个自己写的javaBean该如何办?

    Domain目录服务器目录applications,将应用目录放在此目录下将可以作为应用访问,如果是Web应用,应用目录需要满足 Web应用目录要求,jsp文件可以直接放在应用目录中,Javabean需要放在应用目录的WEB-INF目录的classes目录中,设置服务器的缺 省应用将可以实现在浏览器上无需输入应用名。

    6、如何查看在weblogic中已经发布的EJB?

    可以使用管理控制台,在它的Deployment中可以查看所有已发布的EJB

    7、如何在weblogic中进行ssl配置与客户端的认证配置或说说j2ee(标准)进行ssl的配置

    缺省安装中使用DemoIdentity.jks和DemoTrust.jks KeyStore实现SSL,需要配置服务器使用Enable SSL,配置其端口,在产品模式下需要从CA获取私有密钥和数字证书,创建identity和trust keystore,装载获得的密钥和数字证书。可以配置此SSL连接是单向还是双向的。

    8、在weblogic中发布ejb需涉及到哪些配置文件

    不同类型的EJB涉及的配置文件不同,都涉及到的配置文件包括ejb-jar.xml,weblogic-ejb-jar.xmlCMP实体Bean一般还需要weblogic-cmp-rdbms-jar.xml

    9、EJB需直接实现它的业务接口或Home接口吗,请简述理由.

    远程接口和Home接口不需要直接实现,他们的实现代码是由服务器产生的,程序运行中对应实现类会作为对应接口类型的实例被使用。

    10、说说在weblogic中开发消息Bean时的persistent与non-persisten的差别

    persistent方式的MDB可以保证消息传递的可靠性,也就是如果EJB容器出现问题而JMS服务器依然会将消息在此MDB可用的时候发送过来,而non-persistent方式的消息将被丢弃。

    11、说说你所熟悉或听说过的j2ee中的几种常用模式?及对设计模式的一些看法

    Session Facade Pattern:使用SessionBean访问EntityBean

    Message Facade Pattern:实现异步调用

    EJB Command Pattern:使用Command JavaBeans取代SessionBean,实现轻量级访问

    Data Transfer Object Factory:通过DTO Factory简化EntityBean数据提供特性

    Generic Attribute Access:通过AttibuteAccess接口简化EntityBean数据提供特性

    Business Interface:通过远程(本地)接口和Bean类实现相同接口规范业务逻辑一致性

    EJB架构的设计好坏将直接影响系统的性能、可扩展性、可维护性、组件可重用性及开发效率。项目越复杂,项目队伍越庞大则越能体现良好设计的重要性

    展开全文
  • WebLogic面试题Ⅱ

    2021-03-15 23:38:36
    1、LINUX 下线程,GDI 类的解释LINUX 实现的就是基于核心轻量级进程的"一对一"线程模型,一个线程实体对应一个核心轻量级进程,而线程之间的管理在核外函数库中实现;GDI 类为图像设备编程接口类库。...

    1、LINUX 下线程,GDI 类的解释

    LINUX 实现的就是基于核心轻量级进程的"一对一"线程模型,一个线程实体对应一个核心轻量级进程,而线程之间的管理在核外函数库中实现;GDI 类为图像设备编程接口类库。

    2、Jdo 是什么

    JDO 是 Java 对象持久化的新的规范,为 java data object 的简称,也是一个用于存取某种数据仓库中的对象的标准化 API。JDO 提供了透明的对象存储,因此对开发人员来说,存储数据对象完全不需要额外

    的代码(如 JDBC API 的使用)。这些繁琐的例行工作已经转移到 JDO 产品提供商身上,使开发人员解脱出来,从而集中时间和精力在业务逻辑上。另外,JDO 很灵活,因为它可以在任何数据底层上运

    行。JDBC 只是面向关系数据库(RDBMS)JDO 更通用,提供到任何数据底层的存储功能,比如关系数据库、文件、XML 以及对象数据库(ODBMS)等等,使得应用可移植性更强。

    3、WEB SERVICE 名词解释;JAXP、JAXM 的解释;SOAP、UDDI,WSDL 解释

    Web Service 是基于网络的、分布式的模块化组件,它执行特定的任务,遵守具体的技术规范,这些规范使得 Web Service 能与其他兼容的组件进行互操作;

    JAXP(Java API for XML Parsing)定义了在 Java 中使用 DOM, SAX, XSLT的通用的接口,这样在你的程序中你只要使用这些通用的接口,当你需要改变具体的实现时候也不需要修改代码;

    JAXM(Java API for XML Messaging)是为 SOAP 通信提供访问方法和传输机制的 API;

    WSDL 是一种 XML 格式,用于将网络服务描述为一组端点,这些端点对包含面向文档信息或面向过程信息的消息进行操作。这种格式首先对操作和消息进行抽象描述,然后将其绑定到具体的网络协议和

    消息格式上以定义端点。相关的具体端点即组合成为抽象端点(服务);

    SOAP 即简单对象访问协议(Simple Object Access Protocol),它是用于交换 XML 编码信息的轻量级协议;

    UDDI 的目的是为电子商务建立标准;UDDI 是一套基于 Web 的、分布式的、为 Web Service 提供的、信息注册中心的实现标准规范,同时也包含一组使企业能将自身提供的 Web Service 注册,以使别

    的企业能够发现的访问协议的实现标准。

    展开全文
  • weblogic app grid 考试题目和答案
  • weblogic10.3集群配置.doc weblogic10.3优化设置.doc weblogic 报 to many open file错误.docx weblogic.xml_部署描述符元素.docx Weblogic+10.3+集群配置手册.doc weblogic-debug模式启动.docx weblogic-debug模式...
  • Tomcat和weblogic中文乱码问题解决方案
  • J2EE with EJB and Weblogic interview questions What is the difference between URL instance and URLConnection instance? - A URL instance represents the location of a resource, and a ...

    J2EE with EJB and Weblogic interview questions

    1. What is the difference between URL instance and URLConnection instance? - A URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location.
    2. What are the two important TCP Socket classes? - Socket and ServerSocket. ServerSocket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in Socket class.

    3. What technologies are included in J2EE? - The primary technologies in J2EE are: Enterprise JavaBeansTM (EJBsTM), JavaServer PagesTM (JSPsTM), Java Servlets, the Java Naming and Directory InterfaceTM (JNDITM), the Java Transaction API (JTA), CORBA, and the JDBCTM data access API.
    4. What is the Java Authentication and Authorization Service (JAAS) 1.0? - The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. JAAS is a Java programing language version of the standard Pluggable Authentication Module (PAM) framework that extends the Java 2 platform security architecture to support user-based authorization.
    5. What’s the difference between JNDI lookup(), list(), listBindings(), and search()? - lookup() attempts to find the specified object in the given context. I.e., it looks for a single, specific object and either finds it in the current context or it fails. list() attempts to return an enumeration of all of the NameClassPair’s of all of the objects in the current context. I.e., it’s a listing of all of the objects in the current context but only returns the object’s name and the name of the class to which the object belongs. listBindings() attempts to return an enumeration of the Binding’s of all of the objects in the current context. I.e., it’s a listing of all of the objects in the current context with the object’s name, its class name, and a reference to the object itself. search() attempts to return an enumeration of all of the objects matching a given set of search criteria. It can search across multiple contexts (or not). It can return whatever attributes of the objects that you desire. It’s by far the most complex and powerful of these options but is also the most expensive.
    6. Components of JNDI - Naming Interface- The naming interface organizes information hierarchically and maps human-friendly names to addresses or objects that are machine-friendly. It allows access to named objects through multiple namespaces. Directory Interface - JNDI includes a directory service interface that provides access to directory objects, which can contain attributes, thereby providing attribute-based searching and schema support. Service Provider Interface - JNDI comes with the SPI, which supports the protocols provided by third parties.
    7. What is the Max amount of information that can be saved in a Session Object? - As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the limitation. The only limit is the Session ID length(Identifier), which should not exceed more than 4K. If the data to be store is very huge, then it’s preferred to save it to a temporary file onto hard disk, rather than saving it in session. Internally if the amount of data being saved in Session exceeds the predefined limit, most of the servers write it to a temporary cache on Hard disk.
    8. Must my bean-managed persistence mechanism use the WebLogic JTS driver? - BEA recommend that you use the TxDataSource for bean-managed persistence.
    9. Do EJBs have to be homogeneously deployed across a cluster? Why? - Yes. Beginning with WebLogic Server version 6.0, EJBs must be homogeneously deployed across a cluster for the following reasons:
      • To keep clustering EJBs simple

      • To avoid cross server calls which results in more efficiency. If EJBs are not deployed on all servers, cross server calls are much more likely.
      • To ensure that every EJB is available locally
      • To ensure that all classes are loaded in an undeployable way
      • Every server must have access to each EJB’s classes so that it can be bound into the local JNDI tree. If only a subset of the servers deploys the bean, the other servers will have to load the bean’s classes in their respective system classpaths which makes it impossible to undeploy the beans.
    10. Is an XSLT processor bundled in WebLogic Server? - Yes, an XSLT processor, based on Apache’s Xalan 2.0.1 processor, in WebLogic Server 6.1.
    11. I plugged in a version of Apache Xalan that I downloaded from the Apache Web site, and now I get errors when I try to transform documents. What is the problem? - You must ensure that the version of Apache Xalan you download from the Apache Web site is compatible with Apache Xerces version 1.3.1. Because you cannot plug in a different version of Apache Xerces , the only version of Apache Xerces that is compatible with WebLogic Server 6.1 is 1.3.1. The built-in parser (based on version 1.3.1 of Apache Xerces) and transformer (based on version 2.0.1 of Apache Xalan) have been modified by BEA to be compatible with each other.
    12. How do I increase WebLogic Server memory? - Increase the allocation of Java heap memory for WebLogic Server. (Set the minimum and the maximum to the same size.) Start WebLogic Server with the -ms32m option to increase the allocation, as in this example:
      	$ java ... -ms32m -mx32m ...
      

      This allocates 32 megabytes of Java heap memory to WebLogic Server, which improves performance and allows WebLogic Server to handle more simultaneous connections. You can increase this value if necessary.

    13. What causes Java.io exceptions in the log file of WebLogic Server? - You may see messages like these in the log file:
      (Windows NT)
      	java.io.IOException Connection Reset by Peer
      	java.io.EOFException Connection Reset by Peer
      (Solaris)
      	java.io.Exception: Broken pipe
      

      These messages occur when you are using servlets. A client initiates an HTTP request, and then performs a series of actions on the browser:

      • Click Stop or enter equivalent command or keystrokes

      • Click Refresh or enter equivalent command or keystrokes
      • Send a new HTTP request.

      The messages indicate that WebLogic Server has detected and recovered from an interrupted HTTP request.

    14. What is the function of T3 in WebLogic Server? - T3 provides a framework for WebLogic Server messages that support for enhancements. These enhancements include abbreviations and features, such as object replacement, that work in the context of WebLogic Server clusters and HTTP and other product tunneling. T3 predates Java Object Serialization and RMI, while closely tracking and leveraging these specifications. T3 is a superset of Java Object. Serialization or RMI; anything you can do in Java Object Serialization and RMI can be done over T3. T3 is mandated between WebLogic Servers and between programmatic clients and a WebLogic Server cluster. HTTP and IIOP are optional protocols that can be used to communicate between other processes and WebLogic Server. It depends on what you want to do. For example, when you want to communicate between a browser and WebLogic Server-use HTTP, or an ORB and WebLogic Server-IIOP.
    15. What are the enhancements in EJB 2.0 specification with respect to Asynchronous communication? - EJB 2.0 mandates integration between JMS and EJB. We have specified the integration of Enterprise JavaBeans with the Java Message Service, and have introduced message-driven beans. A message-driven bean is a stateless component that is invoked by the container as a result of the arrival of a JMS message. The goal of the message-driven bean model is to make developing an enterprise bean that is asynchronously invoked to handle the processing of incoming JMS messages as simple as developing the same functionality in any other JMS MessageListener.
    16. What are the enhancements in EJB 2.0 with respect to CMP? - EJB 2.0 extends CMP to include far more robust modeling capability, with support for declarative management of relationships between entity EJBs. Developers no longer need to re-establish relationships between the various beans that make up their application — the container will restore the connections automatically as beans are loaded, allowing bean developers to navigate between beans much as they would between any standard Java objects.
      EJB 2.0 also introduces for the first time a portable query language, based on the abstract schema, not on the more complex database schema. This provides a database and vendor-independent way to find entity beans at run time, based on a wide variety of search criteria.
    17. Can you briefly describe local interfaces? - EJB was originally designed around remote invocation using the Java Remote Method Invocation (RMI) mechanism, and later extended to support to standard CORBA transport for these calls using RMI/IIOP. This design allowed for maximum flexibility in developing applications without consideration for the deployment scenario, and was a strong feature in support of a goal of component reuse in J2EE. Many developers are using EJBs locally - that is, some or all of their EJB calls are between beans in a single container. With this feedback in mind, the EJB 2.0 expert group has created a local interface mechanism. The local interface may be defined for a bean during development, to allow streamlined calls to the bean if a caller is in the same container. This does not involve the overhead involved with RMI like marshalling etc. This facility will thus improve the performance of applications in which co-location is planned. Local interfaces also provide the foundation for container-managed relationships among entity beans with container-managed persistence.
    18. What are the special design care that must be taken when you work with local interfaces? - It is important to understand that the calling semantics of local interfaces are different from those of remote interfaces. For example, remote interfaces pass parameters using call-by-value semantics, while local interfaces use call-by-reference. This means that in order to use local interfaces safely, application developers need to carefully consider potential deployment scenarios up front, then decide which interfaces can be local and which remote, and finally, develop the application code with these choices in mind. While EJB 2.0 local interfaces are extremely useful in some situations, the long-term costs of these choices, especially when changing requirements and component reuse are taken into account, need to be factored into the design decision.
    19. What happens if remove( ) is never invoked on a session bean? - In case of a stateless session bean it may not matter if we call or not as in both cases nothing is done. The number of beans in cache is managed by the container. In case of stateful session bean, the bean may be kept in cache till either the session times out, in which case the bean is removed or when there is a requirement for memory in which case the data is cached and the bean is sent to free pool.
    20. What is the difference between creating a distributed application using RMI and using a EJB architecture? - It is possible to create the same application using RMI and EJB. But in case of EJB the container provides the requisite services to the component if we use the proper syntax. It thus helps in easier development and lesser error and use of proven code and methodology. But the investment on application server is mandatory in that case. But this investment is warranted because it results in less complex and maintainable code to the client, which is what the end client wants. Almost all the leading application servers provide load balancing and performance tuning techniques. In case of RMI we have to code the services and include in the program the way to invoke these services.
    21. Why would a client application use JTA transactions? - One possible example would be a scenario in which a client needs to employ two (or more) session beans, where each session bean is deployed on a different EJB server and each bean performs operations against external resources (for example, a database) and/or is managing one or more entity beans. In this scenario, the client’s logic could required an all-or-nothing guarantee for the operations performed by the session beans; hence, the session bean usage could be bundled together with a JTA UserTransaction object. In the previous scenario, however, the client application developer should address the question of whether or not it would be better to encapsulate these operations in yet another session bean, and allow the session bean to handle the transactions via the EJB container. In general, lightweight clients are easier to maintain than heavyweight clients. Also, EJB environments are ideally suited for transaction management.
      Context c = new InitialContext(); UserTransaction ut = (UserTransaction)
      c.lookup("java:comp/UserTransaction");
      ut.begin();
      	// perform multiple operations...
      ut.commit() ...
      
    22. Can the bean class implement the EJBObject class directly? If not why? - It is better not to do it will make the Bean class a remote object and its methods can be accessed without the containers? security, and transaction implementations if our code by mistake passed it in one of its parameters. Its just a good design practice.
    23. What does isIdentical() method return in case of different type of beans? - Stateless - true always. Stateful - depends whether the references point to the same session object. Entity - Depends whether the primary key is the same and the home is same.
    24. How should you type cast a remote object? Why? - A client program that is intended to be interoperable with all compliant EJB Container implementations must use the javax.rmi.PortableRemoteObject.narrow(…) method to perform type-narrowing of the client-side representations of the remote home and remote interfaces. Programs using the cast operator for narrowing the remote and remote home interfaces are likely to fail if the Container implementation uses RMI-IIOP as the underlying communication transport.
    25. What should you do in a passive method? - You try to make all nontransient variables, which are not one of the following to null. For the given list the container takes care of serializing and restoring the object when activated. Serializable objects, null, UserTransaction, SessionContext, JNDI contexts in the beans context, reference to other beans, references to connection pools.
      Things that must be handled explicitly are like a open database connection etc. These must be closed and set to null and retrieved back in the activate method.
    http://www.techpaste.com/2012/05/oracle-weblogic-server-10g-system-administration/

    展开全文
  • Tomcat 面试题(总结最全面的面试题!!!)

    千次阅读 多人点赞 2019-12-22 11:31:37
    3、WebLogic BEA WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应用的Java应用服务器。将Java的动态功能和Java Enterprise标准的安全性引入大型网络应用的开发、集成、部署和管理之中...

    Tomcat是什么?

    • Tomcat 服务器Apache软件基金会项目中的一个核心项目,是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用。
    • 比方说,我有个web项目是想让他运行,就可以在运行在tomcat平台上,如果开启就可以运行访问,如果停掉tomcat服务,那么无法访问了

    Tomcat的缺省端口是多少,怎么修改

    • 默认8080

    • 修改端口号方式

      1. 找到Tomcat目录下的conf文件夹

      2. 进入conf文件夹里面找到server.xml文件

      3. 打开server.xml文件

      4. 在server.xml文件里面找到下列信息

      5. 把Connector标签的8080端口改成你想要的端口

    怎么在Linux上安装Tomcat

    1. 先去下载Tomcat的安装包,gz结尾的(代表Linux上的Tomcat)
    2. 上传到Linux上,解压
    3. 修改端口号,也可以不修改把。如果要修改在server.xml内改
    4. 修改好了之后,你就进入你这个tomcat下的bin目录,输入:./startup.sh
      这样就启动成功了。

    怎么在Linux部署项目

    • 先使用eclipse或IDEA把项目打成.war包,然后上传到Linux服务器,然后把项目放在Tomcat的bin目录下的webapps,在重启Tomcat就行了。

    Tomcat的目录结构

    • /bin:存放用于启动和暂停Tomcat的脚本
    • /conf:存放Tomcat的配置文件
    • /lib:存放Tomcat服务器需要的各种jar包
    • /logs:存放Tomcat的日志文件
    • /temp:Tomcat运行时用于存放临时文件
    • /webapps:web应用的发布目录
    • /work:Tomcat把有jsp生成Servlet防御此目录下

    类似Tomcat,发布jsp运行的web服务器还有那些:

    • 1、Resin
      Resin提供了最快的jsp/servlets运行平台。在java和javascript的支持下,Resin可以为任务灵活选用合适的开发语言。Resin的一种先进的语言XSL(XML stylesheet language)可以使得形式和内容相分离。

    • 2、Jetty
      Jetty是一个开源的servlet容器,它为基于Java的web内容,例如JSP和servlet提供运行环境。Jetty是使用Java语言编写的,它的API以一组JAR包的形式发布。开发人员可以将Jetty容器实例化成一个对象,可以迅速为一些独立运行(stand-alone)的Java应用提供网络和web连接。

    • 3、WebLogic
      BEA WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应用的Java应用服务器。将Java的动态功能和Java Enterprise标准的安全性引入大型网络应用的开发、集成、部署和管理之中。

    • 4、jboss
      Jboss是一个基于J2EE的开放源代码的应用服务器。 JBoss代码遵循LGPL许可,可以在任何商业应用中免费使用,而不用支付费用。JBoss是一个管理EJB的容器和服务器,支持EJB 1.1、EJB 2.0和EJB3的规范。但JBoss核心服务不包括支持servlet/JSP的WEB容器,一般与Tomcat或Jetty绑定使用。

    tomcat 如何优化?

    1. 改Tomcat最大线程连接数
      需要修改conf/server.xml文件,修改里面的配置文件:
      maxThreads=”150”//Tomcat使用线程来处理接收的每个请求。这个值表示Tomcat可 创建的最大的线程数。默认值200。可以根据机器的时期性能和内存大小调整,一般 可以在400-500。最大可以在800左右。

    2. Tomcat内存优化,启动时告诉JVM我要多大内存
      调优方式的话,修改:
      Windows 下的catalina.bat
      Linux 下的catalina.sh
      修改方式如:
      JAVA_OPTS=’-Xms256m -Xmx512m’-Xms JVM初始化堆的大小-Xmx JVM堆的最大值 实际参数大

    tomcat 有哪几种Connector 运行模式(优化)?

    下面,我们先大致了解Tomcat Connector的三种运行模式。

    1. BIO:同步并阻塞 一个线程处理一个请求。缺点:并发量高时,线程数较多,浪费资源。Tomcat7或以下,在Linux系统中默认使用这种方式。
      配制项:protocol=”HTTP/1.1”

    2. NIO:同步非阻塞IO
      利用Java的异步IO处理,可以通过少量的线程处理大量的请求,可以复用同一个线程处理多个connection(多路复用)。

      Tomcat8在Linux系统中默认使用这种方式。
      Tomcat7必须修改Connector配置来启动。
      配制项:protocol=”org.apache.coyote.http11.Http11NioProtocol”
      备注:我们常用的Jetty,Mina,ZooKeeper等都是基于java nio实现.

    3. APR:即Apache Portable Runtime,从操作系统层面解决io阻塞问题。
      AIO方式异步非阻塞IO(Java NIO2又叫AIO) 主要与NIO的区别主要是操作系统的底层区别.可以做个比喻:比作快递,NIO就是网购后要自己到官网查下快递是否已经到了(可能是多次),然后自己去取快递;AIO就是快递员送货上门了(不用关注快递进度)。

      配制项:protocol=”org.apache.coyote.http11.Http11AprProtocol”
      备注:需在本地服务器安装APR库。Tomcat7或Tomcat8在Win7或以上的系统中启动默认使用这种方式。Linux如果安装了apr和native,Tomcat直接启动就支持apr。

    Tomcat有几种部署方式?

    在Tomcat中部署Web应用的方式主要有如下几种:

    1. 利用Tomcat的自动部署。

      把web应用拷贝到webapps目录。Tomcat在启动时会加载目录下的应用,并将编译后的结果放入work目录下。

    2. 使用Manager App控制台部署。

      在tomcat主页点击“Manager App” 进入应用管理控制台,可以指定一个web应用的路径或war文件。

    3. 修改conf/server.xml文件部署。

      修改conf/server.xml文件,增加Context节点可以部署应用。

    4. 增加自定义的Web部署文件。

      在conf/Catalina/localhost/ 路径下增加 xyz.xml文件,内容是Context节点,可以部署应用。

    tomcat容器是如何创建servlet类实例?用到了什么原理?

    1. 当容器启动时,会读取在webapps目录下所有的web应用中的web.xml文件,然后对 xml文件进行解析,并读取servlet注册信息。然后,将每个应用中注册的servlet类都进行加载,并通过 反射的方式实例化。(有时候也是在第一次请求时实例化)
    2. 在servlet注册时加上1如果为正数,则在一开始就实例化,如果不写或为负数,则第一次请求实例化。

    Tomcat工作模式

    • Tomcat作为servlet容器,有三种工作模式:

      • 1、独立的servlet容器,servlet容器是web服务器的一部分;
      • 2、进程内的servlet容器,servlet容器是作为web服务器的插件和java容器的实现,web服务器插件在内部地址空间打开一个jvm使得java容器在内部得以运行。反应速度快但伸缩性不足;
      • 3、进程外的servlet容器,servlet容器运行于web服务器之外的地址空间,并作为web服务器的插件和java容器实现的结合。反应时间不如进程内但伸缩性和稳定性比进程内优;
    • 进入Tomcat的请求可以根据Tomcat的工作模式分为如下两类:

      • Tomcat作为应用程序服务器:请求来自于前端的web服务器,这可能是Apache, IIS, Nginx等;
      • Tomcat作为独立服务器:请求来自于web浏览器;
    展开全文
  • 1、如何给weblogic 指定大小的内存?答:在启动Weblogic 的脚本中(位于所在Domian 对应服务器目录下的startServerName),增加setMEM_ARGS=-Xms32m -Xmx200m,可以调整最小内存为32M,最大200M。2、如何设定的...
  • WebLogic中间件、Tomcat

    千次阅读 2019-02-21 12:05:09
    参考:WebLogic中间件 如何对应用服务性能问题诊断(Tomcat、Weblogic中间件)
  • 运维面试问题-1

    万次阅读 多人点赞 2018-08-21 17:28:54
    1、为什么我们要使用tomcat,类似的软件有哪些?...类似的软件有Weblogic (收费)Jboss(免费)Resin、Jetty 2、tomcat优化 内存优化:JAVA_OPTS='-Xms=256m -Xmx=1024m -Xmn=512m' 并发优...
  • 点击上方“民工哥技术之路”选择“星标”每天10点为你分享不一样的干货Tomcat相关的面试题出场的几率并不高,正式因为如此,很多人忽略了对Tomcat相关技能的掌握,下面...
  • 面试可能问到的问题

    2017-10-27 16:58:08
    1.将项目对外发布,容器是Tomcat,weblogic等等。 1. 拷贝开发环境下的web目录 2. 收集jar包 3. 同步开发环境下的代码,即Tomcat下面的内容会随着开发环境的改变而同时改变。 一、写一段小文本,...
  • Tomcat Jboss Apache WebLogic区别与比较(阿里面试) Tomcat是Apache鼎力支持的Java Web应用服务器,只能做JSP和Servlet的Container,不支持EJB,由于它优秀的稳定性以及丰富的文档资料,广泛的使用人群,从而在开源...
  • WebLogic是美国Oracle公司出品的一个application server确切的说是一个基于JAVAEE架构的中间件,BEA WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应用的Java应用服务器。将Java的动态...
  • weblogic知识点

    千次阅读 2013-08-08 21:51:53
    一个 weblogic server 可以建立多个domain,每个 domain 可以启动一个 weblogic 服务,监听一个端口,下面可以部署多个应用,相当于一个独立的weblogic。 domain 之间互不影响,完全独立,有自己的 console。 ==...
  • 面试中常考的EJB知识以及Weblogic知识

    千次阅读 2014-03-03 15:33:22
    面试常考的EJB知识 EJB 与 JAVA BEAN 的区别?  答: Java Bean 是可复用的组件,对 Java Bean 并没有严格的规范,理论上讲,任何一个 Java 类都可以是一个 Bean 。但通常情况下,由于 Java Bean 是被容器所创建...
  • 面试中常考的ejb知识以及Weblogic知识

    千次阅读 2007-11-13 21:18:00
    面试常考的EJB知识EJB 与 JAVA BEAN 的区别? 答: Java Bean 是可复用的组件,对 Java Bean 并没有严格的规范,理论上讲,任何一个 Java 类都可以是一个 Bean 。但通常情况下,由于 Java Bean 是被容器所创建(如 ...
  • weblogic问题整理

    2016-03-07 16:03:31
    1.weblogic unable to get file lock问题: 解决方法:清理下缓存。 步骤:先停掉server; 再在weblogic安装目录\servers下,选择要清楚缓存的server,再点进去,里面有一个cache的目录,将这个目录里的文件全部...
  • websphere_weblogic

    2019-03-01 16:29:54
    博文链接:https://guona.iteye.com/blog/130827
  • 在启动Weblogic 的脚本中(位于所在Domian 对应服务器目录下的startServerName),增加set MEM_ARGS=-Xms32m -Xmx200m,可以调整最小内存为32M,最大200M。
  • 创建weblogic组用户 useradd -d /home/Weblogic -g 600 Weblogic 177 178 179 180 ----移动文件到oracle组中 存在文件用-r递归 181 cp /home/crm/ecifData/ /oracle/ecifDate 182 183 如果要...
  • 一、Tomcat的缺省是多少,怎么修改 Tomcat的缺省端口号是8080. 修改Tomcat端口号: 1.找到Tomcat目录下的conf文件夹 2.进入conf文件夹里面找到server.xml文件 ...maxThreads=”150″ minSpareThreads=”25
  • Tomcat面试题汇总

    2019-07-02 08:55:00
    详见:Tomcat 面试题汇总:https://blog.csdn.net/qq_25934401/article/details/81536958 1、Tomcat的缺省端口是多少,怎么修改? tomcat默认的端口是8080,还会占用8005,8009和8443端口。 进入tomcat安装目录,...
  • weblogic性能调优和监控的一些建议。
  • 1、如何给weblogic 指定大小的内存? 答:在启动Weblogic 的脚本中(位于所在Domian 对应服务器目录下的startServerName),增加set MEM_ARGS=-Xms32m -Xmx200m,可以调整最小内存为32M,最大200M。 2、如何设定的...
  • weblogic不是一款开源的软件,虽然存在免费试用等,但它主要的应用目标为大型商业应用,而这种应用需要高额的license费用 。   5 .resin:resin是Caucho公司的产品。resin最突出的是它的性能非常高效,连html...
  • weblogic不是一款开源的软件,虽然存在免费试用等,但它主要的应用目标为大型商业应用,而这种应用需要高额的license费用 。   5 .resin:resin是Caucho公司的产品。resin最突出的是它的性能非常高效,连html...
  • 1、weblogic weblogic是美国Oracle公司的一款产品,是一个基于JAVAEE架构的中间件。是用于开发、集成、部署 、管理大型分布式Web应用、网络应用、数据库应用的Java应用服务器。将Java的动态功能和Java Enterprise...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 7,291
精华内容 2,916
关键字:

weblogic面试