[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
+1 But until then, the MBean approach is a good approach. If, however, your system is mostly asynchronous/event driven, then J2EE isn't really the way to proceed; you may want to use the JBoss JSLEE container instead, http://labs.jboss.com/mobicents View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125067#4125067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
+1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058427#4058427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
Hi there, has any progress been made in JBoss on this front? Other vendors allow to use Workmanager from every component. It would be good to have the same feature in JBoss. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041342#4041342 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
So we're left with managing our own threads? To be safe, I suppose we should perform a JAAS logon, manage a client transaction and use remote interfaces only, basically acting like an application client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008853#4008853 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
anonymous wrote : | What is the recommendation to start/manage background worker threads in JBoss 4.0.x? | There is nothing to prevent you from developing a custom MBean that uses threads or a thread pool to preform background tasks. Simple wrap your Runnable/Thread stuff in an MBean and that's that. Also, JMX is nice for configuration/management as well. This would be my suggestion. You could develop a custom JCA adapter that's sole purpose is to give EJB and Servlets access to the WorkManagement API but this is a bit heavy when a simple MBean would really suffice. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008854#4008854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
Best of luck ;-) As far as the anonymous wrote : | Can anybody tell me in what kind of security and transaction context the work thread will run? | The answer is that it will be unspecified being that the WorkManager API is meant to be consumed solely from a ResourceAdapter which would have it's own transaction/security context. In other words, it is unknown and there are no guarantees because this is a non standard use of the API. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008852#4008852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean (worker threads)
Thank You Weston. Then let me ask the more generic question: What is the recommendation to start/manage background worker threads in JBoss 4.0.x? Using JMS for a long running process seems to be discouraged (like 5 minutes of background work) I can implement a Runnable/Thread class and manage it myself but per J2EE protocol this is not recommended. Threads are supposed to be managed by the app server. Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008846#4008846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
Portability is not much of an issue for me. We are quite committed to using JBoss, and moving to another appserver would mean lots of man-years of work anyway. So a JBoss-only solution that is available now is more welcome than a portable one that is not available. Anyway, JBoss specific code can always be wrapped behind a custom interface if portability is a real concern. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008845#4008845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
Again, the WorkManager is reserved for ResourceAdapters (ie JCA deployments) it is not available via JNDI or to any other type of application component. The documentation link you posted is relevant to JCA not as a general solution for all application components. Technically, there is nothing to prevent you from getting the WorkManager via JMX (as per the example below), but this is not standard and not portable. In other words, you shouldn't really be doing this. A generalized WorkManagement API has been submitted as a JSR (237) http://jcp.org/en/jsr/detail?id=237 However, it is currently in limbo right now due to legal disputes between the major vendors involved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008844#4008844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
I have read that we can do parallel processing in J2EE Container using WorkManger API(JSR 237).But as per weston comment below,In Jboss Workmanager API is only for resource adapters.Can anyone please suggest me how we can do parallel processing in JBoss J2EE Container. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007686#4007686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007686 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
The WorkManager is reserved for ResourceAdapters and is not applicable to other EE components (Servlets/EJB). At this point, there is no generalized notion of a WorkManagement API across the entire application environment. A JSR has been submitted but there is no work currently being done on it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998328#3998328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998328 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
As there is no documentation on WorkManager at all it would be very nice of the JBoss people to at least respond to forum postings. Can anybody tell me in what kind of security and transaction context the work thread will run? E.g. will the task have to authenticate for EJB calls? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998277#3998277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user