glassfish

Possible to change ejb parameter at runtime for @Schedule annotation?

瘦欲@ 提交于 2019-12-20 12:27:44
问题 Probably a silly question for someone with ejb experience... I want to read and change the minute parameter dynamically for one of my EJB beans that uses the Java EE scheduler via the @Schedule annotation. Anyone know how to do this at runtime as opposed to hardcoding it in the class like below? If i were to do it programatically could i still use the @Schedule annotation? @Schedule(dayOfWeek = "0-5", hour = "0/2", minute = "0/20", timezone = "America/Los_Angeles") private void checkInventory

Possible to change ejb parameter at runtime for @Schedule annotation?

百般思念 提交于 2019-12-20 12:26:00
问题 Probably a silly question for someone with ejb experience... I want to read and change the minute parameter dynamically for one of my EJB beans that uses the Java EE scheduler via the @Schedule annotation. Anyone know how to do this at runtime as opposed to hardcoding it in the class like below? If i were to do it programatically could i still use the @Schedule annotation? @Schedule(dayOfWeek = "0-5", hour = "0/2", minute = "0/20", timezone = "America/Los_Angeles") private void checkInventory

Glassfish server does not start. NullPointeException

随声附和 提交于 2019-12-20 12:11:10
问题 I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line. asadmin start-domain problem: Exception in thread "main" java.lang.NullPointerException at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144) at com.sun.enterprise.module.common_impl

import ssl certificate in Glassfish

跟風遠走 提交于 2019-12-20 09:40:45
问题 i have the following issue: I obtain a free certificate from comodo (90 days) for my glassfish web application and then i have imported the certs into glassfish 3.1 by following http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/ I have also modify the domain.xml file by replacing the alias s1as with my certificate alias and the file keystore.jks with the server.keystore....but when i try to access my web application with https protocol i got the following log

Default EJB transaction mode for asynchronous methods?

故事扮演 提交于 2019-12-20 09:30:45
问题 When I have an @Asynchronous method in an EJB, and I don't specify the @TransactionAttribute , then how exactly does the container handle the transaction boundaries? Obviously, it can't use the calling thread's transaction, so what does it do? Same question, but regarding methods that are triggered by the TimerService. EDIT: I think I phrased that poorly. I already know that the default mode is 'REQUIRED'. So it should be safe to assume that those methods will always be called within a

Static resources are not cached referenced from glassfish secure page

与世无争的帅哥 提交于 2019-12-20 04:32:09
问题 I'm using JSF 1.2 and glassfish declarative security with j_security_check.. My xhtml page is in secure_pages folder and i secure all the resources in it by setting security constrant with web resources constraint as "/secure_pages/*" ... My javascripts and CSS are in another (non-secure) folder,which are referenced from the xhtml.... I've made resources cacheable according instruction given by link... http://blogs.oracle.com/cwebster/entry/caching_static_resources_in_glassfish Also in one of

Javassist Enhancement Fails on Deployment

我的未来我决定 提交于 2019-12-20 03:52:32
问题 I am encountering an error specified in the stacktrace at the bottom of this question. Main error message: ERROR pojo.BasicLazyInitializer - Javassist Enhancement failed I do not know how often it has occurred already, because the deployment still succeeded. I just stumbled upon this error when trying to fix the issue linked above. I am trying to deploy to a glassfish app server (test environment). Basically, my app works fine in my local environment, also with test run-war (see my previous

Glassfish 3.1.2 and Eclipse Indigo Plugin

☆樱花仙子☆ 提交于 2019-12-20 03:09:49
问题 My freshly installed Eclipse Indigo SR2 with the new Glassfish 3.1.2 Plugin creates on every start a new "Internal GlassFish 3.1.2" Server. How can I prevent this behavior? Does somebody already use this configuration? 回答1: I've faced the same issue and my workaround is uninstall the " Glassfish 3.1.2 Application Server Runtime " from the Eclipse. Please make a full backup for our Eclipse first. It can be done by the following step: - Go to " Help " menu ---> " About Eclipse ". Click "

Glassfish 3.1.2 and Eclipse Indigo Plugin

a 夏天 提交于 2019-12-20 03:09:03
问题 My freshly installed Eclipse Indigo SR2 with the new Glassfish 3.1.2 Plugin creates on every start a new "Internal GlassFish 3.1.2" Server. How can I prevent this behavior? Does somebody already use this configuration? 回答1: I've faced the same issue and my workaround is uninstall the " Glassfish 3.1.2 Application Server Runtime " from the Eclipse. Please make a full backup for our Eclipse first. It can be done by the following step: - Go to " Help " menu ---> " About Eclipse ". Click "

basic authentication fails with glassfish

Deadly 提交于 2019-12-20 02:30:02
问题 First of all, my apologies for this long post. This is a continuation of my previous question (Authentication required window popping up after 7u21 update) regarding this issue, but I narrowed down the search. In short, it seems that my BASIC authentication is broken since Java 7u21. Applets started through JNLP files are not functioning stable at all and gives Authentication Popup windows. THE SETUP First of all I've set up a MySQL database with a usertable and grouptable. Table: