weblogic

Can I do an atomic MERGE in Oracle?

有些话、适合烂在心里 提交于 2019-12-01 02:26:38
I have a couple instances of a J2EE app running in a single WebLogic cluster. At some point, these apps do a MERGE to insert or update a record into the back-end Oracle database. The MERGE checks to see if a row with a specified primary key is there or not. If it's there, update. If not, insert. Now suppose two app instances want to insert or update a row with primary key = 100. Suppose the row doesn't exist. During the "check" stage of merge, they both see that the rows not there, so both of them attempt to insert. Then I get a unique key constraint violation. My question is this: Is there an

关于Weblogic的知识点

試著忘記壹切 提交于 2019-12-01 02:16:15
一、解决Weblogic域创建、启动、进入控制台慢问题 搭建Weblogic 11g和12c环境时发现,安装正常,以默认组件安装,但是创建域的时候特别慢,一般需要几分钟至10分钟,卡在“创建域安全信息”那一行,创建完成后,启动偶尔也很慢,也卡在域安全信息那一步,进入console,只出来标题,页面内容至少需要几分钟才能出来,只有第一次进入console会卡,以后速度正常,但是重启后依旧第一次卡。 到网上搜索,是linux下java生成随机数有bug,改法有几种,最好的改法是修改jdk: 命令:# vi $JAVA_HOME/jre/lib/security/java.security 将securerandom.source=file:/dev/urandom改为:securerandom.source=file:/dev /./ urandom 来源: https://www.cnblogs.com/jmy520/p/11647502.html

access Mbeans on weblogic

非 Y 不嫁゛ 提交于 2019-12-01 00:54:46
From the documentation of oracle : Domain Runtime MBean Server : This MBean server also acts as a single point of access for MBeans that reside on Managed Servers. what i want to do is to use this fact to access all my custom mBeans scattered in several managed servers. for example assume that i have two nodes server-1 server-2 . how can i access all of the custom mBeans on both server-1 server-2 by connecting to the administrator node ? i dont want to remotly access each node to return the result i want a single entry point i managed to get the names of the servers and the states and other

Weblogic EJB connection to external Tibco EMS JMS Queue

半城伤御伤魂 提交于 2019-12-01 00:34:49
I'm trying to connect a Weblogic (10.3) MDB to a Tibco EMS JMS queue. I've read from the queue using a simple Java/Spring JNDI connection so I know the foreign JNDI lookup names are valid. My WL foreign server details: JNDI Initial Context Factory: com.tibco.tibjms.naming.TibjmsInitialContextFactory JNDI Connection URL: tcp://ems-dit-am-uat-1.app.xxx.net:30055 JNDI Properties: java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory java.naming.provider.url=tcp://ems-dit-am-uat-1.app.xxx.net:30055 java.naming.security.principal=rdsuat java.naming.factory.url.pkgs=com

Logging JPA SQL with Weblogic 10.3

大憨熊 提交于 2019-11-30 23:08:04
By looking into the Open JPA website i've found that i can log the generated SQL by using the following: <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO"/> If i try to add the above property to my persistence.xml i get the following warning from weblogic: <Warning> <J2EE> <BEA-160202> <You have specified a ope njpa.Log setting in your configuration for persistence unit services.ear#services-ejb.jar#exp#exp. This setting will be ignored, and all log messages will be sent to the WebLogic logging subsystem. Trace-level logging is controlle d by the various JPA

Class bytes found but defineClass()failed for error when deploying EAR

十年热恋 提交于 2019-11-30 22:36:27
问题 I am trying to deploy and old code base with EJB 1.1 stuff to Weblogic 10.3.6 and keep getting this strange error Class bytes found but defineClass()failed for . The classes are there and being found what is causing this? 回答1: This is here, because this was a hard thing to find on the internet. I figured it out, the project was getting compiled with JDK 1.7 and the Weblogic server has 1.6 installed. I recompiled the project with JDK 1.6 and it is working now! 回答2: Problem : Compiling code

Can I do an atomic MERGE in Oracle?

烈酒焚心 提交于 2019-11-30 22:03:15
问题 I have a couple instances of a J2EE app running in a single WebLogic cluster. At some point, these apps do a MERGE to insert or update a record into the back-end Oracle database. The MERGE checks to see if a row with a specified primary key is there or not. If it's there, update. If not, insert. Now suppose two app instances want to insert or update a row with primary key = 100. Suppose the row doesn't exist. During the "check" stage of merge, they both see that the rows not there, so both of

Want to enable GZip compression in Weblogic

偶尔善良 提交于 2019-11-30 20:23:50
I want to enable GZIP compression for my static file like css styles, javascript which is serving from weblogic server. Can anyone help to how to configure this feature in weblogic server. Go to http://sourceforge.net/projects/pjl-comp-filter/ to download it and update your web.xml file with the following config: <filter> <filter-name>CompressingFilter</filter-name> <filter-class>com.planetj.servlet.filter.compression.CompressingFilter</filter-class> <init-param><param-name>includeContentTypes</param-name><param-value>text/html,text/css,application/x-javascript</param-value></init-param> <init

Grails, Weblogic and redirection on root “/” seems not working

落爺英雄遲暮 提交于 2019-11-30 19:35:50
问题 I configured my grails application with an root path like this (in UrlMapping): "/"{ controller="mycontroller" action="myaction" } in mycontroller.myaction, depending of the role, I redirect to the right action : def link if (SpringSecurityUtils.ifAnyGranted("ROLE_ADMIN") link = g.createLink(action: "action1", controller:"controller") else if (SpringSecurityUtils.ifAnyGranted("ROLE_ADMIN") link = g.createLink(action: "action2", controller:"controller") else ...ANONYMOUS... { link = g

Shutting down Spring application makes JNDI name for datasource go away from jdbc context

天大地大妈咪最大 提交于 2019-11-30 18:38:32
I'm trying to setup a web application using Spring MVC and Spring Data JPA on my Weblogic server. The application works fine the first time I deploy it to the Weblogic server but when I stop the application the jndi name (jdbc/myDS) to my datasource disappears from the JNDI Tree on my Weblogic server, and then when I try to start the application again I get the following error: Caused By: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.myDS'. Resolved 'jdbc'; remaining name 'myDS' I'm setting up the following at startup in JPAConfiguratation.java: package mySpringApp.application;