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):
>> <repository>
>>     <id>wicket-stuff</id>
>>     <layout>default</layout>
>>     <url>http://wicketstuff.org/maven/repository</url>
>> </repository>
>> - Add the JavaEE Inject dependency to your web module:
>> <dependency>
>>     <groupId>org.wicketstuff</groupId>
>>     <artifactId>javaee-inject</artifactId>
>>     <version>1.4-SNAPSHOT</version>
>> </dependency>
>> - 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

Reply via email to