[JBoss-user] [EJB 3.0] - Re: EJB QL How to find most recent date??

2006-01-27 Thread fabriciobraga
maximwirt, I've follow your suggestion and now it works fine. Thanks a lot. Regards, Fabricio Braga View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920007#3920007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=392000

[JBoss-user] [EJB 3.0] - EJB QL How to find most recent date??

2006-01-24 Thread fabriciobraga
Hi all, I have a trouble here while trying to find most recent date register from my table. Here goes my finder method: anonymous wrote : | public Project findLastCreated() throws RemoteException{ | String ejbQl = "select max(p.creationDate) from Project p"; | Project result = en

[JBoss-user] [EJB 3.0] - Problem with EJB QL query

2006-01-13 Thread fabriciobraga
Hi all, I'm getting in trouble while executing a simple query. I have an Entity named "Project", and a Session named ProjectServiceBean that implements ProjectService interface. So the ProjectService (remote interface) gives me a method like this: | public Project findByName(String name) t

[JBoss-user] [EJB 3.0] - Re: How to make a simple EJB 3.0 client?

2006-01-12 Thread fabriciobraga
I did what you told. It seems to work fine now, but I get 2 warnings messages: | log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation). | log4j:WARN Please initialize the log4j system properly. | Is there something more that I need to do? Thanks, F

[JBoss-user] [EJB 3.0] - Re: How to make a simple EJB 3.0 client?

2006-01-12 Thread fabriciobraga
Ops, there is little error at line: ProjectService projetService = (ProjectService) ic.lookup( SaqueHome.class.getName()); Now making a little correction: ProjectService projetService = (ProjectService) ic.lookup( ProjectService.class.getName()); | Ok. View the original post : http://ww

[JBoss-user] [EJB 3.0] - How to make a simple EJB 3.0 client?

2006-01-12 Thread fabriciobraga
Hello, I'm trying to create a simples stand alone EJB 3.0 client but it jut don't work. The client woks fine when running on Servet class, but when running a class with public static void main it does not work. I'm doing something like this: | public class SimpleClient { | public st