Re: Switching off Reloading of Service Implemenation?

2013-10-29 Thread Martin Kersten
(ServiceImpl)ServiceProxyUtil.getImplementation(registry.getService(Service.class)). > > So I dont need to invoke methods using reflection and I have AOP and > > Decoration for the rest of the service methods as long as I use the proxy > > to access the methods. > > > >

Re: DynamicTemplate issue

2013-10-26 Thread Martin Kersten
Its not about the binding. Its about discovering any components at all. During the dynamic parser session it seams that no child component related behaviour is triggered at all. I can use any tag name it doesnt matter. I need to check whether I am in production mode also since there seams to be no

DynamicTemplate issue

2013-10-25 Thread Martin Kersten
component to render child components? Cheers, Martin (Kersten)

Re: [5.4.23] Troubleshooting Live Class Reloading

2013-10-25 Thread Martin Kersten
I had a reload issue regarding to class loading and incompatible class versions for a parameter when changing from alpha 21 to 23. I altered the binding code to not use reloading (preventReloading or something similar, check the auto complete options). I only had to do it for one service I dont nee

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
se row (entity) which will cause Hibernate to fail with exception leaving the session in an unpredictable state you should consider to be broken. Well that was quite some amount of text. Hopefully you get some additional use out of it. Cheers, Martin (Kersten) 2013/10/25 George Christman &g

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
think). And it wont break the backward compatibility with @CommitAfter. 2013/10/25 Martin Kersten > And George, read this one: > http://stackoverflow.com/questions/10143880/hibernate-queries-much-slower-with-flushmode-auto-until-clear-is-called. > It explains why you experience the slow do

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
well you are decorating the session not the session source of cause... . 2013/10/25 Martin Kersten > >> Perhaps you want a @MaybeCommitAfter ;) > > What about simply having @WriteTransaction (und @ReadTransaction, since > lacking support for read transactions is the biggest

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
And George, read this one: http://stackoverflow.com/questions/10143880/hibernate-queries-much-slower-with-flushmode-auto-until-clear-is-called. It explains why you experience the slow downs and what is it causing it. 2013/10/25 Martin Kersten > You might also want to use such kind of a util

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
ive can be extracted to a private method to value the DRY principle. 2013/10/25 Martin Kersten > > session.flush(); > > session.clear(); > > hibernateSessionManager.commit(); > > This is wrong. > First on commit you will do

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
@George: Flushing the session does not commit your changes (Consider FlushMode.Commit). Therefore clear does not clear the persistence context. The rest is just dedicated to O(n²) for dirty checking (even immutable objects are dirty checked and touched in the way I wrote within the stackoverflow a

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
ect usage is: session.getTransaction().commit(); session.clear(); session.beginTransaction(); (without the clear its what HibernateSessionManager is doing with the session bound to the current thread). 2013/10/25 Martin Kersten > Use: > > @Inject > Session session; //current

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
Use: @Inject Session session; //current session bound to the current thread or @Inject HibernateSessionSource source; + source.create() for a really new session (CommitAfter would not work with newly created one); Using the Manager does give you only the session associated with the current thr

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
It's broken. Or at least one should update the UserGuide stating out the concrete behaviour and the danger that can be caused by using it in conjunction with Services. I had to clean up the mess that was introduced by using this annotation on Service interfaces. And luckily this even breaks the tr

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Martin Kersten
wonder if clear does what you expect if you do not commit the transaction before clear(). Here is a answer of a question that might related to the slowing down: http://stackoverflow.com/questions/10143880/hibernate-queries-much-slower-with-flushmode-auto-until-clear-is-called/18948517#18948517 Chee

Re: Why the Registry is not available as a service?

2013-10-24 Thread Martin Kersten
= (Registry)context.getServletContext().getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); 2013/10/19 Martin Kersten > > Any comments why this is not available by default or did I missed the > point here and its already in place? < > > Done so. > > Anyway It is setting

Re: How to make login to database virtual mutually exclusive per user

2013-10-24 Thread Martin Kersten
Hi, Check out stackoverflow.com. Am 23.10.2013 22:30 schrieb "Ken in Nashua" : > Hi Folks, > > I have a database. > > And I want all users to login... > > But I want all my code to cater to each user, regardless of how many are > logged in SAME CODE BASE... UNLIMITED USERS... CONCURRENCY.

Re: Multiple Service Interfaces?

2013-10-19 Thread Martin Kersten
pl.class) and @Inject ServiceA > > serviceA and @Inject ServiceB serviceB, it will work (serviceA == > > serviceB). Have you tested this? If not, please do. > > > > Anyway, this is for sure: you can declare any service with any scope > > (singleton or perthread) with both

Re: Why the Registry is not available as a service?

2013-10-19 Thread Martin Kersten
ing-the-ioc-registry.html. > > By the way, it would be nice to ask how to do something instead of why x > doesn't exist, because sometimes it does exist, as that's the case with > both statements in the original message in the thread. > > > > On Sat, Oct 19

Re: Multiple Service Interfaces?

2013-10-19 Thread Martin Kersten
ind() and builder methods. To > declare a perthread service with binder.bind(), just call > binder.bind(...).scope(ScopeConstants.PERTHREAD). > > > On Sat, Oct 19, 2013 at 6:02 AM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: > > > Hi there, >

Re: Why the Registry is not available as a service?

2013-10-19 Thread Martin Kersten
---* > *Muhammad Gelbana* > http://www.linkedin.com/in/mgelbana > > > On Sat, Oct 19, 2013 at 11:21 AM, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > > Hi there, > > > >I just wonder why the registry is not available as a service. > >

Re: Tapestry 5 Crash on load from Eclipse while working ok from command (Jetty)

2013-10-19 Thread Martin Kersten
I got the same issue. I disable the value encoder currently since I am currently not using it. Check the value encoder and hibernate module, there is a HibernateSymbolConstants entry for disabling it. The mechanism is present within the HibernateModule or HibernateCoreModule. Check the source you s

Why the Registry is not available as a service?

2013-10-19 Thread Martin Kersten
registry interaction towards the real registry once it is created). Any comments why this is not available by default or did I missed the point here and its already in place? Cheers, Martin (Kersten), Germany

Multiple Service Interfaces?

2013-10-19 Thread Martin Kersten
rviceA and ServiceB. and that registry.getService(ServiceA) == registry.getService(ServiceB). Is there any way (beside registering a builder instead)? The service would be PerThread so I can do this with a builder but I would love to have something different. Cheers, Martin (Kersten), Germany

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Martin Kersten
directories. I will see it tomorrow or sunday I guess. I just wanted to ensure that there is nothing blocking me and I waste time trying to fix it... . So I will be confident and report back my findings. 2013/10/18 Thiago H de Paula Figueiredo > On Fri, 18 Oct 2013 11:22:40 -0300, Martin Kers

Re: Dynamic Loading of Templates

2013-10-18 Thread Martin Kersten
ctor the methods for this branch complexity (mcCabe anyone?) reduction. It will become much more simplier. Cheers, Martin (Kersten) PS: Consider the Template example above a contribution to 5.5 or better 6.0. 2013/10/18 Thiago H de Paula Figueiredo > On Fri, 18 Oct 2013 13:51:56 -0300

Re: Dynamic Loading of Templates

2013-10-18 Thread Martin Kersten
e worth the afford. (Might sound like a challenge but its not, its an opportunity). Cheers, Martin (Kersten), Germany 2013/10/18 Lance Java > Strange to hear you talk that way of the tapestry implementation. I > personally think it's some of the best code I've seen and I ge

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Martin Kersten
w.linkedin.com/in/mgelbana > > > On Thu, Oct 17, 2013 at 8:17 PM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: > > > Hi there, > > > >I was thinking about having two projects now and I have two class > > locations. Currently I do

Re: Jack of All Trades Page

2013-10-18 Thread Martin Kersten
'm thinking you'll contribute a > test: binding which can read and / or write to a map defined in your test > case. Try Googling custom bindings and take a look at tapestry-stitch and > it's map: binding as an example. I'm off to bed :) > On 17 Oct 2013 19:11, "

Jetty/Tappestry for different class locations?

2013-10-17 Thread Martin Kersten
their own class loaders and so I want to verify that this works. I got some issues right now but before I spend 30min in diving into the code I just want to know if it is practical possible to do such thing. Has anyone got this to work? Cheers, Martin (Kersten) Germany

Jack of All Trades Page

2013-10-17 Thread Martin Kersten
something like Is this or similar possible (I can also use indexed properties like providing getParameter(1) or firstParameter). Any Idea to make it as strict and readable as possible? Cheers, Martin (Kersten), Germany

Re: Dynamic Loading of Templates

2013-10-17 Thread Martin Kersten
:17:26 -0300, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > I collect this stuff I do for blog posts. But I need to find a native >> english speaker with a tapestry background first :). >> > > Some of the best blog posts about Tapestry ar

Re: Dynamic Loading of Templates

2013-10-17 Thread Martin Kersten
Thats what I ment by stripping of the cache aspect completely. It all came down to this line :). I collect this stuff I do for blog posts. But I need to find a native english speaker with a tapestry background first :). 2013/10/17 Lance Java > It sounds like an interesting way to test. I'm gue

Re: Dynamic Loading of Templates

2013-10-17 Thread Martin Kersten
Lance it works. I can render any string given as a template. All I ever wanted. Same should be true for components also. Cheers, Martin (Kersten) 2013/10/15 Martin Kersten > I dont want to cache it actually I will dig into it today to see if this > becomes a problem. My Goal is to pro

Re: Service Override Problems

2013-10-16 Thread Martin Kersten
y have to check if the object you get is just another proxy (having a field creator itself). Cheers, Martin (Kersten), Germany 2013/10/16 Thiago H de Paula Figueiredo > On Wed, 16 Oct 2013 12:09:52 -0300, Alessio Gambi > wrote: > > While ago I tried to patch directly RegistryImp

Re: 5.4 Kills PageTester

2013-10-16 Thread Martin Kersten
rewritten since I use JUnit test. So in the end I will move the support to my own project then. 2013/10/16 Thiago H de Paula Figueiredo > On Wed, 16 Oct 2013 17:34:52 -0300, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > Hi everyone, >> > > Hi! > > &

5.4 Kills PageTester

2013-10-16 Thread Martin Kersten
PageTester and maintain it outside of tapestry providing it myself. The problem came after I switched form alpha 21 to alpha 23. Did the class just died by accident? As I said the rest is there. Cheers, Martin (Kersten), Germany

Re: Switching off Reloading of Service Implemenation?

2013-10-16 Thread Martin Kersten
methods as long as I use the proxy to access the methods. Mission successful. 2013/10/16 Martin Kersten > I checked the sources. After setting production mode to test my proxy util > for this it does not change reload behaviour. It seams to be only switched > off in case a service is b

Re: Switching off Reloading of Service Implemenation?

2013-10-16 Thread Martin Kersten
end in production mode the reloading is enabled(?). 2013/10/16 Martin Kersten > Dont see this to work with AOP on the LegacyInterface or do I overlook > something. > > Better might be the use of a legacy service and provide an extended > service using refelction to access the

Re: Switching off Reloading of Service Implemenation?

2013-10-16 Thread Martin Kersten
Dont see this to work with AOP on the LegacyInterface or do I overlook something. Better might be the use of a legacy service and provide an extended service using refelction to access the legacy service implementation (subclass). Would also make it clear and nice. 2013/10/16 Lance Java > Here

Re: Switching off Reloading of Service Implemenation?

2013-10-16 Thread Martin Kersten
d I pitty us for not being able to decorate implementation classes, its quite easy to implement using asm and alike(extending original class). Anyhow. Life goes on. Thanks alot for your input (both of you). Solved my problem. Cheers, Martin (Kersten), Germany 2013/10/16 Lance Java > If y

Re: Switching off Reloading of Service Implemenation?

2013-10-16 Thread Martin Kersten
> > Also it makes everything feel stiff and decoupled in a not useful way. > > Stiff is the opposite of decoupled. And interfaces are quite useful, but I'm not really in the mood of explaining why. OOP and IoC already do that for me. Nope. Completely wrong :). Stiff means not changeable in terms

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
I do not own the interface. Currently I just use reflection to get the concrete service instance from the proxy and use reflection to call my method. And If I remember my diggin into the code session of tapestry's IOC correctly, binding a concrete (implementation) class is just binding the class t

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
l. The rest is cognitive properties like experience, complexity and all this more or less fishy defined stuff. So yes OOP ok but nope not against it, I can ensure you :). 2013/10/15 Thiago H de Paula Figueiredo > On Tue, 15 Oct 2013 13:01:51 -0300, Martin Kersten < > martin.kersten...@gmail

Re: Service Override Problems

2013-10-15 Thread Martin Kersten
> I'm trying to override a few Tapestry services in order to gain access to the configurations but I'm not having much luck. For example< What are you trying to achieve? 2013/10/15 Thiago H de Paula Figueiredo > On Tue, 15 Oct 2013 14:49:35 -0300, Barry Books wrote: > > It's in another modul

Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
). Never the less is this reloading of serivce implementations build in or an option I can switch off somehow. I did not dig into the code right now since I have no computer at hand (well one with Eclipse on it). Cheers, Martin (Kersten), Germany

Re: Dynamic Loading of Templates

2013-10-15 Thread Martin Kersten
I dont want to cache it actually I will dig into it today to see if this becomes a problem. My Goal is to provide a string and let it be parsed as template. Therefore every test case can have its own 'template' for the same page. This way I could set up the component environment to test it easily.

PageTester

2013-10-14 Thread Martin Kersten
more complete things. Are there any information about what the limits are? Cheers, Martin (Kersten)

Re: Dynamic Loading of Templates

2013-10-14 Thread Martin Kersten
Well thats one way but I thought about doing it the same way issuing a render command omitting the need of a component. I will give it a try. 2013/10/14 Lance Java > I've never used it myself but I assume it'd be something like: > > Java > - > public class MyDynamicPage { >@Inject >

Re: Safety check if a service has been initialized

2013-10-14 Thread Martin Kersten
Sometimes it is very important. I for myself need this in some tests to recognize some specials in tear down and set up. And thanks Lance for the hint. I used another way but this Scoreboard is way more cooler. Wasnt aware of this. 2013/10/14 Thiago H de Paula Figueiredo > On Sun, 13 Oct 2013 1

Testing Environment

2013-10-13 Thread Martin Kersten
g are your complete test suites (midsize project with around 1k tests? Cheers, Martin (Kersten), Germany

Dynamic Loading of Templates

2013-10-13 Thread Martin Kersten
mean just a page using a rendering command like the component. Thinking about it it would be better to use a custom DynamicPage which parses its template based on a Page parameter. Does anyone have some ideas or remarks why this is (im)possible? Anyone does this before? Cheers, Martin (Kersten

Tapestry Flow

2013-10-13 Thread Martin Kersten
I was looking for some documentation for the flow api but I was not able to find something beside the Java-doc. Does anyone know some additional readings? Cheers, Martin (Kersten), Germany

Re: Pro / Contra: Splitting The Project

2013-10-13 Thread Martin Kersten
is just not good in handling package trees. Same old story for the last 10 years... . So thanks a lot for your replies. Cheers, Martin (Kersten), Germany 2013/10/13 Borut Bolčina > Hello Martin, > > always split your code! Of course it depends on how large the project is, >

Pro / Contra: Splitting The Project

2013-10-11 Thread Martin Kersten
about integration + acceptance testing. But I am in doubt. the only gain I would have is half the packages at once, and some separation and shift in thinking. Does anyone split projects in core vs web? What is the point in doing so and why not? Cheers, Martin (Kersten), Köthen

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Martin Kersten
really only have to take care about the block writing. Cheers, Martin (Kersten), Germany 2013/9/27 Barry Books > OutputRaw does not do the same thing because it does not support parameter > expansion, but you are correct there are potential issues with this > approach. > >

Re: T5 IOC Integration Questions

2013-09-27 Thread Martin Kersten
cases. Cheers, Martin (Kersten) 2013/9/27 Norman Franke > On Sep 27, 2013, at 1:31 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Fri, 27 Sep 2013 13:11:33 -0300, Norman Franke > wrote: > > > >> I'm trying to better integr

Re: Tapestry + Hibernate + Testing

2013-09-27 Thread Martin Kersten
I always start simple first and most simply is without tapestry. When you deal with 3 or 4 services at once you feel the need to go for IOC. Then you want to test a single page and thats when you use tapestry-test and then you go for full scale testing and you find yourself using htmlunit or seleni

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Martin Kersten
is as straight forward as you actually wrote. Usually one use state-testing rather then behavior-testing. So you setup, modify, verify the state of the database. There are rare occursions I use behavior testing and using a mocking framework for injecting services and replace those. Cheers, Martin

Re: Testing Tapestry

2013-09-24 Thread Martin Kersten
ink about serialization etc. Wont work without being that lax about access restrictions I think. And if you wonder, Its just JDK 7 nothing special. Maybe it blows with sun but i dont think so. Lets wait and see. And thats the way it always worked as long as I can remember. Cheers, Martin Kers

Re: Testing Tapestry

2013-09-24 Thread Martin Kersten
a public empty constructor tapestry just does it. But I have the inject field dependencies stuff already done (was a almost no brainer so its ok.). 2013/9/24 Martin Kersten > Well its a bug. I dont habe any constructor at all. Calm down and relax. > You dont need ans. Just call Class.newIn

Re: Non Web App: Input and Command Line Validation

2013-09-24 Thread Martin Kersten
are actually an interface language. And that makes it a domain specific language and that requires a paser generator or you end up with lots of code. Cheers, Martin Kersten, Germany Am 24.09.2013 14:31 schrieb "Alessio Gambi" : > Hi list, > > in this last period I heavily us

Re: Multiple JPA database instances

2013-09-24 Thread Martin Kersten
different session objects. Look at the hibernate module and the use of marker interfaces. So you can habe as man distinct sessions per thread from AS many factories AS you wish. But hey that just the pragmatic way. Maybe there is a better one. Cheers, Martin Kersten, Germany Am 24.09.2013 16:57

Re: Testing Tapestry

2013-09-24 Thread Martin Kersten
Well its a bug. I dont habe any constructor at all. Calm down and relax. You dont need ans. Just call Class.newInstance and you are fine. That is pro.level OOP. :-) Am 24.09.2013 14:34 schrieb "Thiago H de Paula Figueiredo" < thiag...@gmail.com>: > On Tue, 24 Sep 2013 08:

Re: Testing Tapestry

2013-09-24 Thread Martin Kersten
Also the IOC needs a public constructor for autobuild. Fine I dont have any... . Would have been a bug report. But I wont mind... . 2013/9/24 Thiago H de Paula Figueiredo > On Tue, 24 Sep 2013 04:13:27 -0300, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > Thats i

Re: Testing Tapestry

2013-09-24 Thread Martin Kersten
ls really any method, not just the first found. Cheers, Martin (Kersten) PS: @Thiago Pesti comes from pest and marks something as being sort of a distraction or an annoyance. 2013/9/23 Thiago H de Paula Figueiredo > On Mon, 23 Sep 2013 17:07:54 -0300, Martin Kersten < > martin.kerst

Re: Testing Tapestry

2013-09-23 Thread Martin Kersten
? You can create a property or parameter, annotate with it and Tapestry builds it on the fly using autobuild. Just like: Constructor(@Autobuild ArrayList list1, @Autobuild ArrayList list2) { assert list1 != list2; } Cheers, Martin (Kersten) 2013/9/23 Daniel Jue > You can still us

Re: How to best construct and express this service?

2013-09-23 Thread Martin Kersten
ore I > started implementing my workers. > Though, my solution has some advantages for my project, its still not well > tested and not really reusable in its current implementation. > > > On Mon, Sep 23, 2013 at 2:29 PM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: &g

Re: Testing Tapestry

2013-09-23 Thread Martin Kersten
hp/2010/11/16/improved-testing-facilities/ > > and then this one > > http://blog.tapestry5.de/index.php/2010/11/18/find-your-elements/ > > > Dan > > > On Mon, Sep 23, 2013 at 12:49 PM, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > > Pro

Re: Testing Tapestry

2013-09-23 Thread Martin Kersten
t q = new MyQueryObject(); > q.setAttribute("Martin"); > List = dao.findByQuery(q); > //assert something here > } > > > In MyDAOModule.class, you can set up your services to build via > auto-binding, interface binding, or using a build method (public stat

Re: MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
e only thing > you've missing is how to look up a service dynamically: you can inject > ObjectLocator to do that. > > > On Mon, 23 Sep 2013 11:55:30 -0300, Martin Kersten < > martin.kersten...@gmail.com> wrote: > > This is design by contract Tapestry itself i

Re: Testing Tapestry

2013-09-23 Thread Martin Kersten
have three or four services to setup it becomes cumbersome. 2013/9/23 Martin Kersten > Thanks daniel. I will check the testify stuff in a real example. > > > 2013/9/23 Daniel Jue > >> I don't have spare minutes at the moment, I just want to drop these links >> fo

Re: MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
model will be abunch of Methode names to provide optional lifecycle management and a list of classes of the tasks to initiate and run using the parallel executor. That it basically. This way i dont need to rely in that page, HTML stuff . cheers, Martin Kersten Germany Am 23.09.2013 17:29 schrieb

Re: Testing Tapestry

2013-09-23 Thread Martin Kersten
> Which is something you may already read while browsing the web. > > Do you have any problems with this? > > > On Mon, Sep 23, 2013 at 7:02 PM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: > > > I want some real hands on experiences. So please if y

Re: MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
and not access to pages that might show up in public available logs where one can extract critical information. (we want to use a external monitor web service). Cheers, Martin (Kersten) 2013/9/23 Dmitry Gusev > This is very strange approach... not object-oriented and not type-s

Testing Tapestry

2013-09-23 Thread Martin Kersten
something else. And yes I searched the web high and low, I want just personal experiences with the background of embedding either a web application server or an IOC. Cheers, Martin (Kersten)

Re: MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
coding by convention on my own. I will also invoke on annotation presents. 3. at the end clear up thread if needed. I currently write my own Invokeable task that performs injections and values post injection and so on. Cheers, Martin (Kersten) PS: Dejavú again. This thing I wanted 2008 too an

Re: MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
; Invoker.invoke("invoke", task, "{'config':{'value':10, 'value2':'string'}}", TIMEOUT); Thats kind of what I am looking for. Cheers, Martin (Kersten) 2013/9/23 Dmitry Gusev > Didn't know about @PostInjecton, thanks for sharing. >

MethodInvocationPlan?

2013-09-23 Thread Martin Kersten
(object, "myMethod", "string parameter"); -> So the ioc looks for the longest method that can resolve all annotated parameters and the one that are not annotated are filled up with the parameter provided in the same order. Is there anything like that? Cheers, Martin (Kersten), Germany

Re: How to best construct and express this service?

2013-09-23 Thread Martin Kersten
using ParallelExecutor / PeriodicExecutor. > On 22 Sep 2013 22:38, "Martin Kersten" > wrote: > > > @Lance > > Using Hibernate SessionSource will just create a new session with no > thread > > local awareness. Is there another service that gives me a per thread

Re: How to best construct and express this service?

2013-09-23 Thread Martin Kersten
It was appearently easy. Registry + PerThreadManager. The only thing I need to learn now is how to invoke a method using the IOC. 2013/9/23 Martin Kersten > @Lance > SessionSource is not perThread but HibernateManager is. And on > instanciation the HibernateManager creates the sessi

Re: How to best construct and express this service?

2013-09-23 Thread Martin Kersten
thread aware and holds only one session object. So the only thing left to do is learn how to trigger a construction of my service or hibernate manager service in my own thread. I guess this is in the user guide somewhere. 2013/9/22 Martin Kersten > @Lance > Using Hibernate SessionSourc

Re: How to best construct and express this service?

2013-09-22 Thread Martin Kersten
gt; informally-specified, bug-ridden < > http://en.wikipedia.org/wiki/Computer_bug>, > slow implementation of half of Hudson. > > > On Sun, Sep 22, 2013 at 4:53 AM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: > > > Thanks Lance. This cleanup

Re: Encoding a template as a valid JSON String

2013-09-22 Thread Martin Kersten
> instance. A javascript is using the innerHTML() of one element to create > another with exactly the same id. > > > On 21 September 2013 20:50, Martin Kersten >wrote: > > > If you can prevent Tapestry from removing your comments, you can just use > > comments to

Re: How to best construct and express this service?

2013-09-22 Thread Martin Kersten
ate session will be cleaned up after your job runs. If you > are not using these services (ie you are using java.util.concurrent.* > directly) then you will need to call either PerThreadManager.cleanup() or > Registry.cleanupThread() explicitly to close the hibernate session. > > &

Re: How to best construct and express this service?

2013-09-22 Thread Martin Kersten
ce and schedule accessing that > page with Hudson/curl > > > On Sat, Sep 21, 2013 at 2:41 PM, Martin Kersten < > martin.kersten...@gmail.com > > wrote: > > > Hi there, > > > > > >I need to implement a service that reads tasks (descriptions) from t

Re: Encoding a template as a valid JSON String

2013-09-21 Thread Martin Kersten
name? Cheers, Martin (Kersten) 2013/9/20 Thiago H de Paula Figueiredo > On Fri, 20 Sep 2013 18:48:57 -0300, Dmitry Gusev > wrote: > > And yes, strictly speaking, this will make the document invalid, because >> it violates specification. >> But in practice things w

How to best construct and express this service?

2013-09-21 Thread Martin Kersten
then the SessionSource idea. The decomposition on the teardown of the tapestry application requires to deal with certain kind of listeners. What is the best service to add the listener too? Thanks in advance, Martin (Kersten)

Re: Lets fix CommitAfter, Please!

2013-09-07 Thread Martin Kersten
y to do some basic stuff for a GWT frontend. But this was inhouse. Now this is a public site. So no such fun. Fix it, please. The additional commits wont happen while changing three lines of code in the 5.1 version ok now its stripped down. Cheers, Martin (Kersten) PS: Dude I never bagged tha

Re: Lets fix CommitAfter, Please!

2013-09-07 Thread Martin Kersten
at discuss the steps on the issue https://issues.apache.org/jira/browse/TAP5-2159 and coordinate the code. So I dont need to add this code to my projects and tell clients about this flaw when they ask what this is. It is ridiculous to have something that broken in a framework like tapestry. Cheers, M

Lets fix CommitAfter, Please!

2013-09-06 Thread Martin Kersten
to do). So please, give me a call and I will commit this and this issue is gone once and for all. I cant stand Tapestry to be flawed this way. Just give me a call and we get this done in a evening. I will do most of the work so go ahead. This is free as in free. Cheers, Martin (Kersten)

Re: Use of PageRenderLinkSource in a scheduled job

2013-09-06 Thread Martin Kersten
Thanks barry, this is a good advice. I will give it a try :) Cheers, Martin (Kersten) 2013/9/6 Barry Books > I make all of my batch jobs Tapestry pages and use Hudson scheduled tasks > to access them. This give you more control, job history and email > notifications on failu

Re: How to run my application on a server

2013-09-05 Thread Martin Kersten
, Martin (Kersten) 2013/9/5 Will N. > > Hi Ben, > thanks for the reply. Actually, i already have a server where i can and > will upload my app to. The question is more how to do it(step by step) or > what needs to be done to make it work on a server. Is Jetty recommandable >

Re: Fwd: Tapestry folders question

2013-09-03 Thread Martin Kersten
Hi Sem, whenever you create abstract page base classes and dispatch to other pages in the process you are most likely doing something not page related. Look at the request handling of tapestry. From what I understood, I suggest taking a look at the request filter and provide one. For the I hav

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Martin Kersten
Lance talked about that this very same approach can be used to bind atmosphere into the picture. This library would provide socket.io support which others on this list claimed to have used successfully (check the archive and search for atmosphere). 2013/9/3 Boris Horvat > I am using it and I ca

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Martin Kersten
It wont make it into 5.4. Mr Ship talked about it back some time. You might want to take a look Art athmospere. You should be able to include it into Tapestry following the example oft cometd. This will bring you socket.iosupport which should you bring everything for Server side push . Am Dienstag

Re: Book proposal withdrawn :-(

2013-09-03 Thread Martin Kersten
ion. I > don't know how feasible this is to you, and unfortunately as a student > i'm not rich so alone I am not going to be 'paying anyones bills'. > However if you find that others are in the same boat, who knows. > > Thanks, > Steve > > On 24 August 2013 2

Re: Is it possible to get a new Hibernate session and

2013-09-03 Thread Martin Kersten
@Thiago I am absolutely correct here. The LazyLoadingException is indeed resulting from a Transactional problem. The lazy loading has to be done inside the very same transaction unless you reattach the entity for the next transaction. On reattach hibernate reassures the entity has not changed by l

Re: Is it possible to get a new Hibernate session and

2013-09-02 Thread Martin Kersten
John, if I understood you correctly you expect the session to be still alive when hibernate answers a action request in order to render a new response? If this is the case then the session is already gone. For each request a new session is born and closed after the rendering phase is completed. Do

Re: Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-30 Thread Martin Kersten
I didnt started the project I am only maintaining it. I would love to donate this code since this is so dangerous. I wont think about the money this might have cost to find these bugs in a live system. Especially if the database gots mixed up over these. But you are right annotating actions and pa

Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-29 Thread Martin Kersten
I noticed a new problem with the hibernate module. Currently it is completely correct to use a session outside of a given transaction since Tapestry starts a new one. The coworker did following things: service.createUser(); service.createUserProfile(); works. So now it was my turn so I used th

  1   2   >