[JBoss-user] [EJB 3.0] - ClassCastException java.lang.Long in 4.0.4.GA
I had code that worked in previous releases of 4.0.4, but now gets ClassCastExceptions when run under 4.0.4.GA It looks as though it is trying to interpret counts as a long instead of an integer. Is this a bug, or a change? | private int getMyCount() { | final Query q = em.createQuery( | select count(o) + | from MyTable o | ); | return (Integer) q.getSingleResult(); | } | | javax.ejb.EJBException: java.lang.ClassCastException: java.lang.Long | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945335#3945335 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945335 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException java.lang.Long in 4.0.4.GA
My Setup is: -WinXP -MySQL 5.0.21 -Connector/J 3.1.12 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945337#3945337 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945337 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException java.lang.Long in 4.0.4.GA
Thanks for the heads up! How am I supposed to get the count then? I cannot do something like | long myCount = (long)q.getSingleResult(); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945346#3945346 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945346 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException java.lang.Long in 4.0.4.GA
Nevermind I got it, just needed to capitalize it. (Long) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945347#3945347 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945347 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - messagingType
I had code working in older versions of 4.0.4, but in 4.0.4.GA it breaks. It looks like it has to do with the messagingType The error is: | 13:24:24,221 WARN [ServiceController] Problem starting service jboss.j2ee:ear=MyProject.ear,jar=MyTest.jar,name=MyTestService,service=EJB3 | java.lang.RuntimeException: java.lang.ExceptionInInitializerError | at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:105) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | ...many more... | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.ExceptionInInitializerError | at org.jboss.ejb3.mdb.MDB.getOnMessage(MDB.java:818) | at org.jboss.ejb3.mdb.MDB.innerCreate(MDB.java:314) | at org.jboss.ejb3.mdb.MDB.innerStart(MDB.java:225) | at org.jboss.ejb3.mdb.MDB.start(MDB.java:214) | 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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99) | ... 176 more | Caused by: java.lang.RuntimeException: unable to determine messagingType interface for MDB | at org.jboss.ejb3.mdb.MDB.getMessagingType(MDB.java:128) | at org.jboss.ejb3.mdb.MDB.getOnMessage(MDB.java:810) | ... 184 more | so, I added a messaging type to my code, but It still produces the same error. | @MessageDriven(activationConfig = | { | @ActivationConfigProperty(propertyName=messagingType, propertyValue=javax.jms.MessageListener), | @ActivationConfigProperty(propertyName=destinationType, propertyValue=javax.jms.Queue), | @ActivationConfigProperty(propertyName=destination, propertyValue=queue/mailQueue) | }) | How do I resolve this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944967#3944967 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944967 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: messagingType
How do you mean? It's in the import statement and compiles, so I'm not sure what else you're saying. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944987#3944987 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944987 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: messagingType
Sorry, I'm tired and read too fast :) I made the class implement it and it worked like a charm! Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944989#3944989 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944989 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - What is this Exception?
I keep getting this exception and the log message doesn't appear to reference any of my code. What is it and how do I correct it? I am using the default 4.0.4 with rc5 that you can download from this website. | 2006-02-28 09:46:35,884 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[default]] Servlet.service() for servlet default threw exception | java.lang.IllegalStateException | at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) | at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:695) | at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926814#3926814 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926814 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - EJB-QL for select into outfile
How do I convert the following to work with EJB query language? something like this | final Query q = em.createQuery( | select * into outfile 'c:\\blah\\blah.txt' + | from MyTable o | ); | q.executeUpdate(); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926551#3926551 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926551 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EJB-QL for
I tried that too but it says it wasn't implemented View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926575#3926575 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926575 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: RC4 or RC5
Then shouldn't it be listed as a sticky in this thread, and have links in the download section of this site? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3922048#3922048 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922048 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - RC4 or RC5
I noticed there is a link for RC5 now. Is that the one we should be installing and using? http://sourceforge.net/project/showfiles.php?group_id=22866package_id=132063release_id=390378 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3921868#3921868 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921868 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Is it possible to map an entity bean to a database view?
Yes. Just use the pojo exactly as you would with a database table. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3921198#3921198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921198 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - InitialContext()
Which way should we call InitalContext now? According to this file http://docs.jboss.org/ejb3/embedded/embedded-tutorial/embedded-war/src/EmbeddedEJB3.jsp it looks like it can be called both ways. Way #1: | InitialContext ctx = getInitialContext(); |CustomerDAOLocal local = (CustomerDAOLocal) ctx.lookup(CustomerDAOLocal.class.getName()); | Way#2: | Queue queue = (Queue) getInitialContext().lookup(queue/mdbtest); | | public static InitialContext getInitialContext() throws Exception |{ | Hashtable props = getInitialContextProperties(); | return new InitialContext(props); |} | |private static Hashtable getInitialContextProperties() |{ | Hashtable props = new Hashtable(); | props.put(java.naming.factory.initial, org.jnp.interfaces.LocalOnlyContextFactory); | props.put(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); | return props; |} | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920653#3920653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920653 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
So then it was choice 3? :) so when do we use way #2? Where we have to define our own static hashtable. Or is that just for a specific case that most people won't use? Also, what do we do with way#3 when it's not specifically set to remote or local? My beans currently don't have a local or remote tag...just public interface MyClassName View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920679#3920679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920679 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
So if my Stateless bean does not have a local/remote, I cannot call it using InitialContext??? I'm assuming this is what's leading to my | javax.naming.NameNotFoundException: myPath.myClass not bound | exception. Do I have to make an empty @Local bean which extends my interface class? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920704#3920704 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920704 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
ok, I already have it set up like that, so all my beans have a local interface. Now that I changed the InitialContext.lookup to BeanName/local) I am getting another error as a result | Caused by: java.lang.RuntimeException: For EJB MyCustomBean could not find jndi binding based on interface only for @EJB(myPath.MyCustomBean) not used by any EJBs | at org.jboss.ejb3.injection.EJBHandler.getJndiName(EJBHandler.java:216) | at org.jboss.ejb3.injection.EJBHandler.loadFieldInjectors(EJBHandler.java:326) | at org.jboss.ejb3.injection.EJBHandler.loadInjectors(EJBHandler.java:78) | at org.jboss.ejb3.injection.EJBHandler.loadInjectors(EJBHandler.java:57) | at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:651) | at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:586) | at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:518) | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:82) | at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:80) | ... 126 more | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920715#3920715 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920715 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
My setup is the following | @Stateless | public SomeClass{ | @EJB | MyCustomBean myBean; | } | | SomeClass and MyCustomBean both reside in the same folder and same .ejb3 jar file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920716#3920716 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920716 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
Hmm, if I'm calling it as @EJB MyCustomBean, then the InitialContext.lookup isn't the problem here... This worked with the previous release RC3. The only thing I can think of is my ear structure. Do I have to have everything end in .jar for this to work? Currently I have something like this... MyTest.ear - MyTest.ejb3 (EJB3 beans) - MyTest.par (Entity beans) - MyTest.jar (Regular beans - MyTest.war (Jsp/Servlets) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920719#3920719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920719 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
Yeah I usually do call it by the interface name. However in one of the tutorials I downloaded I noticed the lookup was called using the bean directly BeanName/local Instead of the interface. So i assumed it changed between versions. I still have it as @EJB MyBeanInterface but I changed lookups to MyBeanDirectly/local However I'm still getting an exception with the @EJB tag. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920726#3920726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920726 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
The example I saw it on was here: ...\jboss-EJB-3.0_RC4-PFD\jboss-EJB-3.0_RC4-PFD\docs\tutorial\stateless\src\org\jboss\tutorial\stateless\client\Client.java | ... | InitialContext ctx = new InitialContext(); | Calculator calculator = (Calculator) ctx.lookup(CalculatorBean/remote); | And CalculatorBean is as follows | @Stateless | public class CalculatorBean implements CalculatorRemote, CalculatorLocal | { | ... | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920730#3920730 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920730 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: InitialContext()
Hmm, odd it seems as though you do use the beanname convention to get it working | InitialContext.lookup(EAR_FILE_NAME/BEAN_NAME/local); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920744#3920744 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920744 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: New scoping of EntityManager and SessionBeans
I agree 100% View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920787#3920787 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920787 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - What does this error mean?
I keep getting this and don't know why. It doesn't show any of my custom classes in the stacktrace so I assume it has something to do with JBoss? | java.lang.IllegalStateException | at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) | at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:695) | at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3920410#3920410 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920410 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - How to create an POJO View made of other POJOs
Let's say I have 1 POJO called PojoA. I want to make a view (called MyPojoView) which contains the POJO plus some additional fields. In MySql, when I create the view I have to select every column from the POJO as well as the additional fields I want. In MyPojoView I'd rather reference MyPojo instead of all the fields that comprise MyPojo. Is there a way to achieve this? I don't know how to reference an existing POJO as a primary key. What do I have to do with the @Id field to get it to work? Something like | package par.view; | | import javax.persistence.Entity; | import javax.persistence.Table; | import javax.persistence.Id; | | @Entity | @Table(name = my_view) | public class MyPojoView { | | private MyPojo myPojo; | private int additionalFieldOne; | | @Id | public MyPojo getMyPojo() { | return myPojo; | } | | public void setMyPojo(MyPojo myPojo) { | this.myPojo = myPojo; | } | | public int getAdditionalFieldOne() { | return additionalFieldOne; | } | | public void setAdditionalFieldOne(int additionalFieldOne){ | this.additionalFieldOne = additionalFieldOne; | } | } | | Also, should my MySql view only select the primary key of the MyPojo class, or should it select all columns used to create a MyPojo object? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919813#3919813 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919813 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: How to create an POJO View made of other POJOs
Another question I have is how efficient is it to embed a POJO within a view as opposed to having a variable for each field within the POJO. For example, if I am going through a loop of results | ListMyPojoView myResultList = ...; | for (MyPojoView myPojo : myResultList) { | myPojo.getPojo.getSomeField(); | //etc..get a bunch of fields this way | } | am I executing a new query each time getPojo.getSomeField() is called? If myPojoView was set up so that the fields were directly in that class, then it would be | ListMyPojoView myResultList = ...; | for (MyPojoView myPojo : myResultList) { | myPojo.getSomeField(); | //etc..get a bunch of fields this way | } | Which would not have any additional queries. So, I'd assume it would be more efficient to place all variables of MyPojo in the MyPojoView class instead of adding myPojo to MyPojoView. Any comments? I'm curious to see what others think View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919824#3919824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919824 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - How can I use a EJB Query with this?
I am wondering how to effectively use an EJB query in the following situation. I have 2 tables. Each table has a corresponding @Entity java class. | TableA | - | int tableAPrimaryKey | varchar(20) tableAField | ...etc, plus many more fields | | TableB | - | int tableBPrimaryKey | int tableAForeignKey | varchar(20) tableBField | ...etc, plus many more fields | I would like to run a query that gets each row from Table A, and a count from Table B (dependant on tableAForeignKey). So for each row my html output would look something like this: tableAField1, tableAField2, tableBCount Using EJB, I can get each row of TableA by running: | Query q = em.createQuery(from TableA o ); | return q.getResultList(); | Using EJB, I can get a count for each row of TableA from TableB | Query q = em.createQuery( | select count(o) + | from TableB o + | where o.tableAForeignKey = :currentRow | ); | Is there a better way to do this using EJB? Looping through each result of Table A and executing a count query seems pretty inefficient. The correct way seems to be to create a native query and manually build all these objects. This is extremely tedious as there are a lot of columns in both tables that are needed. Are there any suggestions of a better way to do this using EJB? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919354#3919354 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919354 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: How can I use a EJB Query with this?
Also, if I did it the EJB way that I showed in my previous post, that would require me to create an @Transient int count in MyTableA's java file to store the count. Also, what if I wanted to sort the results by the count? This would require a lot more work instead of a simple order by clause. Is there a better way to restructure the Entity classes? Is there a better way to nest EJB queries? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919362#3919362 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919362 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: How can I use a EJB Query with this?
Maybe I should create a view in the database and create a POJO from that? I'm thinking that would be my best bet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919397#3919397 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919397 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EntityManager createQuery().setLimit() does not work wit
Anyone? What exactly is the problem with this? Is it just because the limit clause comes at the top of the query instead of at the end of the query? If so, wouldn't it be much easier to change it to appear at the end of the query? Even though it may be a bug in MySql, it makes Jboss's EJB3 look bad because so many people depend on this type of functionality. Things like this tend to steer people away from this product towards other ones which can implement their needs better. It would probably take 1 or 2 lines of code to change the limit clause to appear at the bottom of the query. Then this problem (which has been lingering for 9 months without a resolution) could finally be resolved. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3919097#3919097 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3919097 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Prevent EntityManager persisting
Excellent, thank you. FYI, slight change but it should be | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3918411#3918411 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918411 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EntityManager createQuery().setLimit() does not work wit
Has this ever been resolved? Is there any links to the status of this request? Is there a workaround? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3918406#3918406 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918406 --- 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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Prevent EntityManager persisting
I have the following situation... | @Stateless | public class MyClassBean implements MyClass { | @PersistenceContext(unitName = blah) | EntityManager em; | | public ListMyTable doSomething(){ | final Query q = em.createQuery( | from MyTable | ); | ListMyTable myList = q.getResultList(); | | // Now I wish to take myList, and change fields | // in it for display purposes only | for (MyTable item : myList) { | item.setName(|--+item.getName()); | } | | return myList; |} | } | When I do this, it updates the field in the database (so the field now starts with |--). I only want that first part for display purposes. I need to insert |-- at this time, instead of later on in the code, so logically I thought I could alter my object temporarily without it being update in the database. I am at no time explicitly calling em.persist() or em.merge() How do I prevent this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3917187#3917187 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917187 --- 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=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Prevent EntityManager persisting
In the mean time, I made a transient variable in the MyTable class called displayName. Hopefully there is a better solution? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3917194#3917194 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917194 --- 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=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - How do I get the JMS example working?
I am trying to run the example shown in 6.1.4. A Point-To-Point With MDB Example. The link is below. http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#d0e12934 I am trying to use the example in an ejb3 environment using the 4.0.3 server However I cannot get it up and running. I am assuming: -ejb-jar.xml and jboss.xml go into the .ejb3 package in the meta-inf directory -do I need a file called jboss-service.xml? If I do, what should be in it to make the example work -does the client side (Example 6.1.9) go it the .ejb3 file or in the .war file? - I added the .sar module to my application.xml file. Are there any other files not listed in this post that need to be altered or added? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900903#3900903 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900903 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message lost or are not pulled by MDB
Thanks for the link. I think that's a bit ahead of where I am at the moment. I am currently attempting to get a sar within an ear file to work correctly. Are you using ejb3? If so, do you mind sharing any relevant code you needed in your jboss-service.xml file? Also, did you need to create an interface for your MDB to get it to work? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900925#3900925 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900925 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message lost or are not pulled by MDB
Nevermind, I figured out how to set up MDB using EJB3 annotations. I will add my logging code into it and do some tests similar to yours. If I do not experience the same results as you I'll let you know. Sorry for the temporary threadjack. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900943#3900943 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900943 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message lost or are not pulled by MDB
I have created a detailed tutorial/example for ejb3 logging. Maybe you can try it and see if it works better for you. http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingJMSAndMDBToLogToAMySqlDatabase View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3901049#3901049 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901049 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Here is a tutorial/example for JMS/MDB Logging using MySql
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingJMSAndMDBToLogToAMySqlDatabase View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3901050#3901050 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901050 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Here is an EJB3 tutorial/example for JMS/MDB logging to MySq
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingJMSAndMDBToLogToAMySqlDatabase View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3901053#3901053 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901053 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message lost or are not pulled by MDB
Hi, I am also trying to use an mbean to send logging info to a mysql database. I cannot find any tutorials or demos showing me how to do this. Would you mind telling me where you learned how to do this, or point me to some sample code. It would be much appreciated!! Thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900602#3900602 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900602 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB3 vs static helper classes
I have a question regarding the proper place to put my Helper class. If I have a Helper class with all static methods, does it make sense to leave it in the .war file (WEB-INF/classes), or to convert it into a ejb3 bean and place it in the ejb deployment directory? I'm guessing there's less overhead to call it in the war Ex. | MyHelperClass.doSomething(); | than in the EJB3 directory Ex. | InitialContext ctx = new InitialContext(); | MyHelperClass myHelper = (MyHelperClass) ctx.lookup(MyHelperClass.class.getName()); | myHelper.doSomething(); | Especially if it needs to be called in multiple places, multiple times. Does anyone have any guidance or suggestions? I guess I need to know when and why to use a ejb3 class over a regular class file. Are ejb3 classes only to manipulate the persistence files (saving/retrieving of .par class files from a database)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900487#3900487 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900487 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Lazy Loading for columns?
I was wondering if lazy loading could be done for indivdual columns, or if I would have to use a native query to achieve what I want. Let's say you have a table in the database for storing blogs. Something like blogEditor int blogHeader varchar blogContents text blogCreated Datetime You display the headers of all blogs to the user. Each display page has prev and next links, and displays 50 blog headers per page. When a user clicks on a blog header, it will display the contents of the blog. Obviously I do not want to pre-load 50 blogs at a time, especially since they can contain lots of data, and also because the user may only end up viewing 1 or 2 blogs from the list. Now, if I use the default Entity behaviour, it will load all 50 blogs at a time in its entirety. I would like to perform lazy loading by loading all the data from the blog table except for the blog contents (which could contain lots of data). The blog comments column should only be loaded if the user requests to view it. Is there an annotation I could use to achieve this, or do I have to write a native query? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896600#3896600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896600 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user