weblogic-10.x

Accessing File Over A Network Using Service Account in Java

£可爱£侵袭症+ 提交于 2019-12-09 23:13:14
问题 I am trying to read a file from a network location using Java.The problem is that the access to that network location requires specific credentials. Is there any way to specify these credentials in Java and then access teh file over the network. I am trying to do this from my web application which is running on Weblogic Thanks, Abhishek 回答1: Here is a sample code. try { URL url = new URL("https://www.visruthcv.appspot.com"); URLConnection con = url.openConnection(); HttpURLConnection

Override JAX-WS version used by Weblogic 10 - Dynamic WSDL with inline schemas

一曲冷凌霜 提交于 2019-12-09 17:21:46
问题 Has anyone successfully updated the JAX-WS version used by Weblogic 10.3.3? I've been trying to do what's described in the accepted answer from here for hours with no luck. I'm using Maven to resolve my dependencies and I've tried with combinations of the following libraries in my WAR module (Web service project): <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2.8</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId

How to debug Java EE application using WebLogic 10.3

落花浮王杯 提交于 2019-12-09 12:54:39
问题 I am using WebLogic 10.3 with a Java EE application. Can anyone please tell me how to debug this application? 回答1: I think the other answers are somewhat wrong. For windows, if you setup an environment variable called debugFlag to be true or in solaris/unix do the same debugFlag=true export debugFlag DEBUG_PORT=8453 export DEBUG_PORT , then setDomainEnv.sh or setDomainEnv.cmd are going to be called to start WLS by the other scripts. They look for the debugFlag and DEBUG_PORT , as long as the

Open source threadpool lib

天大地大妈咪最大 提交于 2019-12-08 13:10:36
I was looking for open source thread pool lib which I can use to schedule the jobs and once that individual job is done I want some notification in the thread so that I can finish the rest of the task. Do you guys know any open source lib that is doing similar kind of work. I might be using this lib in multiple diff server. Basic overview of my task is I have list of items. Each items needs to be submitted to other system throgh JMS/Webservice and then wait for response for each items being processed and do the rest of the task. Thanks in advance andersoj How about j.u.c. ThreadPoolExecutor ?

Get the name of the server in which I am receiving requests to my app on weblogic?

青春壹個敷衍的年華 提交于 2019-12-08 12:37:05
问题 I need to know from which server is my app responding at any web request. I'm trying to make local connection with ServerMBeans, but I only get the AdminServer at any port. here is the code: String serverName = ""; MBeanHome mbean = null; try { InitialContext ctx = new InitialContext(); mbean = (MBeanHome) ctx.lookup("java:comp/env/jmx/runtime"); serverName = mbean.getMBeanServer().getServerName(); } catch (Exception ex) { serverName = ex.getMessage(); } return serverName; 回答1: Just tested

How to “copy” a JMS message to 2 destinations?

允我心安 提交于 2019-12-08 09:12:55
问题 I have a requirement that a single JMS message sent by a client must be delivered reliably (exactly-once) to two systems. These 2 systems are not HA-enabled, so the best suggestion that I came up with is to: create single queue where client posts to set up two "intermediate" queues use a custom "DuplicatorMDB" that will read messages from the client queue and post them to two queues within the same transaction. client->JMSDQ->DuplicatorMDB->Q1->MDB->System1 \->Q2->MDB->System2 Is there any

XpoweredBy not working in Web logic

早过忘川 提交于 2019-12-08 08:56:01
问题 I have used weblogic server 10.3. have to hide the X-Powered-By: Servlet/2.5 JSP/2.1 from header response for that i did the following In weblogic admin console, under domainName->Configuration->Web Application, I set 'X-Powered-By Header ' to "X-Powered-By Header will not be sent". It's working fine in local. but not working in server side.even though i cleared temp files and restart the server many times. I tried by adding the following in web.xml also <context-param> <param-name>com.sun

Open source threadpool lib

筅森魡賤 提交于 2019-12-08 04:37:24
问题 I was looking for open source thread pool lib which I can use to schedule the jobs and once that individual job is done I want some notification in the thread so that I can finish the rest of the task. Do you guys know any open source lib that is doing similar kind of work. I might be using this lib in multiple diff server. Basic overview of my task is I have list of items. Each items needs to be submitted to other system throgh JMS/Webservice and then wait for response for each items being

XpoweredBy not working in Web logic

心不动则不痛 提交于 2019-12-08 03:24:32
I have used weblogic server 10.3. have to hide the X-Powered-By: Servlet/2.5 JSP/2.1 from header response for that i did the following In weblogic admin console, under domainName->Configuration->Web Application, I set 'X-Powered-By Header ' to "X-Powered-By Header will not be sent". It's working fine in local. but not working in server side.even though i cleared temp files and restart the server many times. I tried by adding the following in web.xml also <context-param> <param-name>com.sun.faces.sendPoweredByHeader</param-name> <param-value>false</param-value> </context-param> In php.ini

weblogic.descriptor.DescriptorException: Unmarshaller failed

╄→尐↘猪︶ㄣ 提交于 2019-12-07 22:58:39
问题 When i deploy my WAR in Weblogic 10.3.6 it runs but in weblogic 10.3.0 it throws this: Unable to load descriptor D:\bea103\user_projects\domains\SRVWinplex\Deployments\WinplexAdmin.war/WEB-INF/weblogic.xml of module WinplexAdmin.war. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java