i would like to lookup my EntityQuery component that should be registered under @Name("employeeList") using Contexts.lookupInStatefulContexts("employeeList") but i alway get null as a return value.
what am i doing wrong?
i have the following simple entity query:
@Name("employeeList")
public class EmployeeList extends EntityQuery
{
@Override
public String getEjbql()
{
return "select employee from Employee employee order by lastname";
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056946#4056946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056946
Well for my particular app I needed a jndi-pattern of "SeamPocWebApp/#{ejbName}/local"
The SeamPocWebApp part was discovered from the JMX console, though I'm not sure where in the JMX console to find that info. Someone with more jboss experience than I lead me to the fix.
The SeamPocWebApp part is definitely app specific. The only thing I can find in my configuration that matches is is the <display-name> in my application.xml. So I can't tell you with 100% certainty if that's where the match comes from but that appears to be the case.
Hope this helps, please let me know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056944#4056944
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056944
I looked into the EmailValidator class supplied with Seam 1.2.1, and its different from that found in SVN. So I found the culprit, it doesn't consider valid a String with value ''. And apparently this is the value that gets saved into the bean:
Java code in Home.update():
System.out.println( "###Email: '" + getInstance().getContact().getEmail()+ "'" );
| System.out.println( "###Email validator: '" + eVal.isValid( getInstance().getContact().getEmail() )+ "'" );
And in the log:
2007-06-22 18:57:47,549 INFO [STDOUT] ###Email: ''
| 2007-06-22 18:57:47,549 INFO [STDOUT] ###Email validator: 'false'
The vestion in SVN treats that case as well.
I'm also eager to find when the similar problem in the PatternValidator will be solved.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056938#4056938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056938