English 中文(简体)
如何在博斯获得单一吨的留驻?
原标题:How to obtain singleton s intance in JBoss?

I have a singleton that I have to instantiate in my filter and for some reason I cannot get it s instance on couple first attempts. (The application deployed in JBoss EAP 5.1) This same solution with no modification works just fine with Jetty Application server. Greatly appreciate for your answer in advance.

嗣后,

罗马

最佳回答
问题回答

为什么你们需要一个单一吨的过滤器? 你们有网络应用、会议,并请求提供你希望的任何数据。

尽管如此,如果看不出你的代码,那么你会利用一个等级的固定变量来做事吗? 如果是的话,请指出,班级由班级载荷负责,这是在应用服务器上使用这种部件的不良想法之一(这在很大程度上保证使用班级载荷等级等) JBoss和Jety显然有不同的做法。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签