[jboss-user] [EJB 3.0] - Display data via EJB 3

2006-12-20 Thread weiming
Hi there I can create, insert and delete date via EJB 3, but I got a problem with displaying data. I created an entitybean "UserCredentialsEntity.java", which defined all setter/getter. In interface "UserCredentialsHandler.java", I set a method "public Collection getUser(String firstName);"

[jboss-user] [EJB 3.0] - Re: display data

2006-12-12 Thread weiming
public Collection getUser(){ String oql = "select u from UserCredentialsEntity u"; return em.createQuery(oql).getResultList(); } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993249#3993249 Repl

[jboss-user] [EJB 3.0] - Re: display data

2006-12-12 Thread weiming
Sorry, I post the wrong code in javabean, the correct one is: public Collection getUser(){ String oql = "select u from UserCredentialsEntity u"; return em.createQuery(oql).getResultList(); } View the original post : http://www.jbos

[jboss-user] [EJB 3.0] - display data

2006-12-12 Thread weiming
Hi, I have a problem with displaying data on jsp page. It is similar to the TrailBlazers and did work before by the way. Wish anyone give me some helps, thanks. The method in javabean is: public Collection getUser(){ String oql = "select u from UserCredentialsEntity u";

[jboss-user] [J2EE Compliance] - using i18n

2006-11-29 Thread weiming
Hi, there I am not quite sure if I am at the right place to ask this question. I was trying to use eclipse to create different versions of propertiy files so user can view the site in different language including Chinese. However, when I compiled the project, it shows that the "ISO-8859-1" doesn'

[jboss-user] [JBoss Eclipse IDE (users)] - using i18n

2006-11-29 Thread weiming
Hi, there I am not quite sure if I am at the right place to ask this question. I was trying to use eclipse to create different versions of propertiy files so user can view the site in different language including Chinese. However, when I compiled the project, it shows that the "ISO-8859-1" doesn'

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-25 Thread weiming
oh, do you mean I have to create an ear file before I create the project, but not at the end? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980897#3980897 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980897

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-25 Thread weiming
Sorry, I cannot find the panel you mentioned in the new EJB Project wizard. Can you specify the path in Eclipse please? For example, the project is called "Calculator", then what's next Cheers Ming View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980896#39808

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-25 Thread weiming
hi mwr0707 when you are talking about "This approach exposes the new productivity features in 2.x that allow automatic generation of interfaces, deployment descriptors, (and the EAR too!) without having to fill in XDoclet tags or configure Xdoclet and Packaging as described in the 1.x tutoria

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-24 Thread weiming
Which version of JBoss Eclipse IDE are you using now? As I know that the deployment of ear between 1.6 and 2.0 are slightly different. Because I am using version 2.0, when I finished setting up the classpath for JBoss server at Eclipse, I only need to click run JBoss server, and it will automati

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Create an EJB3 Project

2006-10-22 Thread weiming
Hi, I just found out i need to download "jboss-ejb3.jar", and install it to JBoss. Does anyone know where I can download it? Cheers Ming View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979881#3979881 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Create an EJB3 Project

2006-10-22 Thread weiming
Oh, my JBoss Eclipse IDE version is 2.0 beta, but not 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979879#3979879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979879 _

[jboss-user] [JBoss Eclipse IDE (users)] - Create an EJB3 Project

2006-10-22 Thread weiming
Hi, there I have got Eclipse 3.2 with JBoss Eclipse IDE 1.6. I was trying to create an EJB3 Project using EJB3 framwork, but stuck on configuring EJB3 classpath (the last stage). Meanwhile, I have set JBoss 4.0.4 as server. Below is the error contant: EJB3 Tools - Error The selected configura

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-22 Thread weiming
Yes, I can pass chapter 5 with version 3.2. I guess that you missed out something at XDoclet Configurations setting. I suggest you to delete EJB and Web configuration, and then build them again, make sure that you are exactly following the instructions. View the original post : http://www.jbo

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE Tutorial

2006-10-18 Thread weiming
Yes, your guess is correct. I am using 3.2 version, but not 3.1 version. Actually, I figuered out my last problem, and I successfully delopied my ear file into deploy folder. The total size is about 8k. However, when I turned on JBoss server and tried to run http:localhost:8080/fibo, it shows 40

[jboss-user] [JBoss Eclipse IDE (users)] - JBoss Eclipse IDE Tutorial

2006-10-11 Thread weiming
Hi there I am new to JBoss EJB IDE, and trying to create an EJB3 application following JBoss Eclipse IDE Tutorial. However, I am stuckat Chapter 5, as when I click XDoclet Configurations, system says "The currently displayed page contains invalid values". My only guess is that error is caused

[jboss-user] [JBoss Eclipse IDE (users)] - Re: create a simple EJB 3.0 application

2006-10-11 Thread weiming
trying to create an application following JBoss Eclipse IDE Tutorial. Have you done this before? Is it the way to create an EJB3 application? Regards Weiming Chen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977702#3977702 Reply to the post

[jboss-user] [JBoss Eclipse IDE (users)] - create a simple EJB 3.0 application

2006-10-11 Thread weiming
uot;. Can anyone tell me how to fix this error please? Regards Weiming Chen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977460#3977460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=397746