反对在大容量事务性企业系统中使用.NET的一个常见论点是,IIS不能与Weblogic和websphere for java相比.这是真的?不幸的是,对于.NET Web应用程序,IIS是应用程序服务器的唯一选择.有没有人反对这个?我想在企业中更多地推广.NET,并需要一些帮助来推动我的案例.
谢谢
我来自开源世界,我习惯让Apache提供我的图像,css,javascript等,而Tomcat或其同类服务器处理所有Java EE提升.
但是现在我正在用Weblogic 8.1做一个项目,我似乎无法弄清楚如何让它工作.例如,文档根的概念.我该如何配置?
我和我的开发人员遇到了一个问题,当我们不想要它们时,我们的应用程序中的对象被垃圾收集.我们在Weblogic 10g3中使用Java.我们正在编写单例模式来处理所有JMS连接.
涉及两个类:
public class JMSObject {
...
private MessageProducer _producer;
private MessageConsumer _consumer;
...
// standard get/set procs... etc.
}
public class JMSFactory {
...
// Hashmap sessions with key == ConnectionFactory Name
Hashmap<String, List<Session>> _sessions;
// Hashmap of JMSObjects with key == ConnectionFactory Name + JMS Queue Name
Hashmap<String, List<JMSObject>> _jmsobjects;
...
// standard get/set & necessary sington functions
}
Run Code Online (Sandbox Code Playgroud)
Servlet的init方法调用JMSFactory单元方法,任何新的Sessions都放在_sessions Hashmap中,新的MessageConsumer/MessageProducers作为JMSObject创建,并放在_jmsobjects Hashmap中的相应List中.
问题是,当系统运行时,列表中的JMSObjects会在一段时间后收集垃圾(有时在几小时后的其他时间会收集5分钟.)我们查看了几天,但找不到任何JMSObjects的原因被收集的野蛮人.既然JMSFactory引用了它们,为什么gc会破坏它们呢?
最后,我们通过更改类来修复它(不更改方法接口):
public class JMSObject {
...
private List<MessageProducer> _producers;
private List<MessageConsumer> _consumers;
...
// …Run Code Online (Sandbox Code Playgroud) 我正在尝试将我的web.xml从2.3升级到2.4,所以我将我的web.xml更改为这样的 -
<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1
Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">-->
<!--
===========================================================
WUI - WEB.XML
===========================================================
-->
<web-app id="WebApp" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/
ns/j2ee/web-app_2_4.xsd"
version="2.4">
<description>Odyssey Web User Interface</description>
<display-name>wui</display-name>
<!-- Uncomment this when setting up the prevent-multiple-login mechanism -->
<!--
<listener>
<listener-class>com.xxx.xxxnListener</listener-class>
</listener>
-->
<!-- local cache filter setup -->
<filter>
<filter-name>local-cache</filter-name>
<filter-class>com.xxx.xxxcheFilter</filter-class>
</filter>
....
Run Code Online (Sandbox Code Playgroud)
当我启动我的服务器时,我收到此错误 -
weblogic.descriptor.DescriptorException:验证问题发现问题:cvc-complex-type.2.4a:预期元素'servlet-class @ http://java.sun.com/xml/ns/javaee jsp-file @ …
我们有一个weblogic服务器,配置为在与客户端建立与Web服务解决方案的ssl连接时需要客户端证书.ssl握手完美地工作,因为我们已经配置了所需的全部内容.
现在,在连接之后我们收到一个soap请求,其中客户端ID是此请求soap的字段之一.我们需要做的是检查此id与用于在我们的服务器内连接的客户端证书的通用名称,以保证交易.这对我们来说非常重要,因为这是银行交易,涉及很多钱,我们需要避免欺诈.
那么:有没有办法恢复用于使用weblogic 10.3.3服务器在服务器上运行的java代码建立双向ssl连接的客户端证书的通用名称?
[]中
我正在尝试部署到Weblogic 10.3.5的Web应用程序.其中一个maven依赖项是Guava.
不幸的是,在尝试发布项目时,weblogic抛出了这个异常:
java.lang.ClassNotFoundException: com.google.common.eventbus.EventBus
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
Run Code Online (Sandbox Code Playgroud)
其余的maven依赖项SEEM正在运行,但我不确定问题是什么.
有人可以协助排除故障吗?环境是带有M2E插件的Eclipse,Weblogic Server已集成到Eclipse中.
更新:pom.xml中的番石榴条目:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我包括另一个图书馆(commons-lang),它工作得很好.
更新2:这可能是一个类加载器问题.我从这个博客得到了一个线索:http://blog.eisele.net/2011/12/running-richfaces-410final-on-weblogic.html.似乎WLS使用了一些google-commons库.
我试图通过在weblogic.xml文件中进行更改来强制它使用我的版本,但它似乎不起作用.
我创建了一个连接到WebLogic队列的同步QueueReceiver.
doStuff() {
ctx = new InitialContext();
qconFactory = (QueueConnectionFactory) ctx.lookup(CONNECTION_FACTORY);
queue = (Queue) ctx.lookup(outputFromOrcSyncQueue);
queueConnection = qconFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(true, -1);
queueReceiver = queueSession.createReceiver(queue);
Message message = queueReceiver.receive();
...
}
Run Code Online (Sandbox Code Playgroud)
true在queueSession创建中,这是因为连接工厂是事务处理的.如果我创建一个no transacted queueSession(通过put false),结果是queueReceiver似乎忽略了receive()通过该doStuff方法的方法(使用相同的行为receive(timeout),它不会在经过之前等待).
我还必须在我的连接工厂(WebLogic连接工厂的配置中的客户端选项卡)上启用同步消费者的预取模式.
我的问题是接收器没有读取发送到队列的任何消息.
我可以在WebLogic控制台上看到我的消息,我甚至可以看到我的queueReceiver正在侦听队列,但是queueReceiver似乎忽略了它们.
替代方法我试过的方法:
send()和之前的生产者会议close()谢谢.
是否可以X-Forwarded-For在weblogic的access.log日志文件中记录标题?
BackGround -
I am trying to deploy two spring batch applications as .war in same cluster in a single Weblogic Domain & each of them have spring batch admin console configured in servlet.xml like below -
<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- Spring Batch Admin -->
<import resource="classpath*:/org/springframework/batch/admin/web/resources/servlet-config.xml"/>
<import resource="classpath*:/org/springframework/batch/admin/web/resources/webapp-config.xml"/>
<bean id="resourceService" class="org.springframework.batch.admin.web.resources.DefaultResourceService">
<property name="servletPath" value="/batch" />
</bean>
</beans>
Run Code Online (Sandbox Code Playgroud)
Its a maven project & spring-batch-admin-manager 1.2.2 is pulled in as dependency.
Problem -
I am struggling …
我正在使用weblogic,并在响应中得到了以下标头参数:
X-Powered-By Servlet/3.0 JSP/2.2
Run Code Online (Sandbox Code Playgroud)
经过简单的搜索,我意识到我必须在我的代码中使用以下代码 web.xml
<context-param>
<param-name>com.sun.faces.sendPoweredByHeader</param-name>
<param-value>false</param-value>
</context-param>
Run Code Online (Sandbox Code Playgroud)
但不是为我工作。需要提及的是,当我将应用程序部署到Tomcat中时,此标头不会出现。
weblogic ×10
java ×8
jms ×2
servlets ×2
.net ×1
guava ×1
iis ×1
java-ee ×1
maven ×1
middleware ×1
soap ×1
spring-batch ×1
ssl ×1
weblogic11g ×1
websphere ×1