[Beginners Corner] - Process isolation in jBoss
by alikk
Hi!
I am working with a product built around jBoss AS. The server handles all UI interactions as well as some heavy weight tasks that may be requested by a user. These tasks may potentially consume a lot of the server resources including memory and CPU time. This increases system reposponse times and deteriorates uses experience. These tasks also may cause out of memory exceptions and kill the entire system.
In most cases these tasks include some database interaction and data processing. The executing code is implemented as session EJBs.
While handling high resource demands and exceptions is a separate issue, I am also looking for ways to isolate execution of these tasks from the rest of the system, may be running them in a separate JVM. I will be very interested to learn possible solutions that work well with jBoss.
Thank you!
--Alexader
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187920#4187920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187920
17 years, 7 months
[Remoting] - How to classify instances of InvokerCallbackHandler ?
by DanielTravin
Hi all,
I have a server that pushes data to clients. Data could be classified by events and data about different events come randomly to server from the 3rd source. Client connects to server and says "I want updates for data about event=N"
When data for event N arrives, server does iteration through all callback handlers, selects those that want to be notified about event N and invokes handleCallback on them.
My question is what API to use when client is saying "I am intrested in event N" ?
My suggestion is to put value into the metadata map when client calls
Client#addListener(...)
and get this value on the server side in ServerInvoker#handleInternalInvocation(...). In this case extension for class ServerInvoker is needed.
Why there is no out of the box solution for this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187912#4187912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187912
17 years, 7 months
[JBoss Messaging] - Re: Comparison to ActiveMQ
by timfox
"mkelley" wrote :
|
| We don't want to do this. We need to intermix queues (whose listeners MUST receive and process an ordered sequence of messages) and topics (which can be discarded). Even if a topic-only solution was otherwise ok, it would kind of defeat the purpose: having one (or a few) well-known destinations to which all messages could be cc'd, reconfiguring only the broker to filter/route to the right consumers. Using wildcards, we'd wind up spamming all subtopics so that the 'real' topic (say, topic.stock.redhat) and virtual topic (topic.stock) both receive messages.
|
If you can explain in a bit more detail (with a concrete example) in a JIRA we'll see if we can add this to JBM 2.0.
This is something that has come up before, and would be a nice feature to have.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187909#4187909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187909
17 years, 7 months