[Design of JBoss Portal] - how big is portal/portlet session?
by prabhat.jha@jboss.com
Hello :-)
If I add an attribute to Portlet Session as following:
| PortletSession session = request.getPortletSession(true);
| Integer data = new Integer(0);
| session.setAttribute("my_data", data);
|
I then do serialization/deserialization to find the size of this object:
| ByteArrayOutputStream bs = new ByteArrayOutputStream();
| ObjectOutputStream os = new ObjectOutputStream(bs);
| os.writeObject(seqNumber);
| int sessionSize = bs.size();
|
Does it mean that Http Session size is value of sessionSize in above code snippet?
I have iterated through all the attributes in PortletSession (both app and portlet scope) and I see that there is nothing else in the session. There does not seem to be a way to get hold on HttpSession from Portlet and PortletSession is not serializable and rightly so, can I safely conclude based on above code that value of sessionSize is the value of HttpSession?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172392#4172392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172392
17 years, 7 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Adding a *core* queue to JBM 2 configuration
by jmesnil
For the management tasks, I wanted to add a core queue (e.g. admin.adminQueue) to the queues configured in scr/config.queues.xml to have it available on the server by default.
However, sending messages to this queue did not work.
When the message is routed by the post office, it first looks if the message's destination is in the post office destinations (configured in jbm-configuration by require-destinations, true by default).
since the destination is not there, the message is not routed.
When I flag "require-destinations" as false, it still did not work because no binding was created for this queue.
How does it work for all the queues already defined in queues.xml?
The proper setup (adding the destination, creating the binding, registering the queues) is done when deploying the JMS Objects defined in jbm-jndi.xml.
Either I've missed an obvious configuration setting or we are not able to properly add a *core* queue to JBM 2 configuration without also making it available for JMS.
any ideas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172336#4172336
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172336
17 years, 7 months
[Design of EJB 3.0] - Re: Status on proxy-clustered
by bstansberry@jboss.com
That's expected yes. The clusteredentity tests are unrelated to this work; I'll look this week. IIRC, that has to do w/ including "ear=foo.jar" in ObjectNames even when no ear is involved; it's a matter of making the test expect that behavior (or better yet, getting rid of that behavior if the metadata now allows us to detect it).
18 clusteredsession failures sounds right. If you hack in a workaround to EJBTHREE-1471 [1], that should drop to 2. The two represents a known and acceptable change in behavior from AS 4.x where I haven't had time to tweak the test to account for it.
[1] The workaround; this doesn't remove CL leak; just blunt-force stops it from affecting later deployments, allowing testsuite to run properly:
| Index: /home/bes/dev/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/factory/session/SessionProxyFactoryBase.java
| ===================================================================
| --- /home/bes/dev/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/factory/session/SessionProxyFactoryBase.java (revision 77377)
| +++ /home/bes/dev/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/factory/session/SessionProxyFactoryBase.java (working copy)
| @@ -212,7 +212,11 @@
| constructor = this.createProxyConstructor(businessInterfaces, tcl);
|
| }
| - catch (ClassNotFoundException cce)
| +// catch (ClassNotFoundException cce)
| +// {
| +// // Ignore
| +// }
| + catch (Throwable t) // BES: temporary workaround to CL leak issue so I can test
| {
| // Ignore
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172322#4172322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172322
17 years, 7 months