[JBoss Seam] - Removing jaxws in ejb3-all jar
by daleth
I have two sets of code that I need to integrate. One is a web service client using XFire and the other is a SEAM 1.1 application. Turns out there is a conflict between the javax.ws.WebService annotation in the XFire library and the ejb3-all.jar.
I certainly understand that the WS code is part of JEE 5, but can I safely remove that package as long as I don't attempt to use any of those features?
Let me say that I'm almost 100% sure it's a problem with the XFire library, but I have to use the code regardless. I also understand that this might be more appropriate in the EJB3 forum but having looked at the EJB3 package they don't create an ejb3-all bundle, that appears to be a SEAM specific bundling.
So, anyways, an help on this would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995871#3995871
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995871
19 years, 4 months
[JBoss Seam] - Re: Seam And ICEFaces menubar
by Newlukai
Perhaps you should return something? And not null. Or you change the scope to APPLICATION?
Here's my menu bean:
@Stateless
| @Name("sideNavigationMenu")
| @Scope(ScopeType.APPLICATION)
| public class SideNavigationMenu implements SideNavigation {
| @In
| private FacesContext facesContext;
|
| @In @Valid
| private User user;
|
| public List<MenuItem> getPanelNavigationItems() {
| List<MenuItem> menu = new ArrayList<MenuItem>();
|
| // generate menu
|
| return menu;
| }
And the JSF:
<ui:define name="sidebar">
| <ice:form>
| <ice:menuBar orientation="vertical">
| <ice:menuItems value="#{sideNavigationMenu.panelNavigationItems}" />
| </ice:menuBar>
| </ice:form>
| </ui:define>
But I've another problem: As soon as I click on a menu item, an ICEfaces dialog pops up telling me the session is expired. What's that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995866#3995866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995866
19 years, 4 months
[JBoss jBPM] - Re: Sending Emails?
by jainer
Hi:
This is a code to send mails.. obviously you must to have your own mail jar
| package controlcorrespondencia.handlers.actions;
|
| import java.util.Iterator;
|
| import javax.naming.*;
| import javax.rmi.PortableRemoteObject;
|
| import org.apache.commons.logging.Log;
| import org.apache.commons.logging.LogFactory;
|
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
| import org.jbpm.taskmgmt.exe.TaskInstance;
|
| import com.sumset.beesoft.correo.ServicioCorreoHome;
| import com.sumset.beesoft.correo.ServicioCorreo;
| import com.sumset.beesoft.correo.CorreoVO;
|
| public class Correo implements ActionHandler{
|
| ServicioCorreoHome miServicioCorreoHome;
| ServicioCorreo miServicioCorreo;
|
| public void execute(ExecutionContext executionContext){
| String processDefinitionName = executionContext.getProcessDefinition().getName();
|
| Iterator iterTask = executionContext.getTaskMgmtInstance().getTaskInstances().iterator();
|
| while (iterTask.hasNext()) {
| TaskInstance nextTask = (TaskInstance) iterTask.next();
|
| if(nextTask.isSignalling()){
|
| long idTarea = nextTask.getId();
| String nombreTarea = nextTask.getName();
| String usuario = nextTask.getActorId();
| String asunto = nextTask.getName();
|
| try{
|
| Context context = new InitialContext();
| Object servicioCorreo = context.lookup("ServicioCorreo");
| miServicioCorreoHome = (ServicioCorreoHome) PortableRemoteObject.narrow(servicioCorreo, ServicioCorreoHome.class);
| miServicioCorreo = miServicioCorreoHome.create();
|
| String origen = "f-aristi(a)sumset.com";
| String destino = "jquiceno(a)sumset.com";
| String Url = "http://localhost:8080/jbpm/faces/otroLogin.jsp?idTarea=" + idTarea +
| "&usuario=" + usuario + "&nombreProceso=" + processDefinitionName;
|
| String mensaje = "<a href=\"" + Url + "\" target=\"_blank\" "+
| "title=\"Este enlace externo se abrirá en una nueva ventana\">" +
| nombreTarea + "</a>";
|
| CorreoVO correo = new CorreoVO(origen,destino,asunto,new java.util.Date(),"1",mensaje,"sistema");
| miServicioCorreo.enviarCorreo(correo);
|
| log.debug("correo enviado");
|
| }catch (Exception e){
| System.out.println("Se produjo un error en la inicialización del servicio de correo:");
| e.printStackTrace();
| }
| }
| }
|
| }
|
| private static final Log log = LogFactory.getLog(Correo.class);
|
| }
|
| <task-node name="Envio Correspondencia">
| <task name="Despachar Correspondencia" swimlane="secretaria auxiliar">
| <controller>
| <variable name="ipTTN6Comentario" access="read,write,required" mapped-name="Comentario"/>
| </controller>
| </task>
| <event type="after-signal">
| <action name="Enviar Correo" class="controlcorrespondencia.handlers.actions.Correo"></action>
| </event>
| <transition name="" to="Verificacion"></transition>
| </task-node>
|
Regards
jainer e.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995861#3995861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995861
19 years, 4 months