JBoss Brasil

Comunidade JBoss Brasil

Este é o espaço para a comunidade brasileira de JBoss, que é o JBUG Oficial do Brasil.

Mensagens de blog

Marcelo Mrack

LM2 Consulting no FISL 2009, em Porto Alegre

Postado por Marcelo Mrack em 29 junho 2009 às 3:36

Marcelo Mrack

JIRA 4, que venha logo

Postado por Marcelo Mrack em 23 junho 2009 às 19:26

Mauro Mattos Vieira

Uso da Solução Exo Platform

Postado por Mauro Mattos Vieira em 12 junho 2009 às 15:57

Marcelo Mrack

Framework DTOptmizer disponibilizado

Postado por Marcelo Mrack em 4 junho 2009 às 2:28

Paulo Jerônimo

Hackeando o JBoss AS

Postado por Paulo Jerônimo em 30 maio 2009 às 0:27

OSNOR MÛRES

MENSAJEIROS DE DEUS

Postado por OSNOR MÛRES em 29 maio 2009 às 15:35

Edgar Silva

Ótimo Artigo sobre JBoss Seam

Postado por Edgar Silva em 20 maio 2009 às 15:51

Marcelo Mrack

RESTFul via Super Pipes

Postado por Marcelo Mrack em 20 março 2009 às 3:10

Marcelo Mrack

A Maldita Anotação @LocalBean

Postado por Marcelo Mrack em 17 março 2009 às 2:06

Notícias JavaFree

 

Fórum

Maicon Rodrigo Keller

Dúvidas JBOSS...

Iniciado por Maicon Rodrigo Keller 1 dia atrás.

Maicon Rodrigo Keller

Dúvidas JBOSS...

Iniciado por Maicon Rodrigo Keller 1 dia atrás.

Maicon Rodrigo Keller

Fazer um select usando Jboss

Iniciado por Maicon Rodrigo Keller 3 Jul.

Marcio Ballem

É possível a comunicação entre 2 JBOSS ??? 2 respostas 

Iniciado por Marcio Ballem. Última resposta de Marcio Ballem 3 Jul.

Renata

Erro, Hello World não funciona 16 respostas 

Iniciado por Renata. Última resposta de Roan Brasil Monteiro 3 Jul.

Célio Vasconcelos Lima

JBossESB - Dúvidas

Iniciado por Célio Vasconcelos Lima 3 Jul.

Eduardo Ribeiro Brilhante

Geração de relatórios em pdf muito lenta

Iniciado por Eduardo Ribeiro Brilhante 2 Jul.

Taciano Leles Gomes Fonseca

JBOSS acessando Oracle RAC 2 respostas 

Iniciado por Taciano Leles Gomes Fonseca. Última resposta de Taciano Leles Gomes Fonseca 2 Jul.

Yuri de Oliveira Braz

Trocar Imagem do Jboss 3 respostas 

Iniciado por Yuri de Oliveira Braz. Última resposta de Edgar Silva 2 Jul.

Luciano Borges

Erro no Deploy do jboss-seam.jar 10 respostas 

Iniciado por Luciano Borges. Última resposta de Roan Brasil Monteiro 2 Jul.

Seja bem vindo ao JBUG(JBoss User Group) oficial do Brasil

Este é o espaço oficial da comunidade brasileira de JBoss, você como mebro poderá fazer parte de um dos Grupos, criar outros grupos, e assim criar comunidades para postar perguntas, respostas, além de integrar com outros usuários de JBoss que falam português.

Aqui você pode:
a) Postar e Responder Perguntas
b) Criar ou associar-se aos Grupos que são comunidades por assuntos
c) Fazer novos amigos
d) Conhecer Empresas que usam projetos JBoss
Aproveite, o associação é gratuíta e leva menos de 1 minuto para fazê-la.


Comunidade JBossBrasil.ORG


Comunidade foi lançada oficialmente em São Paulo no último dia 21/01/2008.


Para quem foi, por favor, deixe seu comentário aqui:

http://jbossbrasil.ning.com/forum/topics/lancamento-do-jbossbrasilorg

Nosso projeto Embaixadores JBoss.ORG já possui seus primeiros membros selecionados, conheça-os aqui.


JBoss.ORG

JPDL xml extensibility


As many of you might know, jBPM is extensible in many ways. You can

  • in the most low level form use the pvm to develop your own processlanguage.
  • extend nodes by overriding the implementations and adapt hibernate mappings
  • create custom taskcontrollers
  • Implement node behviour by putting a class reference on the ‘node’ element
  • implement delegation classes like actionhandlers and assignmenthandlers

What many of you probably do not know is that the processdefinition.xm file besides being parsed is just stored in the database as well and it is very easy to retrieve

ProcessDefinition processDefinition = jBPMContext.getProcessInstance(pid).getProcessDefinition();
FileDefinition fileDefinition = processDefinition.getFileDefinition();
InputStream inputStream = fileDefinition.getInputStream("processdefinition.xml");

Converting this to xml would be the next step so you can have real access to it (XmlUtil being a jbpm class)

Document document = XmlUtil.parseXmlInputStream(inputStream);
Element documentElement = document.getDocumentElement();

Now what could you do with this? Well with access to each element via DOM or XPath, a lot. First of all, the jBPM3 console uses this same concept to read the forms.xml file that contains the mapping from tasknames to form files and reads the xhtml form files from the database this way. It would e.g. not be difficult to change this to use a form attribute on a task element instead of using the forms.xml file

<start-state name="Create new web sale order" >
<task swimlane="buyer" form="form.create.xhtml"/>
<transition to="Evaluate web order" />
</start-state>

This is comparable to what jBPM4 will use. You would not gain much doing this in jBPM 3 since you’d have to do this manually in the gpd.
What else? Well, some of you might remember that jBPM 3.0 it was I believe had the option to automagically generate the forms based on the variables that were present in the task.


<start-state name="Create new web sale order">
<task swimlane="buyer">
<controller>
<variable name="item" mapped-name="Item" access="read,write" />
<variable name="quantity" mapped-name="Quantity" access="read,write" />
<variable name="address" mapped-name="Address" access="read,write" />
</controller>
</task>
<transition to="Evaluate web order" />
</start-state>

Would have generated a form. But *not* like the one in the jBPM 3.2 websale example. The major difference being that the custom form in the example contains code to specify that the quantity input should be an integer

<h:inputText value="#{var['quantity']}" converter="javax.faces.Integer" converterMessage="The quantity must be numeric." validatorMessage="The quantity must be at least 1.">
<f:validateLongRange minimum="1"/>
</h:inputText>

Both solutions have advantages but also the disadvantage that it did not support the functionality of the other and both could not take the type into account (since it could not be specified at all) making every input a string . The design-time generated forms at least let you adapt those manually. Loosing those changes when a variable was added and the form regenerated. Now you know jBPM is extensible in the xml definition, putting a type on the variable would have been an option without changing the persistence class of the variable instance. Creating a template with conditional rendering, a custom jsf var list bean and some small other changes, would have given you the automagically generated form which does take the type into account:

<jbpm:dataform>

<f:facet name="header">
<h:outputText value="#{taskName}"/>
</f:facet>

<!-- TASKFORM ROWS -->
<c:forEach items="#{vars}" var="var">

<jbpm:datacell>

<f:facet name="header">
<h:outputText value="#{var.name}"/>
</f:facet>

<h:inputText value="#{var.value}" rendered="#{var.type == 'String'}"/>
<h:inputText value="#{var.value}" rendered="#{var.type == 'Integer'}" converter="javax.faces.Integer" converterMessage="Must be numeric."
</h:inputText>
<rich:calendar value="#{var.value}" rendered="#{var.type == 'Date'}"/>


</jbpm:datacell>

</c:forEach>

</jbpm:dataform>

This is just one example. You could also have changed the composite access attribute to the more logical separate ‘readOnly’ and ‘required’ attribute (the write only never made real sense to me in real life) and if you continue, why not put validation patterns in there, error messages, and what more. In the end you could almost as well have put the .xhtml form fragement in there as a nested element (you could… I’m not kidding).

Personally, I never went this way, not even putting in just the type in the variable definition. Then why this post you might ask. Well, I just wanted to describe the  concept of this extensibility and I did use it but in a completely different way. More on this in a later post

JBoss Open Choice, Part 1 - JBoss Enterprise Web Server

It’s July 4th and we have an extended weekend in the US which is a good enough excuse to catch up on some blogging; at least until the Strawberry Margaritas start flowing. At Java One this year we announced an initiative called Open Choice which I blogged about previously. Fundamentally Open Choice is about broadening our footprint and giving customers what they want and moves us closer to supporting the whole applications infrastructure tier rather than just parts.

Open Choice isn’t some big, far-into-the-future vision thing it’s something we’re doing now. This year. Product-wise it consists of four offerings (where previously there was only one) and as we release them I’ll give you my perspective on why they’re important. Unfortunately I’m already a little behind - we’ve already delivered two products out of four and the third is in Alpha moving quickly towards Beta.

So let me use this post to talk about JBoss EWS 1.0 (Enterprise Web Server). EWS is basically a packaged, certified and tested bundle of Tomcat and Apache HTTP - the industry’s dominant Java web-container and Web Server respectively. We round out the bundle with mod_jk, APR and most importantly a management agent for JBoss ON. We currently support and certify on Red Hat Enterprise Linux and Solaris with Windows coming next.

Providing JBoss ON management support is pretty important - it gives customer the ability to manage the application and web stacks easily and consistently using the same toolset. If you want to learn more - there is a free Webinar on July 14th at 2pm Eastern - more here.

The rationale for supporting Tomcat is that it is absolutely the dominant Java web-container and has become an important part of the corporate IT fabric. Tomcat has been popular for years but in the last two or three  I’ve seen it evolve into a much more strategic platform for IT. Many customer I speak with have defined two distinct tiers of functionality - essentially a full Java EE stack and a lighter-weight Tomcat platform. By supporting both the dominant Java EE implementation (JBoss EAP) and Tomcat, combined with the ability to manage from a single tool - I think we can do a much better job of satisfying a much broader customer base than our competition. Here’s an (albeit unscientific) chart from a recent survey that demonstrates this well :

Most often use Java EE containers

It’s also interesting to note that from this survey JBoss’ deployment share is more than Websphere and Weblogic combined.

OK, so JBoss EWS 1.0 is out and we have customers deployed or deploying some pretty large, strategic apps. but I’m already thinking about the next version (code named Cavalier). Some initial ideas for Cavalier are :

  • increasing platform support to include AIX, HP-UX and maybe other Linux flavours;
  • alternative Connection Pool implementations for Tomcat;
  • looking at a more recent version of Apache HTTPD;
  • possibly supporting mod_cluster.
  • soft-appliances to better support virtualized hosts.

Any other thoughts are always welcome - leave a comment or get in touch directly.

Share/Save/Bookmark

 
 

Badge

Últimas atividades

Leonardo.Batista Salgado, Célio Vasconcelos Lima, Luis Henique e mais 9 pessoas entraram em JBoss Brasil23 horas atrás
Maicon Rodrigo Keller adicionou 3 discussõesontem
Célio Vasconcelos Lima adicionou uma discussãosexta-feira
Olá pessoal, Sou novo por aqui... Estou realizando testes no "jbossesb-server-4.5.GA" 1º - É uma recomendação todos os serviços terem seu proprio jms-bus, que é uma realização do pattern point-to-point channel. Mas para que fazer isso se eu não...
Eduardo Ribeiro Brilhante adicionou uma discussãoquinta-feira
Boa Tarde, Estou com problemas de lentidão na geração de relatórios em pdf na minha aplicação. Percebi essa lentidão, depois que começei a usar https, poderia ter alguma coisa a ver? Abraços, Eduardo
Rafael Döepfer e Roan Brasil Monteiro agora são amigosquinta-feira
Yuri de Oliveira Braz adicionou uma discussãoquinta-feira
Olá Pessoal do forum gostaria de saber como faço pra trocar o icone do Jboss pelo icone da empresa onde trabalho do lado do titulo da página como o circulo vermelho na foto está destacando... obrigado!! t+
Taciano Leles Gomes Fonseca adicionou uma discussãoquarta-feira
Olá para todos Estou com um problema, e ainda não encontrei solução. Bom, após algum tempo tendo disponibilizado uma versão em produção, o sistema passa a não conseguir estabelecer conexão/transação com o banco em 100% do tempo, ou seja: ora sim (...
Rodrigo adicionou 2 discussõesquarta-feira
 

© 2009   Criado por Edgar Silva no Ning.   Crie Sua Rede Social

Badges  |  Relatar um incidente  |  Privacidade  |  Termos de serviço