Xebia

Blog Xebia France

J2EE, Agility and SOA

July 29th, 2009

Spring Flex BlazeDS Integration

Recently, during an intervention on an application Flex, I was confronted with a problem of migration of a version of the bookshop Spring BlazeDS Integration (passage of version 1.0.0. RC2 in 1.0.0. M2). This bookshop allows the shape of BlazeDS across Spring in a simplified way. I wanted to configurer a call to a service Popular dance in Remoting.

To declare your service Remote, the following lines must be added in your applicationContext :

<bean class = "org.springframework.web.servlet.handler. SimpleUrlHandlerMapping">
  <property name = "Mappings">
     (worth)
       / * = mySpringManagedMessageBroker
     </worth>
  </property>
</bean>

<! - Send requests in the "message broker"->
<bean class = "org.springframework.flex.servlet. MessageBrokerHandlerAdapter"/>

<! - MessageBroker of BlazeDS->
<bean idem = " MySpringManagedMessageBroker " class = "org.springframework.flex.core. MessageBrokerFactoryBean"/>  

<! - Service myService->
<bean idem = " MyService " class = "com.xebia.impl. MYSERVICEIMPL"/>

<FLEX:remoting-destination message-broker = " mySpringManagedMessageBroker " destination - idem = " MyServiceDest " ref = "MyService"/>

As well as the reference to the file xsd : http://www.springframework.org/schema/flex/spring-flex-1.0.xsd

Unfortunately, in the starting of your application, you will have this error:

org.springframework.beans.factory.xml. XmlBeanDefinitionStoreException: Line 67 in XML document from ServletContext resource [/WEB-INF/classes/applicationContext-service.xml] invalid simple percentage; ] is invalid;
    exception nested org.xml.sax simple percentage. SAXPARSEEXCEPTION: cvc-complex-type.2.4.c: Strict The matching wildcard simple percentage, drank 'flex:remoting-destination ' no declaration can be found for element..
  at org.springframework.beans.factory.xml. XmlBeanDefinitionReader.doLoadBeanDefinitions (XmlBeanDefinitionReader.java:390))

However it worked perfectly with the previous versions of Spring BlazeDS Integration...

Read the continuation of this article

July 27th, 2009

Review of the papers Xebia

Review of the papers Xebia
The review of the papers of actuality Popular dance / weekly J2EE offered by Xebia.

RIA

The corner of technology

Ev nements of our community in France and abroad

Read the continuation of this article

July 16th, 2009

Persistence in Google App Engine (Left one: The datastore)

Review of the papers Xebia
Google App Engine (GAE) for Popular dance, taken out recently, offers a solid offer of accommodation of server of applications Popular dance / JEE. This solution of Cloud Computing is conceived as platform ace has service : GOOGLE gives complete facilities, as well as environment to accommodate application. App Engine offers so many services, a system of database of which notably, called datastore (based on GOOGLE Big Table). The management of persistence is accomplished by ORM DATANUCLEUS, who supports realisation JDO and JPA.

I am succinctly going to introduce you the functioning of the datastore. All over his nature, he imposes strong pressures, which require to see again the way it models data and of manages persistence in its application.

Read the continuation of this article

July 13th, 2009

Review of the papers Xebia

Review of the papers Xebia
The review of the papers of actuality Popular dance / weekly J2EE offered by Xebia.

RIA

SOA

The corner of technology

Ev nements of our community in France and abroad

Read the continuation of this article

July 7th, 2009

Xebia recruits!

Xebia follows the development and recruits developers, technical experts and architects to accompany his clients and to intervene on the agile plans.

We search professionals, juniors or seniors, enthusiasts of technologies, curious, having the taste of distribution and the desire to advance at the same time in technical and human domains.

Do not hesitate to contact us across the form of contact or directly at address recrutement@xebia.fr.

You also have the possibility of exchanging freely with one of our consultants in order to better connaitre us: Meet a consultant Xebia.

 

contact a consultant                      send your CV

 

July 6th, 2009

Review of the papers Xebia

Review of the papers Xebia
The review of the papers of actuality Popular dance / weekly J2EE offered by Xebia.

Actuality editors / SSII

RIA

The corner of technology

Ev nements of our community in France and abroad

Read the continuation of this article

July 6th, 2009

National Inquiry Agile Methods of FRENCH SUG

French Scrum User Group

SCRUM User Group France, organ affiliated to SCRUM ALLIANCE, led, during two months, a national investigation, opened to all, through its site (www.frenchsug.org) to collect qualitative and quantitative data on adoption in France of the agile methods most used by those who decided to borrow the way of agility.

To download the results of this inquiry, follow following link.

July 3rd, 2009

Tapestry 5 vs. Wicket

Put in the loft shape XML and IPA - INTERNATIONAL PHONETIC ALPHABET J2EE, here is bet which tries to raise orientated frameworks components. To attain this laudable purpose: to simplify the life put on edge by the developer and thereabouts even to save someone of its hair, XML is replaced with code Popular dance and the IPA - INTERNATIONAL PHONETIC ALPHABET J2EE is hidden in the entrails of the framework. Pages become objects Popular dance linked to templates, to whom are added of r utilisables components (if, yes). Components are no more and no less other objects Popular dance linked to templates. Requests, as for them, become events treated by pages and components.

Here is as a matter of principle of this approach which seems to have fine weather in front of her. Natural emergence or required strategy, Apache foundation, never mean with money of solutions, offers us frameworks two components: Tapestry 5 and Wicket. Then how to choose? The best still is to make his own idea by testing them both. We agree, nothing will ever replace the effectiveness of the prototypage. It however does not prevent from making a shortlisting based on some points of strategical comparisons. Here is therefore an article to help you to make the best choice; to know the choice which will answer the best needs and environment of your plan.
Although adopting both programming web orientated compromising, both plans are impregnated with a philosophy and with an objective different. Main purposes of Wicket are:

  • Pages and statefull component
  • Programming in Swing
  • Strict separation enters code and template

For Tapestry 5, objectives differ:

  • Optimise use CPU and memory
  • Simplify the creation of components

Attention! These are there objectives on which both plans are focalized. What does not mean that they are exclusively interested in it. Wicket supports components well without state, it is not just the main purpose. As well as Tapestry supports development web entirely in object Popular dance.

They show common purposes, also, as to be orientated Pojo and to eliminate shape XML with the pattern Convention Over Configuration.

Read the continuation of this article


Defence Colis e - 10/12, avenue of The Ark
92419 Courbevoie Cedex

T l : +33 (0) 1 46 91 76 16
Fax : +33 (0) 1 46 91 88 00
E-mail : info@xebia.fr