[JBoss jBPM] - Re: JPDL creation by JBPM Designer
by abhilashk_cse
I wanted to use JBPM to our custom application, where we don't want to use Eclipse designer. It will be pretty heavy. So we want to design a custom JPDL designer and much of the work will be in the creation of JPDL based on user input. Probably creating an XML Bean out of JPDL schema and fill the data into bean based on user input is a better approach? Also at this point we don't have Java task Handler. So we are not worried about java classes. During deployment we can convert the xml bean to JPDL XML and package the files and deploy to server. Am i fine with this approach for a scaled down JPDL designer and deployer? Another question is that do we need to create the PAR at designer side or just a Zip file is enough?
Also I have searched for a java client for starting the jbpm process and invoking the process. Also possibly running the process. anybody please throw some light into that? any APIs to do these operations? How JBPM designer is creating the HTML pages or Seam pages from the PAR deployed? Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061584#4061584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061584
18Â years, 9Â months
[JBoss Seam] - Prevent binding of attributes during update phase
by mreuvers
Hi,
I have the following question if it is possible to prevent binding of some attributes when using the @In annotation.
For instance if you have an entity bean say 'Example' with two attributes, an id (primary key) and a description.
In a stateful session bean:
| @In
| private Example example;
|
Let's say someone will update this entity in a form, normally you would only allow the description to be updated (as the PK should never change). With some spoofing however its fairly easy to also submit the primary key along with an incorrect value (which may cause serious security issues).
My question is, is there a way to prevent certain attributes (such as primary keys or others) never to be updated when the update is done on the 'Example' instance. So basically I am looking for a way to always prevent updating some attributes (even if spoofed in a submit).
Thanks a lot!
Regards Martijn
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061581#4061581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061581
18Â years, 9Â months
[JBoss Seam] - Asynchronous Problem
by ellis2323
Hello,
I need an asynchronous process in my web application. So i use the @Asynchronous annotation
to do the job but i need a mean to inform my Stateful EJB that the job is done.
1. First, i use the @Observer and RaiseEvent.... Without sucess because of Asynchronous annotation
2. Second, i use jms to send a message when the job is done but my MDB is stateless so no acess to
my EJB stateful.
3. Third, same technique but i send in the message My EJB Stateful (Sorry), but it crashed due to
some transactions problems.
So, is there a solution ? Use business context to save "job done" and use it in my EJB stateful
to see that there is an event?
Thanks for your help.
Problem in the third scenario :
11:59:30,749 ERROR [JmsServerSession] Unexpected error delivering message org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : TOPIC.refreshTopic
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:6-11838023706871
jmsTimeStamp : 1183802370687
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:6
}
}
java.lang.ClassCastException: cannot assign instance of org.jboss.seam.intercept.ClientSideInterceptor to field org.jboss.seam.oxalya.carriocas.RefreshEvent.sessionVisuList of type org.jboss.seam.oxalya.carriocas.SessionVisuList in instance of org.jboss.seam.oxalya.carriocas.RefreshEvent
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at org.jboss.mq.SpyObjectMessage.getObject(SpyObjectMessage.java:147)
at org.jboss.seam.oxalya.carriocas.RefreshList.onMessage(RefreshList.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:116)
at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
at $Proxy202.onMessage(Unknown Source)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
at org.jboss.mq.SpySession.run(SpySession.java:323)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:613)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061577#4061577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061577
18Â years, 9Â months
[EJB/JBoss] - Seam 2: EL and anonymous classes
by thatrichard
1. I'm using the Seam2 beta with JBoss 4.2 and I am having a problem with the following expression.
Expression
| <h:commandButton id="select" value="Select" action="#{organizationEditor.select}"
| class="primary"
| rendered="#{not empty partyFinderClient and partyFinderClient.supportsSelect}"/>
|
When the expression is evaluated it throws an IllegalAccessException (see bottom). The class is anonymous, the method is public and also overrides an abstract method. Is there a reason that i cannot access methods on an anonymous class using EL?
2. Where can I get the source for jboss-el.jar? This lib is distributed with the source for JBoss 4.2 and Seam 2. I can't seem to find it among the JBoss projects.
Thanks
Richard
PartyFinderClient
| public abstract class PartyFinderClient {
|
|
| private static final String PARTY_FINDER_CLIENT = "partyFinderClient";
|
| public static void clear() {
| Contexts.getConversationContext().set(PARTY_FINDER_CLIENT, null);
| }
|
| public void install() {
| Contexts.getConversationContext().set(PARTY_FINDER_CLIENT, this);
| }
|
| public static PartyFinderClient getInstalled() {
|
| return (PartyFinderClient) Contexts.getConversationContext(). get(PARTY_FINDER_CLIENT);
| }
|
| public abstract boolean supportsCancel();
| public abstract boolean supportsSelect();
| public abstract String cancel();
| public abstract String select(Party party);
| public abstract SearchStrategy getStrategy();
| }
|
Typical subclass
| @Begin(flushMode=FlushModeType.MANUAL, join=true)
| public void findPersons() {
| PartyFinderClient client = PartyFinderClient.getInstalled();
| if (client == null) {
| client = new PartyFinderClient() {
|
| public String cancel() {
| return null;
| }
|
| public String select(Party person) {
| //Hack. Because this is being called from PartyFinder, the "registration" component is not being injected?
| Contexts.getConversationContext().set("person", person);
| return "/forms/party/person/identity";
| }
|
| public SearchStrategy getStrategy() {
| return new FindPersonStrategy();
| }
|
| @Override
| public boolean supportsCancel() {
| return false;
| }
|
| @Override
| public boolean supportsSelect() {
| return false;
| }
|
| };
| client.install();
| }
| find();
| }
|
| javax.faces.FacesException: javax.el.ELException: /forms/party/person/editor.xhtml @42,112 rendered="#{not empty partyFinderClient and partyFinderClient.supportsCancel()}": java.lang.IllegalAccessException: Class org.jboss.el.util.ReflectionUtil can not access a member of class com.sadalbari.mvanamibia.registration.RegistrationEditorBean$1 with modifiers "public"
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:373)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:880)
| at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: javax.el.ELException: /forms/party/person/editor.xhtml @42,112 rendered="#{not empty partyFinderClient and partyFinderClient.supportsCancel()}": java.lang.IllegalAccessException: Class org.jboss.el.util.ReflectionUtil can not access a member of class com.sadalbari.mvanamibia.registration.RegistrationEditorBean$1 with modifiers "public"
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
| ... 47 more
| Caused by: java.lang.IllegalAccessException: Class org.jboss.el.util.ReflectionUtil can not access a member of class com.sadalbari.mvanamibia.registration.RegistrationEditorBean$1 with modifiers "public"
| at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
| at java.lang.reflect.Method.invoke(Method.java:588)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:270)
| at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
| at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
| at org.jboss.el.parser.AstAnd.getValue(AstAnd.java:26)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| ... 48 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061568#4061568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061568
18Â years, 9Â months
[JNDI/Naming/Network] - Re: JNDI Connection Problem! jboss.bind.address always 127.0
by cjc
Thangs that works!
But the Produktion System is MS :-/ and There i have to use javaservice. Running the run.bat -b x.x.x.x works as well!
But with -Djboss.bind.address it will not workt!
This is how the registry looks:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JBOSS\Parameters]
| "JavaService Version"="2,0,10,0"
| "JVM Library"="C:\\Programme\\Java\\jdk1.5.0_06\\jre\\bin\\server\\jvm.dll"
| "JVM Option Count"=dword:00000004
| "JVM Option Number 0"="-Djava.class.path=D:\\Apps\\jboss-4.2.0.GA\\bin\\run.jar;C:\\Programme\\Java\\jdk1.5.0_06\\lib\\tools.jar"
| "JVM Option Number 1"="-Djboss.bind.address=192.168.200.210"
| "JVM Option Number 2"="-Xms256M"
| "JVM Option Number 3"="-Xmx400M"
| "Start Class"="org.jboss.Main"
| "Start Method"="main"
| "Start Param Count"=dword:00000000
| "Stop Class"="org.jboss.Main"
| "Stop Method"="systemExit"
| "Stop Param Count"=dword:00000000
| "System.out File"="D:\\Apps\\jboss-4.2.0.GA/log/stdout.log"
| "System.err File"="D:\\Apps\\jboss-4.2.0.GA/log/stderr.log"
| "Current Directory"="D:\\Apps\\jboss-4.2.0.GA\\bin"
| "Shutdown Timeout"=dword:00007530
| "Overwrite Files Flag"=dword:00000001
| "Startup Sleep"=dword:00001770
thx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061564#4061564
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061564
18Â years, 9Â months
[JBoss Seam] - @Unwrap question
by enzhao
Hi folks,
I would like to use the @Unwrap annotation in an APPLICATION scoped dataStore bean. This stateless bean mainly caches the read-only static data which would be used in the application. I'd like to learn more detail about the @Unwrap than which are already presented in the reference manual. (I build a new Seam dist everyday from the CVS, so my reference manual is always the latest.)
Here are my questions:
1. What's the difference between @Factory and @Unwrap in the following two code fragments? (from reference section 3.8)
| @Factory(scope=CONVERSATION)
| public List<Customer> getCustomerList() {
| return ... ;
| }
|
and
| @Name("customerList")
| @Scope(CONVERSATION)
| public class CustomerListManager
| {
| ...
|
| @Unwrap
| public List<Customer> getCustomerList() {
| return ... ;
| }
| }
|
The reference says
anonymous wrote :
| A manager component is any component with an @Unwrap method. This method returns the value that will be visable to clients, and is called every time a context variable is referenced.
|
Doesn't the method in first code fragment with the @Factory annotation also return a List? Is it not visible to clients?
2. The reference says:
anonymous wrote :
| An even more powerful pattern is the manager component pattern. In this case, we have a Seam component that is bound to a context variable, that manages the value of the context variable, while remaining invisible to clients.
|
What does the manager component here exactly manage? And in which situation/context is this manager component pattern bestly used? I looked at the HenHouse example, it seems useful when dealing with events which would cause value changes in the managed list.
Many thanks in advance for any enlightenment!
Regards,
Ellen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061563#4061563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061563
18Â years, 9Â months