Re: [announce] Wicket Stuff Core - JavaEE Inject
Hi, 2010-01-08 12:38 keltezéssel, 谢非 írta: > 1. Each EJB must be declared in web.xml In the example I'm not doing so, and it's still working under GF, but if you love to write XML files, then nothing stops you, to declare your EJBs in web.xml and use their names in the annotation. > 2. @PersistenceUnit and @EJB cannot be used together Did you read the documentation? Check: http://wicketstuff.org/confluence/display/STUFFWIKI/HowToUsePersistenceUnitAnnotation Please note the warning: "Beware! Due to classloading limitations for entities, you cannot mix the usage of @PersistenceUnit and @EJB do persist your entities. So you have to choose only one of these approaches in your application" > Don't think JavaEE Injection should be like this. If you know better, then share your knowledge with us and send me patches.. Thanks for the feedback anyway. Regards, Peter >> Date: Thu, 31 Dec 2009 00:51:28 +0100 >> From: majorpe...@sch.bme.hu >> Subject: [announce] Wicket Stuff Core - JavaEE Inject >> To: users@wicket.apache.org; d...@wicket.apache.org >> >> Hi all, >> >> I am proud to announce the semi-new JavaEE Inject project in Wicket >> Stuff Core, which was formerly known as wicket-contrib-javaee. >> >> The goal of the project: >> Make the @EJB, @Resource and @PersistenceUnit annotations available for >> Wicket users, to make the development more easier. This means, that when >> your components are instantiating, the annotated fields will be injected >> properly, so you can use them for whatever you want. >> >> The project itself didn't changed much, some javac warnings has been >> solved, but it has now a newer Example application too, which will >> demonstrate for you the usage of the annotation based injecting. The >> example is based on maven, so this would be also a good example on how >> to use enterprise applications with wicket and maven. >> >> So now, if you think, that this stuff is cool and want to use it, you >> only have to do the followings: >> - Add Wicket Stuff Repository to your maven repository list (if you've >> not already done so): >> >> wicket-stuff >> default >> http://wicketstuff.org/maven/repository >> >> - Add the JavaEE Inject dependency to your web module: >> >> org.wicketstuff >> javaee-inject >> 1.4-SNAPSHOT >> >> - Follow the Wiki instructions at >> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee or >> try out for yourself the example application. >> - Profit >> >> Project Future: >> In the future, I would like to create a more up-to-date documentation >> for the project, better JavaDoc, and solve the JIRA issues too, and of >> course follow the modifications of the Wicket framework, so the project >> could work with the newest version always. >> >> Best Regards, >> Peter Major - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: [announce] Wicket Stuff Core - JavaEE Inject
1. Each EJB must be declared in web.xml2. @PersistenceUnit and @EJB cannot be used together Don't think JavaEE Injection should be like this. > Date: Thu, 31 Dec 2009 00:51:28 +0100 > From: majorpe...@sch.bme.hu > Subject: [announce] Wicket Stuff Core - JavaEE Inject > To: users@wicket.apache.org; d...@wicket.apache.org > > Hi all, > > I am proud to announce the semi-new JavaEE Inject project in Wicket > Stuff Core, which was formerly known as wicket-contrib-javaee. > > The goal of the project: > Make the @EJB, @Resource and @PersistenceUnit annotations available for > Wicket users, to make the development more easier. This means, that when > your components are instantiating, the annotated fields will be injected > properly, so you can use them for whatever you want. > > The project itself didn't changed much, some javac warnings has been > solved, but it has now a newer Example application too, which will > demonstrate for you the usage of the annotation based injecting. The > example is based on maven, so this would be also a good example on how > to use enterprise applications with wicket and maven. > > So now, if you think, that this stuff is cool and want to use it, you > only have to do the followings: > - Add Wicket Stuff Repository to your maven repository list (if you've > not already done so): > > wicket-stuff > default > http://wicketstuff.org/maven/repository > > - Add the JavaEE Inject dependency to your web module: > > org.wicketstuff > javaee-inject > 1.4-SNAPSHOT > > - Follow the Wiki instructions at > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee or > try out for yourself the example application. > - Profit > > Project Future: > In the future, I would like to create a more up-to-date documentation > for the project, better JavaDoc, and solve the JIRA issues too, and of > course follow the modifications of the Wicket framework, so the project > could work with the newest version always. > > Best Regards, > Peter Major > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > _ 上Windows Live 中国首页,下载Messenger2009安全版! http://www.windowslive.cn
Re: [announce] Wicket Stuff Core - JavaEE Inject
Cool, I will definitely check it out. 2010/1/3 Major Péter > Yes, I've just checked with No-local-interface view, Singleton beans and > web-layer EJB's and they all worked without any problem. > > Regards, > Peter > > 2010-01-03 10:43 keltezéssel, Paul Szulc írta: > > Will it work with JEE6? > > > > 2009/12/31 Major Péter > > > >> Hi all, > >> > >> I am proud to announce the semi-new JavaEE Inject project in Wicket > >> Stuff Core, which was formerly known as wicket-contrib-javaee. > >> > >> The goal of the project: > >> Make the @EJB, @Resource and @PersistenceUnit annotations available for > >> Wicket users, to make the development more easier. This means, that when > >> your components are instantiating, the annotated fields will be injected > >> properly, so you can use them for whatever you want. > >> > >> The project itself didn't changed much, some javac warnings has been > >> solved, but it has now a newer Example application too, which will > >> demonstrate for you the usage of the annotation based injecting. The > >> example is based on maven, so this would be also a good example on how > >> to use enterprise applications with wicket and maven. > >> > >> So now, if you think, that this stuff is cool and want to use it, you > >> only have to do the followings: > >> - Add Wicket Stuff Repository to your maven repository list (if you've > >> not already done so): > >> > >>wicket-stuff > >>default > >>http://wicketstuff.org/maven/repository > >> > >> - Add the JavaEE Inject dependency to your web module: > >> > >>org.wicketstuff > >>javaee-inject > >>1.4-SNAPSHOT > >> > >> - Follow the Wiki instructions at > >> > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor > >> try out for yourself the example application. > >> - Profit > >> > >> Project Future: > >> In the future, I would like to create a more up-to-date documentation > >> for the project, better JavaDoc, and solve the JIRA issues too, and of > >> course follow the modifications of the Wicket framework, so the project > >> could work with the newest version always. > >> > >> Best Regards, > >> Peter Major > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: [announce] Wicket Stuff Core - JavaEE Inject
Yes, I've just checked with No-local-interface view, Singleton beans and web-layer EJB's and they all worked without any problem. Regards, Peter 2010-01-03 10:43 keltezéssel, Paul Szulc írta: > Will it work with JEE6? > > 2009/12/31 Major Péter > >> Hi all, >> >> I am proud to announce the semi-new JavaEE Inject project in Wicket >> Stuff Core, which was formerly known as wicket-contrib-javaee. >> >> The goal of the project: >> Make the @EJB, @Resource and @PersistenceUnit annotations available for >> Wicket users, to make the development more easier. This means, that when >> your components are instantiating, the annotated fields will be injected >> properly, so you can use them for whatever you want. >> >> The project itself didn't changed much, some javac warnings has been >> solved, but it has now a newer Example application too, which will >> demonstrate for you the usage of the annotation based injecting. The >> example is based on maven, so this would be also a good example on how >> to use enterprise applications with wicket and maven. >> >> So now, if you think, that this stuff is cool and want to use it, you >> only have to do the followings: >> - Add Wicket Stuff Repository to your maven repository list (if you've >> not already done so): >> >>wicket-stuff >>default >>http://wicketstuff.org/maven/repository >> >> - Add the JavaEE Inject dependency to your web module: >> >>org.wicketstuff >>javaee-inject >>1.4-SNAPSHOT >> >> - Follow the Wiki instructions at >> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor >> try out for yourself the example application. >> - Profit >> >> Project Future: >> In the future, I would like to create a more up-to-date documentation >> for the project, better JavaDoc, and solve the JIRA issues too, and of >> course follow the modifications of the Wicket framework, so the project >> could work with the newest version always. >> >> Best Regards, >> Peter Major - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] Wicket Stuff Core - JavaEE Inject
Will it work with JEE6? 2009/12/31 Major Péter > Hi all, > > I am proud to announce the semi-new JavaEE Inject project in Wicket > Stuff Core, which was formerly known as wicket-contrib-javaee. > > The goal of the project: > Make the @EJB, @Resource and @PersistenceUnit annotations available for > Wicket users, to make the development more easier. This means, that when > your components are instantiating, the annotated fields will be injected > properly, so you can use them for whatever you want. > > The project itself didn't changed much, some javac warnings has been > solved, but it has now a newer Example application too, which will > demonstrate for you the usage of the annotation based injecting. The > example is based on maven, so this would be also a good example on how > to use enterprise applications with wicket and maven. > > So now, if you think, that this stuff is cool and want to use it, you > only have to do the followings: > - Add Wicket Stuff Repository to your maven repository list (if you've > not already done so): > >wicket-stuff >default >http://wicketstuff.org/maven/repository > > - Add the JavaEE Inject dependency to your web module: > >org.wicketstuff >javaee-inject >1.4-SNAPSHOT > > - Follow the Wiki instructions at > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor > try out for yourself the example application. > - Profit > > Project Future: > In the future, I would like to create a more up-to-date documentation > for the project, better JavaDoc, and solve the JIRA issues too, and of > course follow the modifications of the Wicket framework, so the project > could work with the newest version always. > > Best Regards, > Peter Major > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards, Paul Szulc http://paulszulc.wordpress.com
[announce] Wicket Stuff Core - JavaEE Inject
Hi all, I am proud to announce the semi-new JavaEE Inject project in Wicket Stuff Core, which was formerly known as wicket-contrib-javaee. The goal of the project: Make the @EJB, @Resource and @PersistenceUnit annotations available for Wicket users, to make the development more easier. This means, that when your components are instantiating, the annotated fields will be injected properly, so you can use them for whatever you want. The project itself didn't changed much, some javac warnings has been solved, but it has now a newer Example application too, which will demonstrate for you the usage of the annotation based injecting. The example is based on maven, so this would be also a good example on how to use enterprise applications with wicket and maven. So now, if you think, that this stuff is cool and want to use it, you only have to do the followings: - Add Wicket Stuff Repository to your maven repository list (if you've not already done so): wicket-stuff default http://wicketstuff.org/maven/repository - Add the JavaEE Inject dependency to your web module: org.wicketstuff javaee-inject 1.4-SNAPSHOT - Follow the Wiki instructions at http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee or try out for yourself the example application. - Profit Project Future: In the future, I would like to create a more up-to-date documentation for the project, better JavaDoc, and solve the JIRA issues too, and of course follow the modifications of the Wicket framework, so the project could work with the newest version always. Best Regards, Peter Major - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org