[JBoss jBPM] - Re: JBPM WITHOUT the starter kit
by markricard
Hi Bill,
In a nutshell, we are moving away from the J2EE (JEE) stack - but staying Java. I think that TerraCotta has it "right on the money" when it comes to how you should be developing your applications from an enterprise perspective. So having to carry around a big application server and manage it is bit 'old school'.
The current jBPM is a beast. Even when we had it working in starter kit mode, when something went wrong the "black box" was just too black. We were not sure if it was jBPM, JBoss or something else.
Would we care if jBPM required a specific directory structure to run? I think JBoss should always ask itself whether a constraint that they are imposing is something that a competing open source project can overcome. If you see other workflow engines requiring it, then ok... but I don't think they do.
We want to run a workflow engine wherever we want. We may have one instance running in Tomcat to handle presentation related workflows that would be "lighter" allowing Tomcat to do what it does best - serve up JSPs.
And we may want to run a heavier weight workflow in some standalone process on some server and expose it via a web service or even (gulp) an RMI call. We do NOT want it to require JMS as JMS in JBoss has proved to be a royal pain in the butt. And, it would be cool if the two workflow engines could work together seamlessly.
Your embedded JBoss info sounds interesting. I think you have my email so send me the info. I think you know I am a big fan of JBoss. I've been around since version 2. But times are a' changin' and you guys gotta keep it easy, slick and modular.
Hope this helps,
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029171#4029171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029171
19Â years, 1Â month
[JBoss Seam] - Re: Feature request: Fine-grained entity security
by gavin.kingï¼ jboss.com
You can definitely write a JPA interceptor which checks actual field values using equals() during an update operation. (In theory you should really use Type.isDirty() in Hibernate, but that's not portable.)
So you would require that the user annotate entity attributes with @Restrict, and imply a permission like (customer, name) from that. Then the interceptor would look at the fields annotated @Restrict and check the permission when the entity is updated.
The thing which makes me a bit skeptical of this stuff is that there would only be field-level permissions for update operations, not for read, create, delete.
I suppose you could interpret a field-level permission during create as meaning that it gets checked if it is non-null.
But read would be *very* difficult to do.
Shane, I don't see how Hibernate Validator would help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029168#4029168
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029168
19Â years, 1Â month
[JBossWS] - Re: Webservice Client consumer
by nean
sorry it seems there is somes mod for xml ...
i put it again :
?
| <definitions name="wsSiteBeanService" targetNamespace="http://wsSite/">
| <types/>
| ?
| <message name="wsSite_getDelaiProduitResponse">
| <part name="return" type="xsd:int"/>
| </message>
| ?
| <message name="wsSite_getPrixProduit">
| <part name="arg0" type="xsd:string"/>
| </message>
| ?
| <message name="wsSite_getPrixProduitResponse">
| <part name="return" type="xsd:double"/>
| </message>
| ?
| <message name="wsSite_getDelaiProduit">
| <part name="arg0" type="xsd:string"/>
| </message>
| ?
| <portType name="wsSite">
| ?
| <operation name="getDelaiProduit" parameterOrder="arg0">
| <input message="tns:wsSite_getDelaiProduit"/>
| <output message="tns:wsSite_getDelaiProduitResponse"/>
| </operation>
| ?
| <operation name="getPrixProduit" parameterOrder="arg0">
| <input message="tns:wsSite_getPrixProduit"/>
| <output message="tns:wsSite_getPrixProduitResponse"/>
| </operation>
| </portType>
| ?
| <binding name="wsSiteBinding" type="tns:wsSite">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
| <operation name="getDelaiProduit">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </output>
| </operation>
| ?
| <operation name="getPrixProduit">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </output>
| </operation>
| </binding>
| ?
| <service name="wsSiteBeanService">
| ?
| <port binding="tns:wsSiteBinding" name="wsSiteBeanPort">
| <soap:address location="http://localhost:8080/SiteMarchand-ejb/wsSiteBean"/>
| </port>
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029165#4029165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029165
19Â years, 1Â month
[JBossWS] - Webservice Client consumer
by nean
Hello i have some problems to built a client which can use web services deployed...
My config is like :
- eclispe jboss IDE 2.0.0 beta
- jboss 4.0.5 EJB3 config
- jdk 1.5_11
i deploy normaly an EJB3.0 webservice on jboss, and my wsdl is like :
anonymous wrote : ?
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
| ?
|
|
|
|
| ?
|
|
|
|
|
| ?
|
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
|
| <soap:operation soapAction=""/>
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
|
| ?
|
| <soap:operation soapAction=""/>
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
|
|
| ?
|
| ?
|
| <soap:address location="http://localhost:8080/SiteMarchand-ejb/wsSiteBean"/>
|
|
|
my client is like :
import java.net.MalformedURLException;
| import java.net.URL;
| import java.rmi.RemoteException;
|
| import javax.xml.namespace.QName;
| import javax.xml.rpc.Call;
| import javax.xml.rpc.Service;
| import javax.xml.rpc.ServiceException;
| import javax.xml.rpc.ServiceFactory;
|
| public class testWS {
|
| /**
| * @param args
| * @throws MalformedURLException
| */
| public static void main(String[] args) {
| // TODO Auto-generated method stub
| String urlstr="http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl";
| URL url=null;
| try {
| try {
| url = new URL(urlstr);
| } catch (MalformedURLException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
| System.out.println("Contacting webservice at " + urlstr);
| String ns = "http://wsSite/jaws";
|
| QName qname = new QName(ns,"wsSiteService");
| QName port = new QName(ns, "wsSitePort");
| QName operation = new QName(ns, "getPrixProduit");
|
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(url, qname);
| Call call = service.createCall(port, operation);
| try {
| Double d = (Double) call.invoke(new Object[]{"ezekiel"});
| } catch (RemoteException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| } catch (ServiceException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
| }
i imported these libraries in my classpath :
anonymous wrote :
| jre system library 1.5_11
| JbossAOP 1.3 libraries (sdk 1.5)
| J2EE 1.4 Libraries (JBoss-IDE)
| jboss ejb3 libraries
| jbossws-client.jar
And my error returned :
anonymous wrote : Contacting webservice at http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl
| Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106)
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
| at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
| at testWS.main(testWS.java:37)
ligne 37 of testWS.java is "Service service = factory.createService(url, qname);"
So is there someone who can give me a solution or my error ?
Or maybe a tips to create automaticaly the client with my configuration...
Thanks for responses, please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029164#4029164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029164
19Â years, 1Â month