[JBoss Portal] - HOWTO Dynamically Create Portal Pages
by kahotep
The project that I am working on needs to be able to dynamically create portal pages. Here is an example of what I am talking about.
A mechanic wants to have a page, in his portal, for a particular vehicle that he is in charge of. These pages display data that is particular to that vehicle. There are a few different vehicle types, so there would be a template for each vehicle type, but the page would be customized to the particular vehicle that the mechanic selects.
Instead of the mechanic having to create a new page himself, then drag all of the portlets onto the page, etc, I would like the mechanic to see a menu of available vehicles, then be able to add the page for that particular vehicle "on the fly."
This way all of the portlets would appear on the page, with a minimal effort on the part of the user.
Does anyone know of a good way to do this in JBoss Portal 2.6.4 ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133012#4133012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133012
16 years, 4 months
[Beginners Corner] - can not start jboss server
by dhcolo
Hello,
I just downloaded jboss-4.2.2.GA and installed it. I set up JBOSS_HOME variable. Then I try to run run.bat in the bin directory from command line. It can not start
the server and give no message. I checked the run script and found it stops after
rem Add -server to the JVM options, if supported
"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
and before
rem JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
Because it does not display the message "rem JVM memory allocation pool parameters. Modify as appropriate".
I have no idea why. Please help.
my operation system is windowXP! Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133011#4133011
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133011
16 years, 4 months
[JBossCache] - locking & CacheSPI
by nnnnn
We have a need (we think - unless somebody has a better suggestion) to try to do lock nodes in some situations.
When our application decides to write to the cache, it needs to check what's already at the node that's there, and then depending on what it finds, it may choose to put the new object in the cache in the same node, or it may decide not to. It's important that a different thread doesn't change the object at that key in that node in between the read and the write. Locking behavior is what we want - the other thread should wait until the first thread is done before writing.
Sounds like we want to get a read lock for the read, and then promote it to a write lock for the write. However, if there are other suggestions on how to do this, I'm all ears.
So the problems:
- the decision on whether to write is application logic. The object stored is an application object. I really don't think that extending the PessimisticLockInterceptor is the right way to do this, because of the application logic that goes on in between the read and the write.
- There's no "accepted" way for the application sitting on top of JbossCache to get a CacheSPI object (and thus be able to acquire its own locks).
- If I were to get a CacheSPI object, what do I have to do to ensure that the object that I use to lock the node is the same object that the PessimisticLockInterceptor uses to lock it (so that it can acquire the lock when I actually do the write)?
Ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133007#4133007
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133007
16 years, 4 months
[Security & JAAS/JBoss] - Re: RMI over SSL - mutual authentication
by ykthinker
I have the same problem. Server certs works but when it comes to mutual certs, never works. Can this be consider as a BUG that even these two parameters were added:
true
true
but it's not really useful?
By the way, the error I got is:
16:10:50,328 WARN [ServiceController] Problem starting service jboss:service=in
voker,socketType=SSLSocketFactory,type=jrmp
java.lang.NullPointerException
at org.jboss.security.ssl.Context.forDomain(Context.java:66)
at org.jboss.security.ssl.DomainServerSocketFactory.initSSLContext(Domai
nServerSocketFactory.java:304)
at org.jboss.security.ssl.DomainServerSocketFactory.createServerSocket(D
omainServerSocketFactory.java:225)
at org.jboss.security.ssl.DomainServerSocketFactory.createServerSocket(D
omainServerSocketFactory.java:203)
at org.jboss.security.ssl.RMISSLServerSocketFactory.createServerSocket(R
MISSLServerSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:61
5)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:231)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:178
)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:14
5)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:12
9)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133005#4133005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133005
16 years, 4 months