[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
Ok, this is what I understand. A sar is a "service archive" and like ears and wars, its composed of a descriptor and your classes. The descriptor is a "jboss-service.xml" file. I'm using a simple Java class that implementes the Schedulable interface, this interface defines only one method called perfom(). >From this method I try to call a Stateless EJB but it gives a Naming >Exception. One thing I'm deploying my sar and my ear separatly in side the >same server, does the sar must be inside the ear as a module or do I need >another descriptor that defines the EJBs that the Schedulabe implementation >must call? Another question, how do I difine an MBean using JBoss-IDE? I've seen the @jmx tag, but I dont know how to use it Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910255#3910255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910255 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
Hi, In our application we haven't use the ejb timer. We used the Jdk Timer class and it's working fine. We called the Timer using the startup servlet, which will the call the timer for predined time interval. >From the timer class we used to call a Stateless session bean. Arvind View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=390#390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=390 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
I had tried to create and deploy a .sar, but I've got a question. Those the class that implemets the Schedulable interface must me an EJB? or it can be a simple Java class View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909784#3909784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909784 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
Can you give me some example code, or better yet a tutorial, Ive been trying to change the deploy/scheduler-service.xml false com.navyec.jbalancedsc.model.util.JBSCUtil NOW 1 -1 and gives the following error: 13:29:20,063 INFO [Scheduler] Failed to find: com.navyec.jbalancedsc.model.util.JBSCUtil java.lang.ClassNotFoundException: No ClassLoaders found for: com.navyec.jbalancedsc.model.util.JBSCUtil at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.jboss.varia.scheduler.Scheduler.setSchedulableClass(Scheduler.java:505) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:118) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:89) at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:61) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:446) at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:593) at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:569) at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:275) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:164) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118) at org.jboss.system.ServiceController.install(ServiceController.java:200) at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
You can use the Timer Service provided by JBoss: 1) Just implement the org.jboss.varia.scheduler.Schedulable Interface 2) and configure the MBean 3) and deploy the SAR. that's it... more infos: http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch10.html#ch10.sched.sect View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909217#3909217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909217 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
exactly JBoss 4.0.2 RC1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909103#3909103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909103 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
sorry :) Im using 4.0.2 wiht EJB 2.0 spec View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909100#3909100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909100 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling an EJB method each day
Which JBoss version are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909099#3909099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909099 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user