[JBoss-user] [Persistence CMP/JBoss] - Re: reload bean cache on demand
In 3.2.6, you can do this through JMX by invoking the flush() method on the appropriate EJB cache manager. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3868020#3868020 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868020 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Security of CMP
To clarify a bit, that it is role-based is a non sequitur; one could easily imagine (and not-quite-so-easily implement) role based access rules based on entity values. The point is that the out-of-the-box EJB security model offers only control at the bean class level -- that is, users in role X can see beans of type Y but not Z. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865986#3865986 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865986 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Caching local and remote interfaces to session beans?
I notice that there is a lot of overhead involved in creating a new session bean rocal or remote interface, and that XDoclet-generated Delegate classes allow for caching the remote interface rather than re-aqcuiring it on each request. This improves performance markedly. But I also notice that the generated Util class does not cache the local interface resulting from a home-interface create() call. If I do that, I get an even more significant performance enhancement, as I have many inter-session-bean and entity-to-session-bean calls in my system. So, is it safe to cache these interfaces indefinitely? If so, are there any special concerns or tradeoffs involved? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3859688#3859688 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859688 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: Using security to end a long-running request?
Ah, now I see what you're saying. Thanks. I suppose there'd be no good way to cluster the injected abort state without doing an mbean lookup on every call rather than injecting to a static field in the interceptor from the jmx manager, though. That's dealable with, however, since in a cluster we'll presumably know what node the problem thread is running on. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3857788#3857788 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857788 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Using security to end a long-running request?
Our application involves long-running (sometimes 3+ hours) transactions in some circumstances. Occasionally, one of these is started accidentally, but there is no obvious way to stop such a task once it's being executed inside the EJB container. We could use a polled flag to signal a desired stop, but that would either be a lot of overhead or leave some cases uncovered depending on where we put the checks for that flag. It occurs to me that it might work to temporarily cancel the security authorization of the user on whose behalf the thread is executing. Since most of our EJB methods are JAAS protected based on user role, if I removed all roles from the given user the thread would rather quickly throw a security exception, neatly ending the request. Then I could put the roles back onto the user. The problem is that I can't figure out how to make this happen. I've found APIs for flushing credentials for a particular user, but the credentials appear only to be checked once per request, rather than on each new method entry. Is there some other way to immediately knock out the authorization roles for a particular user, in a way that will affect currently executing requests? Failing that, any ideas on other non-polling-based solutions? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3857628#3857628 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857628 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: Using security to end a long-running request?
The problem is that you don't just poll the flag once; you have to do it over and over. To make it work in a cluster, the flag has to be implemented as a clustered singleton mbean, which means that every lookup has to go through JNDI, which has relatively high overhead. In our app, there are no places that get executed often enough to be useful as abort check points, yet seldom enough not to bog things down if every pass through them involves a JNDI lookup and mbean flag check. So...any thoughts on non-polling-based techniques? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3857638#3857638 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857638 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Is JaasSecurityManagerService cluster-aware?
If I manipulate the security authentication cache via the JaasSecurityManagerService mbean, am I dealing with only the cache on the current node, or cluster-wide? In other words, if I (for example) flush the authentication cache, will it be flushed on all machines in the cluster, or just on the current machine? If the answer is that it's local-machine only, is there a way to collect data and perform operations cluster-wide? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853196#3853196 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853196 --- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Image Retrieved from DB, doeesnt get displayed correctly
Rather than embedding a reference to the image data, you need to return a properly formed response containing the correct http headers, then the image data. Here's an excerpted example from one of my servlets that does this: | ImageDTO imageValue = | ResourceFacadeDelegate.getInstance().getImageDTO(imageKey); | | response.setContentType(imageValue.getMimeType()); | response.getOutputStream().write(imageValue.getImageData()); | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3852992#3852992 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852992 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - AbstractDynamicMBean dependency on ejb container?
I have an mbean which is a child of mx4j.AbstractDynamicMBean which depends on a session bean. The deployment descriptor fragment below should cause it to not deploy until the EJB container deploys: | mbean code=com.portblue.mgmt.SweeperManager |name=com.portblue.mgmt:service=SweeperManager | dependsjboss.j2ee:module=portblue.jar,service=EjbModule/depends | /mbean | But the SweeperManager mbean's constructor is called before the ejb container is completely deployed, which is not my understanding of what should be happening. I have guessed that rather than the constructor, it is the start() lifecycle method that gets called when dependencies are ready. Is this the case, rather than the ctor? If it is the start() method, is there an easier way to hook into the JBoss JMX lifecycle methods than implementing the raw ServiceSupport interface? I notice there are abstract helper classes documented for ServiceMBeans, and that there is a similar helper for dynamic mbeans not documented anywhere, and which does not appear to do anything (org.jboss.mx.util.DynamicMBeanSupport). All of this is on JBoss 3.2.6. Any clues would be greatly appreciated. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3852839#3852839 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852839 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Sporadic CMP insert failures from LOB columns
Yes, OCI = thick in what I said above. We've seen this with both OCI and thin drivers. Any further help from anyone, please? We can't upgrade to Oracle 10g until this is resolved, and all my research on the issue has led nowhere. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3852647#3852647 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852647 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Sporadic CMP insert failures from LOB columns
We are using JBoss 3.2.5, Oracle 10g on Solaris, and the Oracle 10g drivers. This behavior has occurred with both thick and thin drivers. Very occasionally, and for no reason we can determine, insertion of a new CMP bean containing a BLOB or CLOB element will fail with an exception like the one below. It seems to happen more often for BLOBs than CLOBs, but it's so rare that might not mean anything. We can run our unit tests literally hundreds of times without seeing it, then we'll see it happen once, then it will disappear again. The jdbc-type for the LOB columns is set appropriately (CLOB or BLOB) in all cases, as evidenced by the fact that it works properly more than 99% of the time. I have looked around for information on this, but have found references only to solid, reproducible problems with storing long (4kB+) data. We do store long data, but again, it works most of the time, so I think we have our configuration set up correctly. Any help on this would be greatly appreciated. The top of the stack trace from an example failure follows: | Could not create entity:java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column | | javax.ejb.CreateException: Could not create entity:java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column | | at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:305) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:137) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:562) | at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:203) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:269) | at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:576) | at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1061) | at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) | at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:204) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214) | at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) | at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:90) | at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) | at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478) | at org.jboss.ejb.Container.invoke(Container.java:743) | at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:294) | at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) | at $Proxy127.create(Unknown Source) | at com.portblue.model.creation.resource.TestAttachmentBean.createAttachment(TestAttachmentBean.java:215) | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3852387#3852387 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852387 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - MBean in sar dynamically loading ear-level jar classes in 4.
My project builds and deploys as an ear properly in 3.2.4, but fails with a classloader problem in 4.0.0. I would greatly appreciate help solving this problem. The ear contains (among other things) a jar containing all our app code, including the code specifying and used by a few mbeans. The mbeans are deployed as a sar file inside the ear. The sar file contains nothing but a jboss-service.xml and a manifest file; the latter has only header info (it's autogenerated by the xdoclet jar task). The jboss-service.xml looks like this: | ?xml version=1.0 encoding=UTF-8? | | service | mbean code=com.portblue.mgmt.ConfigurationManager | name=com.portblue.mgmt:service=ConfigurationManager | /mbean | | mbean code=com.portblue.mgmt.SweeperManager | name=com.portblue.mgmt:service=SweeperManager | dependscom.portblue.mgmt:service=ConfigurationManager/depends | dependsjboss.j2ee:jndiName=com.portblue.model.admin.user.SweeperFacadeRemoteHome,service=EJB/depends | dependsuser:name=QuartzService,service=QuartzService/depends | /mbean | /service | When this mbean initializes, things start out fine; the outermost classes are found and execute properly. However, during ConfigurationManager initialization, a commons Digester object (which is parsing a config file) tries to load a class by name at runtime. The class is in the jar from which the mbean code itself came, and this worked fine in 3.2.4, but in 4.0.0 the classloader cannot find the class. I'm completely stuck by this problem, and unless I solve it we cannot migrate from 3.2.4 to 4.0.0. Anybody out there have a clue, please? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849945#3849945 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849945 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - 3.2.4 - 4.0 migration guidance?
We are considering migrating our JBoss 3.2.4-hosted app to 4.0. The available doc that I can find doesn't seem to address migration issues -- e.g., what config file schemas or names have changed, what behaviors might break existing code, etc. This is making it difficult to estimate how long a migration might take. Is any guidance available on this topic? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849371#3849371 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849371 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Two levels of security-constraint?
There are two kinds of users in my system. All users have the role User; some also have the role Admin. I have set up a pair of security constraints in my web.xml, with the url pattern /* requiring User role, and a small, explicitly listed set of specific pages requiring Admin role in a separate security constraint. The intention of course is for users without the Admin role to get 403s if they try to visit the latter pages. This worked in 3.2.3, but since upgrading to 3.2.4, it seems that permissions are cumulative rather than subtractive. That is, since /* can be access by User role, nothing ever gets checked for Admin role. Has something changed (perhaps in Tomcat 4 vs. 5)? Can I do what I want to do without expliciltly listing all pages in both categories? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842142#3842142 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842142 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Sporadic JSP compilation failures
Using JBoss 3.2.4, I am getting sporadic JSP compilation failures. There seems to be no rhyme or reason to when the JSPs will compile successfully and when they will fail; I can run successfully, shut down, clean out .../work and .../tmp, start jboss, and get the failure. Or not, the next time I try it. Sometimes redeploying my .ear helps, sometimes it doesn't. I'm at my wit's end; I can't imagine what state is determining success or failure, or where jboss could possibly be hiding that state if I remove .../work and .../tmp between runs. The specific compilation error always involves attempts by the generated jsp code to call my custom tags (some our own, some Struts, some others), claiming that the tag type doesn't match a javax.servlet.jsp.tagext.JspTag parameter. Here are two examples: C:\jboss\jboss-3.2.4\server\pbdev\work\jboss.web\localhost\app\org\apache\jsp\ClientLogin_jsp.java:112: _jspx_meth_pb_page_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.ClientLogin_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) if (_jspx_meth_pb_page_0(_jspx_th_html_html_0, _jspx_page_context)) ^ C:\jboss\jboss-3.2.4\server\pbdev\work\jboss.web\localhost\app\org\apache\jsp\ClientLogin_jsp.java:145: _jspx_meth_c_if_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.ClientLogin_jsp cannot be applied to (com.portblue.view.taglib.PageTag,javax.servlet.jsp.PageContext) if (_jspx_meth_c_if_0(_jspx_th_pb_page_0, _jspx_page_context)) Obviously, the tag classes *do* implement JspTag, as verified by the fact that the whole thing does work more than half the time. This is driving me nuts, and threatening our project. Any help is greatly appreaciated! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839711#3839711 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839711 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: .jsp files not recompiled in jboss-3.2.4 / tomcat after
How does your code end up having any effect on JBoss's work file metadata? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839736#3839736 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839736 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user