[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: endroes  XML
Profile for endroes -> Messages posted by endroes [14]
Author Message
Hi,

thank you for the information. Do you have additional links/information’s to start the tomcat in embedded mode?

Since several months I have JavaRebel on my TODO list. JavaRebel was tested by our student trainee. I haven’t used JavaRebel in the development process (as yet).

You have to start the JVM with an JavaRebel Agent:
Code:
-noverify -javaagent:*\javarebel.jar


After that a rebel.xml in the classpath is used to sync changes from the workplace to the JVM:

Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <application
   xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://www.zeroturnaround.com"
   xsi:schemaLocation="http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
   <classpath>
     <dirset class="c:\my_workspace\HelloWorld\ "/>
   </classpath>
 </application>
I want share some of my experience in the software development with a java webframework like Captain Casa during the development process.

Maybe someone has similar experience or further references using the following frameworks.

Currently I am using the jetty webserver during the development. However not for the frontend development with Captain Casa but also for another project. The Jetty server has a great feature, starting the server in an embedded mode. You could start the application like another java application without separate deployment tools. For the hot-deployment (JVM HotSwap), I start my application in debug mode.

Used technologies: Spring, Hibernate, Jetty

A link using the jetty server embedded in conjunction with spring: http://www.devx.com/Java/Article/42315

Another nice tool to improve the JVM HotSwap: http://www.zeroturnaround.com/jrebel

JRebel maps your project workspace directly to your running application. When you change any class or resource in your IDE, you can immediately see the change in your application, skipping the build and redeploy phases

I haven’t tested both tools with captain casa, but I think both tools could improve the development with a web framework like Captain Casa.
Hi,

do you have any experience in using spring with Captain Casa, especially spring web flow 2.

Could spring and spring web flow used with the "Captain Casa Dispatcher" and especially the "Captain Casa Workpages"? Makes it sense to use Captain Casa Workpages with Spring Webflow 2?

Greetings,
Andreas
Could i use the YesNoPopup in a synchron way? I want to open the popup an wait until the user has selected "YES" or "NO".
I want to call some initialize methods after the creation of a workpage. Is this possible using the IWorkpageLifecycleListener (or other interfaces, base classes etc.)?

For example:

AdressUI {

@overwrite
initializeAfterCreation() {
…do something…
}
We are using the CaptainCASA grid components on lot of places in our application. Now i want to create my own component to support features like add or remove buttons (used for grid rows), company style guides, additional buttons (print, data export) etc. Also i want to implement a kind of „database iteration with cursors“ etc.

So every developer could use this grid component in dialog masks.

How could i achieve this requirement with the CaptainCASA framework?

Some ideas:

1. I could implement my own JSF CaptainCASA component. Create a Component-Tag and implementation: I think this approach is difficult for the required grid component.
2. Usage of CaptainCASA page includes
3. A combination of CaptainCASA page includes and CaptainCASA components
i tested the action interceptor. works good for my purposes. good improvement of the framework! but i still have some questions:

i implemented the interceptor interface in our own dispatcher:

public class Dispatcher extends WorkpageDispatcher implements IMethodBindingListener {

...
public Dispatcher() {
...
HttpSessionAccess.setMethodBindingListener(this);
}

reactOnListenerInvokeAfter() {
...
}

reactOnListenerInvokeBefore() {
...
}

1. Every user has his own „dispatcher“ because the ManagedBean is registered in the "session" scope of JSF. The „dispatcher“ calls HttpSessionAccess.setMethodBindingListener(this) on instantiation (see ctor). Is the „dispatcher“ the right place to register the MethodBindingListener? Has every user his own MethodBindingListener in the http session scope?
I have done some research how to implement a JSF Action-Method-Interceptor.
In the JSF specification you can provide a JSF action listener implementation in the faces-config.cfg:

<application>
<action-listener>
com.lip.road.frontend.core.actionlistener.ActionMethodInterceptor
</action-listener>
</application>

This instance is create on application startup an can be accessed over the FacesContext:
event.getFacesContext().getApplication().getActionListener();

I thought this action listener must be invoked for every action request and before the action method in the backing bean was invoked.

The code in my ActionListener class is never invoked and I don't know if there is any configuration problem or maybe I'm wrong with the action-listener behavior of JSF or CaptainCASA.

Really, what I want is to intercept every backing bean method invocation in order to check some issues about security and so on.

If you know another way to do it please let me know. I have also tested to intercept the action method with the BEANMETHODINVOKER -Component. This doesn’t work because I want to retrieve in the action-listener method the called component of the ManagedBean and not the BEANMETHODINVOKER-Component:

if(! (event.getSource() instanceof javax.faces.component.UICommand)) {
(javax.faces.component.UICommand) event.getSource();
String expFullAction = comando.getAction().getExpressionString();


@see also:
http://blogs.sun.com/enterprisetechtips/entry/improving_jsf_security_configuration_with
I have integrated the SESSIONCLOSER componend in our application. I found a chapter about Beanprocessing but no chapter about the component SESSIONCLOSER. It would be nice if you could provide a hint for this component in the documentation.

If i had closed the webstart application my own SessionListener was successfully invoked but the stack trace of the tomcat shows following:

@see attached file


I want to intercept a call of an managed bean action method to do some work like security checks etc. before the method is called.

I know in JSF exists ActionListeners (called before the action phase is invoked) or PhaseListeners registered in the faces-config.cfg.

Maybe anyone has experience implementing an Action-Method-Interceptor.

It would be also a nice feature to improve CaptainCASA with a Framework-Action-Interceptor interface like:

IActionInterceptor {

peformAction(Object calledManagedBean, Method method, Object[] params …) ;
//do some reflection etc.
}

So i could do some security checks etc. before i call a action method of a managed bean
Is it possible to react on the closing event of an webstart application?

It would be possible to release server resources like http sessions, opened hibernate sessions (bound to a user session) etc.

At the moment (in our application) the user close the webstart application an resources would be releast after a server http sesion timeout (by a ServletListener). It would be nice if we can react on the closing event an release resources directly.
Hello.

The problem can be reproduce with these settings:

Systemsteuerung -> Java -> Netzwerkeinstellungen -> Browser-Einstellungen verwenden (use browser settings - IE, no proxy, not on LAN)


When I change settings to "Direktverbindung", there is no problem.


Regards




java.lang.AssertionError: Duplicate put to keep alive cache
at sun.net.www.http.HttpClient.putInKeepAliveCache(Unknown Source)
at sun.net.www.http.HttpClient.finished(Unknown Source)
at sun.net.www.http.KeepAliveStream.close(Unknown Source)
at sun.net.www.MeteredStream.justRead(Unknown Source)
at sun.net.www.MeteredStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.GZIPInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at org.eclnt.client.comm.http.DataTransfer.transferXML(DataTransfer.java:409)
at org.eclnt.client.comm.http.DataTransfer.communicateToServerSynchronous(DataTransfer.java:137)
at org.eclnt.client.page.Page.transferDataRun(Page.java:654)
at org.eclnt.client.page.Page$DataTransferRunner.run(Page.java:104)
at org.eclnt.client.page.Page.callServerRun(Page.java:636)
at org.eclnt.client.page.Page$CallServerRunner.run(Page.java:69)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.eclnt.client.page.BlockingEventQueue.dispatchEvent(BlockingEventQueue.java:82)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.eclnt.client.page.BlockingEventQueue.dispatchEvent(BlockingEventQueue.java:82)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Hello,

we encounter instability in client-server communication. The behaviour is non-related to concrete action and occurs randomly.
The error frequency is the higher, the slower the network interface is.
local -> 1%
LAN -> 10%
W-LAN/DSL -> 80%

There is a stack trace on the client-side java console!

Regards,

Andreas

 
Profile for endroes -> Messages posted by endroes [14]
Go to:   
Powered by JForum 2.1.6 © JForum Team