I'm having trouble getting virtual hosts to work with version 4.2.0.GA. Part of the problem I think might be the fact that I'm using the Windows hosts file rather than domains registered with DNS. My main Jboss server is http://apps.domain.com
I'd like a virtual host at http://test.apps.domain.com to point to my war file. I have http://apps.domain.com mapped to an ip in my windows hosts file. Either adding or not adding the virtual host name to the hosts file doesn't make a difference, neither works. So obviously the problem lies somewhere else, but:
1. Does the virtual host need to be mapping in the hosts file, and if so, just point it to the same ip as the real server?
2. Based on my config files below, any apparent reason why this isn't working?
Here is what I've added to server.xml:
test.apps.domain.com
Here is my jboss-web.xml file in my WAR:
<jboss-web>
<context-root>/</context-root>
<virtual-host>testhost</virtual-host>
</jboss-web>
Anyone know what the trouble is?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135648#4135648
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135648
Greetings!
I have an entity bean called person which has a 1:n relationship to another entity bean called job, which contains all jobs that this person has ever had.
now, i'd like to have a function in person, which gives me only one of these jobs, namely the one he's currently working for.
i did it already, and it nearly works, it looks like this:
Job s;
@Transient
public Stelle getCurrentJob() {
if(s==null){
EntityManager em = (EntityManager) Component.getInstance("entityManager");
Long sid = (Long) em.createQuery("fanceql").setParameter("id", this.id).getSingleResult();
s = em.find(Job.class,sid);
}
return s;
}
The problem is, that changes to Job are not saved to the database. why aren't they?
is this bad design? how would you do it?
niko
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135642#4135642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135642
yes. The wrapping code actually re-schedules this code to run after a set amount of time.
So the only way this code would not be able to receive messages is if receiving the next message was always going to take longer than 1 second (which has been the case for several hours). If this is possible we will obviously have to re-address the code
I was under the impression that JBM followed the JEE spec rather than JMS spec in stating that you can not call receive() if a MessageListener was set. Is there a pattern we should be following to process batches using a MessageListener in JBM? I have to admit the original code was written for a JMS competitor but we were impressed by JBM and rather lazily 'fudged' existing code to work on JBM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135640#4135640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135640
I am getting following exceptions.........
Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener
java.lang.NoSuchMethodError: com.sun.faces.config.GlassFishConfigureListener.scanWebXml(Z)V
Can u pleae help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135635#4135635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135635