Now that is something worth understanding :)
Yes, unfortunate to call it @SpringBean :)
- Brill
On 5-Aug-08, at 11:15 AM, James Carman wrote:
Well, I used to not be big into Spring (I'm a member of the HiveMind
team), but it just makes things so easy for us.
You don't have to tie your models to Spring at all, really. Perhaps
the @SpringBean annotation should have been @Inject or something and
we should have been able to supply different "injector"
implementations (Guice, HiveMind, custom, etc.).
On Tue, Aug 5, 2008 at 11:11 AM, Brill Pappin <[EMAIL PROTECTED]> wrote:
Some people (myself included) think Spring is evil incarnate.
(I can get into why if you actually care).
So, I also will eventually want to use the models without spring.
If it's not possible, then we anti-spring folks are going to have
to come up
with some other way.
- Brill Pappin
On 5-Aug-08, at 10:49 AM, James Carman wrote:
What's with the "No Spring" restriction anyways. That's like
asking,
"Tell me how to kill a grizzly bear with just my bear hands." Sure,
you can probably be trained to perform such a feat, but it'll take
years to achieve (it involves a lot of eye gouging and saying stuff
like "Hey look, it's Elvis!"). It'd be better if you just learned
how
to shoot a gun and get it over with. :)
On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi
<[EMAIL PROTECTED]> wrote:
can you please send me the hibernate-cfg.xml
You can use standard standalone version, use google.
web.xml and
No changes here to the quickstart.
EntityManagerUtil-Classes?
Your own, the same as standalone version.
**
Martin
Can you please show me your project-structure....?
Thanks a lot...
Cheers
Martin Makundi wrote:
Hi!
I am using this configuration (actually with Jetty, not Tomcat).
1. I have a persistence.xml with all the necessary setup (if
you have
plain Hibernate, you have hibernate-cfg.xml).
2. I have a EntityManagerUtil class for managing the connection
(you
could have, e.g., HibernateUtil or something).
3. I use lazy initialization for the Hibernate, i.e., every
time I
heed the connection I initialize it if it is not yet initialized
(think: "singleton").
4. I have tweaked the Wicket RequestCycle for closing the
possibly
lazily opened connections; in my XXWebApplication.java:
@Override
public RequestCycle newRequestCycle(Request request, Response
response)
{
return new WebRequestCycle(this, (WebRequest)request,
(WebResponse)response) {
/**
* @see org.apache.wicket.RequestCycle#onEndRequest()
*/
@Override
protected void onEndRequest() {
try {
EntityManagerUtils.disposeEntityManagers();
} catch (Throwable t) {
Utils.errorLog(this.getClass(), t);
}
super.onEndRequest();
}
};
}
**
Martin
2008/8/5 HITECH79 <[EMAIL PROTECTED]>:
Hallo,
i need help for a configuration or tutorial or example for a
project
with
Wicket+Hibernate+Tomcat. Please no answers with interaction
Spring or
framework Databinder.
Only Wicket+Hibernate+Tomcat :-)
Thanks a lot
Cheers...
--
View this message in context:
http://www.nabble.com/Wicket-%2B-Hibernate-without-Spring-and-Databinder-tp18827595p18827595.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Wicket-%2B-Hibernate-without-Spring-and-Databinder-tp18827595p18827778.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]