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: [email protected]
> Subject: [announce] Wicket Stuff Core - JavaEE Inject
> To: [email protected]; [email protected]
> 
> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          
_________________________________________________________________
上Windows Live 中国首页,下载Messenger2009安全版!
http://www.windowslive.cn

Reply via email to