[JBossWS] - Question about webservice returning array with nillable=fals
by fheldt
I've got a problem with a webservice and no idea how to solve this. Maybe someone can give me a hint:
Java Webservice snippet:
| @WebMethod
| public Integer[] GetSteps(String ugid) {
| Session session = (Session) em.getDelegate();
| List<?> list = session.createSQLQuery("SELECT QVZAHL FROM MQVAL WHERE QVUGRP=:ugid AND QVSTAT<>'*'")
| .addScalar("QVZAHL", Hibernate.INTEGER)
| .setString("ugid", ugid)
| .list();
| return list.toArray(new Integer[list.size()]);
| }
|
Now i want to use this in a C# .NET project, it generates this
| public System.Nullable<int>[] GetSteps(string arg0) {
| object[] results = this.Invoke("GetSteps", new object[] {arg0});
| return ((System.Nullable<int>[])(results[0]));
| }
|
As you see, it generates a function returning an array of nullable ints.
The question is: how can i change the Java webservice so that the elemnets of the array are nillable=false. Is there any annotation to do this?
Thanks in advance for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106634#4106634
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106634
18 years, 8 months
[JBoss jBPM] - Re: Multiple JBPM engines on one single JBoss instance
by bfillon
I've made some basic tests with two ears containing :
- jbpm.war
- hibernate.cfg.xml
- jbpm.cfg.xml
Let's say ears are called app1.ear and app2.ear. They both contain the same structure and files and hibernate.cfg.xml files use distinct JNDI datasources defined in jbpm-ds.xml.
What i see when starting JBoss and hot-deploying applications one by one is the following :
- I deploy app1.ear and application starts correctly and JBPM objects are mapped through Hibernate using config information for datasource 1
- I deploy app2.ear and application starts correctly but JBPM objects are not mapped a second time using config information for datasource 2. This results in app2.ear using processes and definition from JBPM database 1...
That's why i was asking myself if such a scenario is possible with JBPM.
Any idea ?
Regards,
Benoit
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106619#4106619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106619
18 years, 8 months
[JBoss Tools (users)] - Re: Problem controlling and deploying to JBoss AS
by max.andersen@jboss.com
I think we fixed this bug in the latest build so please try that.
Otherwise go to jboss server view and look in the event log for any messages that might explain why it is not being deployed correctly.
To set the various settings used when launching/stopping/stop-args right click the server and Edit launch configuration (or double click the server and click the edit launch configuration in the opened form)
We simplified the setup in 2.x by just using the same start/stop arguments for start/stop/twiddle.
...but looking at the code right now there might actually be an issue about JNDI port - how did you specify this ? C
urrently the code looks it up against the server and thus *should* be getting the current JNDI port - but it might be different depending on how you specified that jndi port. Let us know ,)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106617#4106617
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106617
18 years, 8 months