[JBoss Seam] - Re: Seam jBPM: use annotation or pages.xml to get next task?
by avbentem
"petemuir" wrote : assuming the actor has only one task assigned is a *big* one
Of course, and indeed I'm not assuming an actor only has a single task assigned. So, for example, when a human actor logs into some website then indeed a list of tasks will often be very appropriate.
However, when a human actor starts a new process, then I think often a single task will be activated and almost immediately assigned to that very same actor. Likewise, when assigning a specific task of some existing process to the current actor, one in fact knows exactly what task is to be performed. The actor wants to take control of that task, so I think often the actor also wants to start working on the task, and wants to be taken to the task-specific page to get the job done.
And above all: I'm not saying that tasks should always be auto-started. But if the application is such that (some) tasks should be auto-started, then I wonder what's the cleanest, most Seam-like way to get it implemented.
Thanks,
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030551#4030551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030551
19Â years, 1Â month
[Testimonials] - Re: Migration from Weblogic to JBoss 4.0.5
by prakash.dumbre
Thanks for replay
When i deployed our ear file, the server takes following
jndi name .
15:18:22,793 INFO [ProxyFactory] Bound EJB Home SecurityService' to jndi 'SecurityService'
but i have write the following jndi name in jboss.xml then how it takes "SecurityService" as jndi name
<enterprise-bean>
<ejb-name>SecurityService</ejb-name>
<jndi-name>com.cedera.server.user.ejb.SecurityService</jndi-name>
</enterprise-bean>
and ejb-jar.xml
<ejb-name>SecurityService</ejb-name>
com.cedera.server.user.ejb.SecurityServiceHome
com.cedera.server.user.ejb.SecurityService
<ejb-class>com.cedera.server.user.ejb.SecurityServiceEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
This is all for SecurityServiceEJB bean
Now i have tested this jndi name in test jsp page the jsp code is following
<% Connection conn;
Context ctx = new InitialContext();
EJBHome home = (EJBHome) ctx.lookup("SecurityService");
out.println("Connected to JNDI : " + home );
%>
Then it gives following result.
Connected to JNDI : SecurityServiceHome
Is it mean its work fine. it return SecurityServiceHome object.
my jndi lookup is
private static EJBHome lookupHomeInterface(String jndiName)
throws CederaException
{
Context ctx = null;
EJBHome home = null;
try
{
System.out.println("The JNDI Name is:" + jndiName );
ctx = EJBUtil.getInitialContext();
home = (EJBHome)PortableRemoteObject.narrow(ctx.lookup(jndiName), javax.ejb.EJBHome.class);
System.out.println("The JNDI Name is:" + jndiName);
}
catch(NamingException ne)
{
}
return home;
}
after getting home EJBHome object i have to pass it to following method
javax.ejb.EJBHome home = EJBHomeFactory.getHomeInterface("com.cedera.server.user.ejb.SecurityService", false);
SecurityServiceHome secHome = (SecurityServiceHome)PortableRemoteObject.narrow(home, com.cedera.server.user.ejb.SecurityServiceHome.class);
SecurityService secService = (SecurityService)PortableRemoteObject.narrow(secHome.create(), com.cedera.server.user.ejb.SecurityService.class);
Here i have facing following error when i am accesing login page.
java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at com.cedera.util.GetRemoteInterfaces.getSecurityService(GetRemoteInterfaces.java:360)
Please help me to solve tis issue
regards,
Prakash
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030548#4030548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030548
19Â years, 1Â month
[JBossWS] - Re: beginner needs help
by vitor_b
Hello
Thank you for your reply.
I haven't tried your solution, since i created ant task, which generates mapping and wsdl files for me. With these files my web service (even with more complex input and output) works fine.
And i didn't have to add these tags. Maybe that was becouse of my version of jbossws (1.4) but I'm really not sure. I only had to create wscompile-config.xml file.
The problem described in my first post was occured becouse i created these files by my hand. I did it becouse i need to understand every aspect of creating these files.
And the last thing: i've seen webservice with extremally complex input and output, but someone else created it.
Best regards
vitor_b
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030545#4030545
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030545
19Â years, 1Â month
[JBoss Seam] - Re: Integrate user defined Resources (suggestions needed)
by baz
Hello,
i tried to follow your advise.
But after starting the app i get this exception:
11:26:34,437 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: error while reading /WEB-INF/components.xml
| at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:130)
| at org.jboss.seam.init.Initialization.<init>(Initialization.java:81)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
| at org.apache.catalina.core.StandardService.start(StandardService.java:450)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:211)
| at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:126)
| ... 17 more
| 22.03.2007 11:26:34 org.apache.catalina.core.StandardContext start
| SCHWERWIEGEND: Error listenerStart
This is because i have not added the @Install annotation to the bean.
The corresponding code (the same in current cvs and seam 1.2.0)Patch1 in Initialization.java looks like
if ( nameAnnotation!=null && nameAnnotation.value().equals(name) )
| {
| Install install = clazz.getAnnotation(Install.class);
| if ( install.value() )
| {
| className = null;
| }
| }
|
If there is no @Install annotation the value of install is null and hence the npe.
After adding the @Install annotation i getCaused by: org.jboss.seam.RequiredException: In attribute requires non-null value: authorizationBean.protocolTemplate
| at org.jboss.seam.Component.getValueToInject(Component.java:1887)
| at org.jboss.seam.Component.injectAttributes(Component.java:1336)
| at org.jboss.seam.Component.inject(Component.java:1163)
|
when trying to inject my bean with @In.
But @AutoCreate is set and i have added auto-create="true" to the definition
Here is the components.xml fragment
<baz:protocol-template file-name="meinFile" auto-create="true"/>
|
What to do next?
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030541#4030541
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030541
19Â years, 1Â month