[jboss-user] [JBoss jBPM] - Sending an attachment along with ws invocation

2008-01-14 Thread paoletto
Hi! i have the problem of sending an attachment along with the normal web service invocation of the bpel process.. i dont understand how to attach attachments to the invocation made with jbossws wsconsume generated client.. i examined jbossws attachment examples, but in all of them, they add a

[jboss-user] [JBossWS] - Re: WS-Attachment on jbossws

2008-01-14 Thread paoletto
googled further, and found this on axis2 documentation: | /* Sample client which sends a message with SwA type attachments */ | |public void uploadFileUsingSwA(String fileName) throws Exception { | | Options options = new Options(); | options.setTo(targetEPR);

[jboss-user] [JBossWS] - Re: WS-Attachment on jbossws

2008-01-13 Thread paoletto
Actually i checked the examples provided by ActiveBPEL and in their data type or message type definitions they dont add anything. Instead, while testing with SoapUI, they enable and then add attachments on the fly. So i wonder how to add an attachment to an web service invocation from the jboss

[jboss-user] [JBossWS] - Re: WS-Attachment on jbossws

2008-01-12 Thread paoletto
thanks for clarification.. i had a look on jbossws 2.0.1 examples now, but there is something i dont yet understand: actually what i would expect is to have some api to "attach" a DataHandler to a web service invocation. for example, im trying to invoke a web service exposed by ActiveBPEL engin

[jboss-user] [JBossWS] - WS-Attachment on jbossws

2008-01-11 Thread paoletto
Hi I followed the wiki user guide to add attachments in my ws invocations/replies using the DataHandler and binding type DOCUMENT. my question is: does this mean i'm using WS-Attachment kind of attachments? or im just defining documents containing base64binary elements? this because ActiveBPEL e

[jboss-user] [JBossWS] - Re: wsdl binding address

2007-12-20 Thread paoletto
Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114819#4114819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114819 ___ jboss-user mailing list jboss-user@lists.jboss.

[jboss-user] [JBossWS] - wsdl binding address

2007-12-18 Thread paoletto
i have 2 interfaces on my machine, one , loopback, is 127.0.0.1, and the other is eth0 , 192.168.1.10. how can i choose which one to bind to wsdl exposed? i have this on http://localhost:8080/jbossws/services : | Registered Service Endpoints | ServiceEndpointID jboss.ws:context=JmsServic

[jboss-user] [JBossWS] - Re: wsconsume exception on document binding

2007-12-16 Thread paoletto
sorry, the wsdl got cutted.. here it is: | | http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/

[jboss-user] [JBossWS] - wsconsume exception on document binding

2007-12-16 Thread paoletto
I am trying to use ActiveBPEL togheter with JBossAS. I found an example where i can pass an array parameter to a bpel process (here http://forums.active-endpoints.com/attachment.php?attachmentid=1748&d=1173126517 , provided by the Active-Endpoints staff). I deployed it on tomcat, downloaded t

[jboss-user] [Messaging, JMS & JBossMQ] - Re: equivalent ejb3 annotation

2007-12-10 Thread paoletto
I found we can specify the resource adapter with this annotation: @ResourceAdapter("activemq-ra.rar") (for example) works for me.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111578#4111578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBossWS] - Weird behaviour of JbossWS with DII

2007-12-09 Thread paoletto
i have this endpoint, which reflects a Session bean implementation | package bps.ejb; | | import javax.jws.WebService; | | @WebService(targetNamespace = "http://bps.ejb";, | name = "BpsFrontendEndpointInterface") | | public interface BpsFrontendEndpointInterface {

[jboss-user] [Messaging, JMS & JBossMQ] - equivalent ejb3 annotation

2007-12-06 Thread paoletto
Hello! Im trying to use activeMQ as JMS broker on Jboss. I'd like to make a mdb listen on a ActiveMQ queue. I found an example (ejb2.1) where they specify - in jboss.xml deployment descriptor - the resource adapter name for each MDB.. tried to look here: http://labs.jboss.com/jbossejb3/docs/tut

[jboss-user] [Messaging, JMS & JBossMQ] - JMS queues and buffers

2007-12-03 Thread paoletto
if i have sender and receiver on different machines, where should i put the queue? on sender or receiver machine? and if i -let say- put the jms server in the receiver machine, and the sender wants to send a message, but the net is down, does he cache the message and deliver later, or return e

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Retrieving MessageDrivenMetaData from MDB

2007-11-24 Thread paoletto
no way for both problems? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107527#4107527 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107527 ___ jboss-user mailing list jboss

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: SELECT FOR UPDATE, PostgreSQL vs DB2

2007-11-22 Thread paoletto
"paoletto" wrote : actually, when i try to do a concurrent select for update calling again my same method, i get this: | | [JDBCExceptionReporter] [SQL7973] Il pacchetto di creazione SQL per JBPKGCAA in JBOSS non è riuscito. Causa. . . . . : La richiesta di creazione del pa

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: SELECT FOR UPDATE, PostgreSQL vs DB2

2007-11-22 Thread paoletto
actually, when i try to do a concurrent select for update calling again my same method, i get this: [JDBCExceptionReporter] [SQL7973] Il pacchetto di creazione SQL per JBPKGCAA in JBOSS non è riuscito. Causa. . . . . : La richiesta di creazione del pacchetto ha rilevato un errore. Il nome del

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - SELECT FOR UPDATE, PostgreSQL vs DB2

2007-11-22 Thread paoletto
Hi I have a method which REQUIRES_NEW transaction, which perform a SELECT ... FOR UPDATE on one row. On PostgreSQL everything is fine and the query locks correctly, while if i use DB2 as datasource, it seems that my select for update doesnt actually lock anything, and if i perform another inv

[jboss-user] [JBossWS] - Re: About jaxrpc-mapping.xml...

2007-11-22 Thread paoletto
the problem is that i have a stack of server, each one with the same service exposed, so i was thinking about DII because it's easier to dinamically specify wsdl url and service name. If i generate the client with wsconsume, then can i dinamically change the address and connect to the same servi

[jboss-user] [JBossWS] - Re: Is this possible to do somehow?

2007-11-21 Thread paoletto
Yes, i was thinking about synchronizing the exposed service with the mdb, but not with messages, since my exposed slsb should wait for someone else to end some job, and then return. what i was wondering is: is it possible to expose-for example- a "public String foo()" , but then the body of the

[jboss-user] [JBossWS] - Re: Cannot obtain java type mapping for: {http://org.mazurek

2007-11-21 Thread paoletto
"[EMAIL PROTECTED]" wrote : Your DII client does not have a jaxrpc-mapping.xml. You can use | | | | ServiceFactoryImpl.createService(wsdlURL, serviceName, mappingURL) | | | how is this approach changed now? View the original post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBossWS] - About jaxrpc-mapping.xml...

2007-11-21 Thread paoletto
I have an ejb3 slsb exposed as web service using jsr181. Now: i'd like to use Dinamic invocation interface because it's possible that some clients dont have the endpoint interface. I get org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://jaxb.dev.java.net/array}stringArray

[jboss-user] [JBossWS] - Re: Cannot obtain java type mapping for String.Array

2007-11-21 Thread paoletto
Which kind of problem? Im having the same problem: im exposing a public String[] hello(); but im getting as well org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://jaxb.dev.java.net/array}stringArray if i use public String hello(), it works. oh, by the way using DII configu

[jboss-user] [JBossWS] - Is this possible to do somehow?

2007-11-19 Thread paoletto
Ok, it's a stupid question and maybe the wrong section: suppose i have a pojo or a session bean exposed as web service. suppose i have a int foo(int bar) method in it. is it tecnically possible to leave some other class answer the web service invocation to foo()? that is someone call foo.

[jboss-user] [JBoss jBPM] - Can BPEL get asynchronous response from invocations?

2007-11-17 Thread paoletto
I'm new to BPEL and BPM world. I leart it through "SOA for the business developer book". Now i have this doubt: I have several servers which run J2EE applications. Each one has also a BatchSubsystem which expose a web services interface which allow to schedule a new process for that application

[jboss-user] [Messaging, JMS & JBossMQ] - Retrieving MessageDrivenMetaData from MDB

2007-11-12 Thread paoletto
i'd like to know the value for an ActivationConfigProperty from inside my onMessage() method. I found that these values are stored as ActivationConfigPropertyMetaData inside a MessageDrivenMetaData object. But how can i retrieve this object? i see i should get a JMSContainerInvoker first (or so

[jboss-user] [EJB 3.0] - Re: SELECT FOR UPDATE in Optimistic transactions

2007-11-09 Thread paoletto
sorry, problem solved! now it acts like it should View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103330#4103330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103330 ___ jboss

[jboss-user] [EJB 3.0] - SELECT FOR UPDATE in Optimistic transactions

2007-11-09 Thread paoletto
Hello! I have this method executed concurrently in many threads (MDBs), which generates quite many OptimisticLockException. I changed the datasource from HSQL to PostgreSQL and tried to add a SELECT FOR UPDATE statement to act like a mutex But why i keep getting OptimisticLockExceptions then? d

[jboss-user] [EJB 3.0] - EJB3 MDB: Annotations for instancePool?

2007-11-08 Thread paoletto
I'd like to specify directly in my MDB class max number of instances of these mdb i want. Is there an ActivationConfigProperty to specify this or do i have to use jboss.xml deployment descriptor even for 3.0 version of MDBs? i looked for this in the wiki but i wasnt able to find any interesting

[jboss-user] [EJB 3.0] - Re: TransactionRequiredException: EntityManager must be acce

2007-11-05 Thread paoletto
"waynebaylor" wrote : have you tried setting them all to REQUIRED? no i havent. you think i should mark required in the caller methods, and requires_new in the _real methods? i can try thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101928#4101928 Re

[jboss-user] [EJB 3.0] - TransactionRequiredException: EntityManager must be access w

2007-11-05 Thread paoletto
it's somehow strange,because i said in the code that for my method i REQUIRE_NEW transaction... | package bps.ejb; | | import javax.ejb.*; | import javax.persistence.*; | | import java.util.*; | import java.sql.*; | | | @Stateless | public class BpsProcessQueueBean imp

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Pessimistic locking of Entity Bean

2007-10-25 Thread paoletto
i am interested in this too. I know hibernate support pessimistic locking, but is it possible to enable it for ejb3 entity beans and ejb3 container managed transactions? thanks for any answer.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098789#4098789 Re

[jboss-user] [JBossWS] - Error: Could not transmit message

2007-09-04 Thread paoletto
Hello! I get this error i dont get why. I followed the jbossws manual and sample code. What i did: App A expose a session bean correctly (it works, i tested it already, but in a wrong way which worked only on the same AS). App B has a session bean as session endpoint interface. i generated both

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Entity beans ejbCreate returns null

2007-06-12 Thread paoletto
exactly. Is there any drawback if i make it return a legal pkey value? Im using a sort of auto increment on pk, and there's no way with finders then to find the last row inserted, so maybe the return value of the ejbCreate would suit perfectly.. View the original post : http://www.jboss.com/i

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: no way to make jboss understand jbosscmp-jdbc.xml

2007-06-12 Thread paoletto
ok i found the problem: i just forgot to add the file in the packaging options :#) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053396#4053396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053396 ___

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Jboss 4.0.1 does not seem to read the jbosscmp-jdbc.xml

2007-06-12 Thread paoletto
i have the same problem. jbosscmp-jdbc seems not to be read. where's the mistake? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053355#4053355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053355

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: no way to make jboss understand jbosscmp-jdbc.xml

2007-06-11 Thread paoletto
im using jboss AS 4.0.5GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053349#4053349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053349 ___ jboss-user mailing list jboss

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: no way to make jboss understand jbosscmp-jdbc.xml

2007-06-11 Thread paoletto
it seems my application totally forget to use the file jbosscmp-jdbc.xml and i cant figure out why!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053348#4053348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053348 __

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - no way to make jboss understand jbosscmp-jdbc.xml

2007-06-11 Thread paoletto
in my relationships jboss keeps not understanding my jbosscmp-jdbc.xml and in the sql generated from ejb-ql he keeps using cmr field names for table columns disregarding key-fields mapping in the relation blocks in jbosscmp-jdbc... why?? View the original post : http://www.jboss.com/index.html

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: business methods and local home interface

2007-06-11 Thread paoletto
stub in the DocumentoLocalHome.java: |public java.util.Collection selectByMetadato(Integer num, String metadati); | // throws javax.ejb.FinderException; | implementation as it appears in DocumentoBean.java: | public java.util.Collection selectByMe

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - business methods and local home interface

2007-06-11 Thread paoletto
hello i declared a business method (it is actually a finder method, but the name is not findBlaBla) in the local home interface of an entity bean, and implemented it into the entity bean. deploying the application i get: | Bean : Documento | Method : public abstract Collection selectByMe

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB-QL 2.1 with GROUP BY and HAVING clauses

2007-06-10 Thread paoletto
Hi well im trying to write an ejbql statement with group by and having sql clauses for a query by keywords, but it seems that even if hypersonic supports them, ejb-ql doesnt so my question: am i wrong and in fact ejb-ql does? otherwise is there any possibility to override the generated SQL st

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: relationships in jbosscmp-jdbc.xml

2007-06-10 Thread paoletto
ok, there is an error in the last block: this is correct: idDipartimento dipartimento but the error keeps to be the same View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052887#4052887 Reply to the post : http://www.jboss.com/inde

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: relationships in jbosscmp-jdbc.xml

2007-06-10 Thread paoletto
ok. i tried but i get a weird error. I followed jboss 3.2.7 developer guide. the error is this: | 12:35:25,352 ERROR [Account#findRelatedAccounts] Find failed | java.sql.SQLException: Colonna non trovata: T0_A.DEPARTMENT in statement [SELECT t0_a.utente FROM DIPARTIMENTO t1_d, ACCOUNT t0_a W

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: relationships in jbosscmp-jdbc.xml

2007-06-08 Thread paoletto
ok, i tried but clearly i'm making some mistake. i tried to define a CMR field for entity Document that references "many" accounts, and i added in both bean and localhome interface the getters and setters for this CMR field named "account" in the . I also added the block into jbosscmp-jdbc.xml

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - relationships in jbosscmp-jdbc.xml

2007-06-08 Thread paoletto
so, i have this doubt about sematics of fields in jbosscmp-jdbc. example taken from a working project: | | Students-Groups | | | | | Student-belongs-to-group | | | | | Group-has-students |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: CMR 2.1 and EJB-QL

2007-06-07 Thread paoletto
ok it should be the .dtd in the docs folder :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052193#4052193 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052193 ___ jboss-us

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: CMR 2.1 and EJB-QL

2007-06-07 Thread paoletto
ok i finally found that for this i need to configure jbosscmp-jdbc.xml.. now i try to do it. can sbd point me a reference for this file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052166#4052166 Reply to the post : http://www.jboss.com/index.html?module=

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: CMR 2.1 and EJB-QL

2007-06-07 Thread paoletto
I also have another question: i somehow understood that i have to create a new "field" in the entity beans for container managed relationships. But i was wondering: ok i can tell the container through relationships which entities are related. but how can i specify - for example - that the pk in

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - CMR 2.1 and EJB-QL

2007-06-06 Thread paoletto
hello. I have some errors trying to use ejb-ql 2.1 and i dont understand why :( I am developing a test application to learn how to use j2ee ejbs Im currently using EJB 2.1, so no 3.0. what follows is what i tried following sun manuals and oreilly ejb 3rd edition book. ok, so, let say i have a d

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Basic question about CMP 2.1 Entity beans

2007-06-02 Thread paoletto
Hello! i have a stupid question about mapping a db to CMP 2.1 entity beans: if i have a relation many to many, and in the database i use 2 tables for entities and 1 table for the relationship, do i have to map all the 3 tables to beans and set in the ejb-jar.xml a CMR for first-entity to the re

[jboss-user] [EJB/JBoss] - Basic question about CMP 2.1 Entity beans

2007-06-02 Thread paoletto
Hello! i have a stupid question about mapping a db to CMP 2.1 entity beans: if i have a relation many to many, and in the database i use 2 tables for entities and 1 table for the relationship, do i have to map all the 3 tables to beans and set in the ejb-jar.xml a CMR for first-entity to the r

[jboss-user] [JBossWS] - Re: Example needed of servlet connecting to web service

2007-02-07 Thread paoletto
"dwin" wrote : ensure that your JDK is 1.5 and not 1..6 eerm... right! my jdk is 1.6... didnt imagine that -_- With 1.5.0 it works perfectly! well.. many thanks :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012456#4012456 Reply to the post : http://www

[jboss-user] [JBossWS] - Re: Example needed of servlet connecting to web service

2007-02-07 Thread paoletto
well, im checking and it seems the problem is in service.getPort who give this error: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage any clue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012372#4012

[jboss-user] [JBossWS] - Re: Example needed of servlet connecting to web service

2007-02-07 Thread paoletto
Here's my code: URL wsdl = new URL("http://localhost:8080/ServizioEJB/Hello?wsdl";); QName qname = new QName("http://servizioDipartimentale.org/","Hello";); try { ServiceFactory factory = ServiceFactory.newInstance(); Service service

[jboss-user] [JBossWS] - Example needed of servlet connecting to web service

2007-02-07 Thread paoletto
Hello! Im trying to put the code from http://labs.jboss.com/portal/jbossws/user-guide/en/html/clients.html#dii-clients into a servlet, but it doesnt seems to work.. can some one points me a working servlet connecting to some stupid web service like Hello? by the way, which packages do i have t