[FOSDEM'12] A taste of FOSDEM

February 13, 2012

Ref: Heiko Rupp – http://pilhuhn.blogspot.com – http://vimeo.com/36577369
Ref: http://www.fosdem.org/2012/

Best Regards
Frederic

I am going to do “Open the Code to Students” presentation @ Louvain-li-Nux, Louvain-la-Neuve, October 2011.
If you or your school, university are based in BeNeLux and are interested by this presentation, just let me know and I will try to arrange a Meeting for you.

BR
Frederic ;)

Dear *,

I am going to do  “RHEL On System Z” presentation @  Total Solution Event for System z, Brussels, September 28-30, 2011.
If you or your company are based in BeNeLux and are interested by this presentation, just let me know and I will try to arrange a Meeting for you.

BR
Frederic ;)

Ref : http://www.redbooks.ibm.com/redbooks.nsf/pages/TSEzBE2011?Open


Dear *,

I am going to do the “Passport To The Essential” presentation in Belgium and Luxembourg during September.

That presentation introduce the executive audience to the Cloud – Definition, Vision, Strategy, Advantage, etc… – in 15min or more if requested.

If your company or you are based in BeNeLux and are interested by this presentation, just let me know and I will try to arrange a Meeting for you.

BR
Frederic ;)


Dear *,

Well, I am preparing a talk about “Open source software licenses” for the University of Liege – Belgium -.
Do not ask me it yet cause it is not finished. Normally, I should publish it in December 2011.

If your company or you are based in BeNeLux and are interested by this presentation, just let me know and I will try to arrange a Meeting for you.

BR
Frederic ;)

Dear *,

Well, I am going to do some presentations as Fedora Ambassador with the help of the Louvain-li-Nux Team @ Louvain-la-Neuve probably in October or November 2011.

For instance, I plan to do an introduction about Blender – see picture – and Inkscape . I have just started the presentation so do not ask me to send you it yet cause it will be difficult for me.

Anyway, I will post the entire presentation in the future via my Blog – Probably in November or December -

In case of you would work with Blender in Belgium – professionally speaking – , I would be interested to be in contact with you in order to have ROE and maybe do the talk together – if you are interested obviously.

Ref : http://www.louvainlinux.be/

http://www.blender.org/

BR

Frederic

Dear *,

On August 25th we are organizing a special technical afternoon session for our customers and partners. Red Hat can help customers plan their IT infrastructure – from Open Source Software to Virtualization, Cloud Computing and much more. This technical session will inform you about Red Hat Enterprise MRG, CloudForms and JBoss as a Fabric (Openshift). It will also provide you with the possibility to discuss technical issues with Red Hat experts and your peers.

MRG Used by many financial institutes, Red Hat Enterprise MRG is a next-generation IT infrastructure incorporating Messaging, Realtime, and Grid functionality. It offers increased performance, reliability, interoperability, and faster computing for enterprise customers.

CloudForms CloudForms redefines the IaaS cloud market by incorporating both comprehensive application lifecycle management and the ability to create integrated clouds from the broadest range of computing resources with unique portability across physical, virtual, and cloud computing resources.

JBoss as a Fabric (Openshift) At Red Hat, we have been working hard towards a broad and open cloud stack that covers everything from IaaS through PaaS to SaaS. Among these, PaaS will likely be of most interest to the JBoss developer. But what exactly is this “platform”? What am I, as a developer, going to code against? And what am I, with my operator hat on, going to monitor and manage?

We will close this meeting with networking drinks and snacks.

Registration Join us for this exclusive technical session. Spaces are limited so register today to ensure your place. Please send an e-mail with your contact details to redhat@artdcom.com.

We look forward to meeting you on August 25th!

Rem : You can register at the following URL Link : Red Hat Technical Session Luxembourg

BR

Frederic ;)

Dear *,

I am going to do the “CloudForms” presentation in Luxembourg on the 25th of August 2011.
If your company or you are based in BeNeLux and are interested by this presentation, just let me know and I will try to arrange a Meeting for you.

BR
Frederic ;)

 
 
 
 
 

 

 

Dear *,

Here was the problem. One our client decided to not use Seam and do everything by himself. – Why reinvent the wheel ? -

Well, so he had an issue with the web page access which needs to have credentials. They were accessible by everyone if you knew the URL.

So the solution was to use servlet filter:

So create the Authentication filter implementation  named Authentication.java for instance :

package com.jboss.eas.project;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class Authentication implements Filter {
private FilterConfig customedFilterConfig;

public void doFilter(ServletRequest req, ServletResponse resp,FilterChain chain) throws IOException, ServletException {

if (((HttpServletRequest)req).getSession().getAttribute(Login.AUTH_KEY) == null) {
((HttpServletResponse)resp).sendRedirect(“../Non_Authorized_login.xhtml”);
} else {

chain.doFilter(req, resp);
}
}

public void init(FilterConfig customedFilterConfig) throws ServletException {
this.customedFilterConfig = customedFilterConfig;
}

public void destroy() {
customedFilterConfig = null;
}
}

Then create a login bean or adapt yours – e.g. here Login.java -  :

package com.jboss.eas.project;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class Login {
public static final String AUTH_KEY = "username";
private String username;
public String getUsername() { return username; }
public void setUsername(String username) { this.username = username; }public boolean isLoggedIn() {
return FacesContext.getCurrentInstance().getExternalContext()
.getSessionMap().get(AUTH_KEY) != null;
}public String login() {
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(
AUTH_KEY, username);
return “true”;
}public String logout() {
FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
.remove(AUTH_KEY);
return null;
}
}
 
Then add the following stanzas in your web.xml file :
 
<filter>
  <filter-name>Authentication</filter-name>
  <filter-class>com.jboss.eap.project.Authentication</filter-class>
</filter>
<filter-mapping>
  <filter-name>Authentication</filter-name>
  <url-pattern>/Authorized_Web_Pages_Access_Directory_Path/*</url-pattern>
</filter-mapping>

BTW, the “Authorized_Web_Pages_Access_Directory_Path" is the directory which contains all your protected web pages.

Then create a Error redirection web page in case of an access to a web page without credentials  – here Non_Authorized_login.xhtml -

<html>
<head>

You do not have access to this page. :( <p></p> You must be registered !

</head>
</html>
 
Finally create your xhtml or jsf page – here AuthenticatedLogin.xhtml -
 
<f:view>
 <h:form> Username:
  <h:panelGroup rendered="#{not login.loggedIn}">
    <h:inputText value="#{login.name}" />
    <h:commandButton value="login" action="#{login.login}" />
  </h:panelGroup> <h:commandButton value="logout" action="#{login.logout}" rendered="#{login.loggedIn}" />
 </h:form>
</f:view>
 
Here should be the result when you try to access a page without successful logged in using its URL  :

BR

Frederic ;)

Dear *,

Yesterday someone asked me how to include  javax.servlet-3.0.jar in his JBoss AS 7 Project in using Maven.

My answer was to go to the JBoss community repository web interface – see URL below -
and search for the “servlet-api” then insert in his project’s pom.xml the follwoing content under the <dependencies></dependencies> stanzas :

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.0</version>

<scope>provided</scope>

</dependency>

Rem : https://repository.jboss.org/nexus/index.html

BR

Frederic ;)

Follow

Get every new post delivered to your Inbox.

Join 25 other followers