[JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3
by MarcReis
Hi Ben,
thanks for the quick reply !
I some times dont get the error when I just start up the servers and run the test once (takes about 5 minutes). When I then start the test again, the error will show up, as soon as I receive the WARN from the CachLoaderInterceptor. Once this has shown up, the error will always come up, even after the 300 seconds of the eviction time out have been long passed (just after a couple of invocations the server will show the CachLoaderInterceptor Message again and the client will bail out with the "cluster invocation failed").
But it also happens that the servers, after a new start show up the CachLoaderInterceptor WARN after just one minute. So it is not really reproducible.
Sincerly
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963491#3963491
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963491
19 years, 9 months
[Management, JMX/JBoss] - managed interceptors?
by drabbit
Hi,
I have an interceptor for my server interceptor stack that can take quite a while to execute (not THAT long, but considering how often it's called, it is a performance issue). Therefore I only want to enable it when I really need it for debugging purposes. Of course I would love to enable/disable it without needing to restart my server and changing the standardjboss.xml. So I was thinking about managing it with an MBean.
I don't know how to set this up correctly. Of course, I could put a static boolean into my interceptor class and alter it via an MBean. Since I'm not clustering any servers, it would work. But I was wondering if there was a better, cleaner way to do it.
thanks for any input,
Dirk
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963489#3963489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963489
19 years, 9 months
[JBoss Seam] - Decent documentation complain
by thomas.heute@jboss.com
I just received this from forward of forward emails:
anonymous wrote : hi - i am a developer and i think you guys will help yourself a lot if you can come up with decent documentation. specifically, i spent almost a week on seam and i am still next to nowhere. first i spend a lot of time finding the right version of jboss as to deploy it. 4.0.4 ga does not run it unless you find the "special" installer that is in beta. second, constantly deploying it from eclipse just drives me crazy. it should be autodeployed from directly from workspace, as the article at http://wiki.jboss.org/wiki/Wiki.jsp?page=EclipseSeamAutoDeploy
| suggests, and does not work. also, it is said that seam can be used with tomcat, outside jboss. that would be great for faster development, but where is an example. it is shame probably on my part for not having weeks to figure things out, but after a week of literally wasting time with it, and now it is 3:40 am as i am writing these lines, i have to tell you, please, ready some professional grade documentation with versions of things that work together, preferably with links to their downloads, because it is *frustrating* to see a possibly great tool (seam) out there but burn way too much time, a week now, to get it working inside eclipse. thanks. --a
Let me answer point by point on the common way of discussion.
anonymous wrote : first i spend a lot of time finding the right version of jboss as to deploy it. 4.0.4 ga does not run it unless you find the "special" installer that is in beta.
This is mentionned (with direct link to the download) :
* Here: http://labs.jboss.com/portal/jbossseam/gettingstarted/index.html
* Here: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamInstallation
* In the readme.txt file of the package
* in many places on the forum
anonymous wrote : constantly deploying it from eclipse just drives me crazy. it should be autodeployed from directly from workspace, as the article at http://wiki.jboss.org/wiki/Wiki.jsp?page=EclipseSeamAutoDeploy
| suggests, and does not work.
This has few or nothing to do with documentation, the wiki page is correctly stating the current steps to workaround a known limitation of Eclipse (unable to deal with embedded projects). The Wiki area remains a place for contributors updated and fixed on their own will.
By the way we are working on a Eclipse plugin to let you modify your JSF pages without having to redeploy.
anonymous wrote : it is said that seam can be used with tomcat, outside jboss. that would be great for faster development, but where is an example
Most of the examples can run in Tomcat, there are targets and it is explained in the section called: "How to Build and Deploy the Example on Tomcat" of the readme.txt file of the examples, basically you just need to do "ant deploy.tomcat"
I am ready to listen to documentation complains, but please take the time to read the readme.txt files.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963488#3963488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963488
19 years, 9 months
[Security & JAAS/JBoss] - Check access to bean methods from bean
by matt10
How do I find out which methods can be called on a session bean by a user from inside a bean method?
My fat client application enables and disables menu items and functionality on the client depending on whether the user has access to the methods needed for those actions.
On the session bean there is a method which I need to return a list of the methods which are accessible on the bean to the calling principal:
public String[] getAllowedMethods() {
...
}
Unable to find a suitable method I've even tried inspecting the security annotations myself but I can't get access to the real bean class only the proxy.
Can anyone help me? I've been struggling with this for several weeks :(
It would be enough for my use case to find out if the calling principal can call other session bean methods but ideally I would like to find out if any user can call any method too.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963484#3963484
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963484
19 years, 9 months
[JCA/JBoss] - Re: [oracle.jdbc.xa.OracleXAException] From 4.0.3SP1 To 4.0.
by pklauser
I can confirm that i get the same behaviour on hot-deploy with jboss4.0.4GA. The 4.0.3SP1 worked fine. I fear that a connection used previously is still somehow associated with a transaction, and on hotdeploy the connection is (re) associated with the transaction which causes the oracle XAResource problems...... Any ideas?
Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=klauser/8, BranchQual=, localId=8])
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:329)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:501)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:382)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
... 194 more
Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=klauser/8, BranchQual=, localId=8]
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:728)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:561)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
... 198 more, userData={null} ]}, ackState=false, ackTime=0, ackUser=null, ackSystem=null ], handback: null
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963483#3963483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963483
19 years, 9 months