[jboss-user] [EJB 3.0] - Re: @GeneratedValue(strategy=GenerationType.AUTO) for oracle

2008-07-15 Thread oskar.carlstedt
Hi! I haven not read all posts but I know the following works with Oracle. 1. Annotate your entity with @Entity as normal. 2. Annotate your ID column with @Id. @GeneratedValue(strategy=GenerattionType.AUTO, generator=seqMyObject), @SequenceGenerator(name=seqMyObject,

[jboss-user] [JBossWS] - Re: Upgrading to 4.2.2 changed published WSDL

2008-04-15 Thread oskar.carlstedt
Hello! Sorry to say, but this may be a hard working lesson to never go for the code first approach when creating web services which contracts shall be persistent over time and over different application servers. So a tip for future development, write your wsdl and included schemas by hand and

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-04-01 Thread oskar.carlstedt
Hi! When annotating with the service you have four life cycle methods that you can implement. *create *start *stop *destroy Try call test from start and you'll se that it will be called. Cheers /Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-04-01 Thread oskar.carlstedt
Here is a short eaxample: | @Service | @Management(MyServiceManagement.class) | @Depends(jboss.ws:service=DeployerInterceptorEJB3) | public class MyService implements MyServiceManagement { | |private Timer timer = null; | |@Resource |private EJBContext

[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-27 Thread oskar.carlstedt
Hmm... and now you're back where you started, aren't you? This is a pretty annoying problem. Is there a working example of doing this within an EJB? Is the following solution possible? | @Stateless | @Local | public class A { | |@EJB |B b; | |/** |* this

[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-27 Thread oskar.carlstedt
I'm using JBoss 4.2.2.GA. Do I still have to use the JBoss specific annotation @IgnoreDependency or is it possible to do this in a pure standard java ee way? Kind regards /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4139503#4139503 Reply to the post

[jboss-user] [EJB 3.0] - Re: Create timer -

2008-03-27 Thread oskar.carlstedt
Ooopss... Then we are in trouble... Is it possible to configure MySQL and Hypersonic with a XA data sources. What we want to do is to use the default data source as the timer data source and then use JPA with an underlying MySQL (with MyISAM tables) and get this to work. A config example would

[jboss-user] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga

2008-02-28 Thread oskar.carlstedt
Hi All! Downgrade your JVM and your problem shall be gone. It has to do with the SOAP-implementation (SAAJ). I think you can switch SAAJ-implementation by adding a newer saajImpl.jar file to the $JBOSS_HOME/lib/endorsed directory. I'm not sure about the last part about SAAJ but it is a known

[jboss-user] [JBossWS] - Re: out parameter

2008-02-26 Thread oskar.carlstedt
Hi again! Now I look at all these parts on a communication level. There might be a feature in JAXB to do all this state synchronization without your/my knowledge. I don't know. But the concept of web services does not support this kind of void feature where you change a value in your method

[jboss-user] [JBossWS] - Re: out parameter

2008-02-21 Thread oskar.carlstedt
Hi! In such cases you have to return the new state to the client in form av a returned object. So you cannot have this method as a void method. Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4131113#4131113 Reply to the post :

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Hi! Attachments are a tricky part. The simplest way to do is to add your attachment as a base64binary in your schema, but that is not what you always want to do. I've been asking a lot about how to use MTOM on a SOAPMessage, but I didn't get any response at all. To answer your question about

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Sorry! Didn't get it all. I think this thread would give you answers about how to do handle attachments in the way you want. http://www.jboss.com/index.html?module=bbop=viewtopict=124280 /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129309#4129309

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-12 Thread oskar.carlstedt
Hi! You can always set the url in the service object when adding the port, like the following: | Service service = Service.create(new QName(..., ...)); | service.addPort(new QName(..., ...), SOAPBinding.SOAP11HTTP_BINDING, http://service.location/at/some/context;); | dispatch =

[jboss-user] [JBossWS] - Re: SOAPElement as input param

2008-02-06 Thread oskar.carlstedt
Hi! Just use a javax.xml.ws.Provider SOAPElement provider. You create a class that implements the Provider interface. You'll get something like: | @Local | @Stateless | @WebServiceProvider( | serviceName = ..., | portName = ..., | targetNamespace = ..., |

[jboss-user] [JBossWS] - MTOM using javax.xml.ws.Provider?

2008-02-06 Thread oskar.carlstedt
Hello! Is it possible to implement MTOM when using the javax.xml.ws.Provider SOAPMessage ? Does any of you have a simple example. Best regards /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4127174#4127174 Reply to the post :

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-03 Thread oskar.carlstedt
Hi All! Important to know. An ejb is NOT started just because it is deployed. It is just available to a client through the application server. There is no method invoked on an ejb during or just after the deploy. Ok, there are ways to go around this. Add a service to your ejb that is invoking

[jboss-user] [JBossWS] - Re: reading a local properties file

2008-02-03 Thread oskar.carlstedt
Hello! This is the way to go. Never add a properties-file in the WEB-INF folder. A better place is on the classpath, i.e. in the WEB-INF/classes directory. Then you can access this file with the following command: |

[jboss-user] [EJB 3.0] - Re: Detect client disconnection

2008-02-03 Thread oskar.carlstedt
Hello! Unfortunately there are no safe functions in javascript to detect when the browser window is closed. For me it sounds better to grab the output stream from the response and check it in a separate thread while the session bean is executing. I think you can write an empty/blank character

[jboss-user] [EJB 3.0] - Re: Sequence Generator Question

2008-01-28 Thread oskar.carlstedt
Hi Kasim! Sequenzes are not hibernate specific stuff. Instead sequences are database specific counters. Oracle are using sequnces, but MsSQL, MySQL, etc. are using identity mappings. If you are using MySQL you probably use an auto_increment to get the same feature as an Oracle sequence.

[jboss-user] [Security JAAS/JBoss] - How to design multi language SOA security?

2008-01-07 Thread oskar.carlstedt
Hello all!! I'm writing this into the JBoss security forum because I can't find any better place to put it. I hope I will get some good answers or at least good advices of how to implement a security model in a multi language SOA environment. I have an environment where we have some Perl

[jboss-user] [JBossWS] - Re: maven2 - help to resolve javax.ws

2007-12-11 Thread oskar.carlstedt
Hello! Many of the javax... files (read jars, taglibs, ...) are under license of Sun Microsystems Inc. Therefore they are not part of the global maven repository. Make a mvn deploy:deploy-file (or install:install-file) to add the jars you want to your own repository. Cheers /Oskar View the

[jboss-user] [JBossWS] - Re: Dynamic no. of attachments using MTOM

2007-11-28 Thread oskar.carlstedt
Hi! Thanks a lot! //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108428#4108428 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108428 ___ jboss-user mailing list

[jboss-user] [JBossWS] - Re: Dynamic no. of attachments using MTOM

2007-11-23 Thread oskar.carlstedt
Hi again! Is this as simple as just creating JAX-B objects having normal annotations and then let one of the child objects take a DataHandler as argument? One more question. Where do all the attachments go if I use the Provider SOAPMessage implementation? Regards /Oskar View the original

[jboss-user] [JBossWS] - Dynamic no. of attachments using MTOM

2007-11-22 Thread oskar.carlstedt
Hi! Has anyone made i possible to implement a web service that can receive or send multiple attachments using MTOM. All examples just have one DataHandler but this is not enough for what I want to do. I want to be able to use a dynamic number of attachments. XOP has support for several

[jboss-user] [JBossWS] - Re: Dynamic no. of attachments using MTOM

2007-11-22 Thread oskar.carlstedt
Hi! Thanks for a quick reply! Ok! It might be a good one to do so. When using a DataHandler list , where do I get the rest of my xml document. If using document/literal I will post/receive an xml document that may contain other textual information. In other words, my xml may contain some

[jboss-user] [JBossWS] - Re: Dynamic no. of attachments using MTOM

2007-11-22 Thread oskar.carlstedt
Ok! What I mean is when I have a DataHandler I can get an input stream to the reach the attachment data. But what if I have the following xml. How do I get my xml document: | my-xml |list-of-something | something | normal-xml | textual-info-1 SOME

[jboss-user] [JBossWS] - Re: JBoss and Apache Axis compatibility

2007-10-23 Thread oskar.carlstedt
Hi! If you are creating contract first web services, there should be no problem at all. If you are generating your contract you can get into trouble. So stick to contract first and generate booth service implementation and client usage from the contract to be on the safe side. Regards Oskar

[jboss-user] [JBossWS] - Re: Deployed service statistics

2007-10-23 Thread oskar.carlstedt
Hi! http://repository.jboss.org/maven2/jboss/jbossws-spi/1.0.0.GA/jbossws-spi-1.0.0.GA.jar //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097904#4097904 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097904

[jboss-user] [JBossWS] - Re: Deployed service statistics

2007-10-22 Thread oskar.carlstedt
Hi! Just take a look in the source code for the jbossws web application and you´re up and running. It's really simple when you find the correct source. Anyway, here is a code snippet ... | // get SPI provider and endpoint registry | SPIProvider spiProvider =

[jboss-user] [JBossWS] - Re: Multithreading in Jboss 4.0.1

2007-10-18 Thread oskar.carlstedt
Hi! The most correct way to do this is to write your own MBean/Service. AFAIK threads are not allowed inside an EJB (some application servers will allow threads in the EJB). So writing your own MBean that will take care of multithreading might solve your problem. Creating MBeans is about

[jboss-user] [JBossWS] - Re: JBOSS Webservice Thai Language

2007-10-18 Thread oskar.carlstedt
Hi! You have to set the encoding to UTF-8 (default is ISO-8859). I'm not sure if there is any other way right now than setting the file.encoding parameter to UTF-8. So add -Dfile.encoding=UTF-8 to your JAVA_OPTS when starting JBoss. Good luck! /Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: How to connect multiple databases at same time?

2007-10-12 Thread oskar.carlstedt
Hello! AFAIK the whole idea with JPA is to have one data source per ejb-jar-file (but I might have misunderstood everything). If you need to persist data into several schemas you have to create a super/delegating ejb that will lookup the correct ejb to use for persistence. So, you have to

[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?

2007-10-09 Thread oskar.carlstedt
Hi! The WSDL file imports two XML-schemas that create a circular reference. A good point would be to ask them to change their design. The wsdl file at https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl imports two xml-schemas: | import namespace=urn:ebay:apis:CoreComponentTypes

[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?

2007-10-09 Thread oskar.carlstedt
Hello! As I said before, this is probably due to the circular schema imports. JBoss will try to load the first schema (CoreComponentTypes.xsd). While scanning this schema JBoss will find the schema import for the 2:nd schema (eBLBaseComponents.xsd). While scanning this 2:nd schema JBoss will

[jboss-user] [JBossWS] - Re: Encoding problem

2007-10-03 Thread oskar.carlstedt
Hello! You can start JBoss with the file.encoding parameter | -Dfile.encoding=UTF-8 | Be careful when doing this because you will treat all files as UTF-8-encoded if nothing else is given. OK, I haven't had any problems doing this on all our servers, but it is worth an extra note.

[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?

2007-10-03 Thread oskar.carlstedt
Hi! I'm not sure if you are doing this, but I have had som troubles with JBossWS and nested schema imports. I tried to have relative urls between schemas using .. syntax for traversal of parent directory. JBossWS failed when doing this and told me to use something like getParent() instead of

[jboss-user] [JBossWS] - Re: Raw Style webservices

2007-10-03 Thread oskar.carlstedt
Hmmm I think I had this problem a long time ago. As I can remember it is the Document type that gives you the problem. Try adding an element instead of a document. I think the xml parser will complain about adding a document node to an existing document which is not allowed. Try adding

[jboss-user] [JBossWS] - Re: Transaction Not Allowed

2007-10-03 Thread oskar.carlstedt
Hello! Do I understand You right if I say that Spring is starting its own transactions. If so, then you must use BMT (Bean Managed Transaction) and not CMT (Container Managed Transactions). CMT is used per default if you don't give any transaction attribute at all. Check out the Java EE

[jboss-user] [JBossWS] - Re: Transaction Not Allowed

2007-10-03 Thread oskar.carlstedt
Sorry, the links got messed up. Here they are again: Java EE Tutorial: http://java.sun.com/javaee/5/docs/tutorial/doc/ Java EE JavaDoc: http://java.sun.com/javaee/5/docs/api/javax/ejb/TransactionManagement.html //Oskar View the original post :

[jboss-user] [JBossWS] - Re: Installation fails on JBOSS 4.0.4.

2007-10-02 Thread oskar.carlstedt
JBossWS 1.2.1.GA and above are made for JBoss 4.0.5.GA and above. anonymous wrote : Currently, we have integration layers for the JBossAS-5.0, JBossAS-4.2, JBossAS-4.0.5 and above. See http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS for more information about this. Regards

[jboss-user] [EJB 3.0] - Can't load @Service in JBoss 4.2.1

2007-09-28 Thread oskar.carlstedt
Hello! I asked this question in an earlier thread (http://www.jboss.com/index.html?module=bbop=viewtopict=119784), but it is another topic so a new thread i better. So, the problem is when I deploy a simple POJO annotated @Service inside an ear-file. My implementation is as follows:

[jboss-user] [EJB 3.0] - Re: How do I invoke a method just after an ear-deploy?

2007-09-28 Thread oskar.carlstedt
I started a new thread for this last question. Please see http://www.jboss.com/index.html?module=bbop=viewtopicp=4089721#4089721 Best Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4089732#4089732 Reply to the post :

[jboss-user] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all

2007-09-28 Thread oskar.carlstedt
Hi! This is probably because you are running JBoss with Java SE 1.6. The SOAP implementation is bundled in the std Java 1.6 distribution. That is probably why you can't find the specified jar on your harddrive. Cheers, Oskar View the original post :

[jboss-user] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all

2007-09-28 Thread oskar.carlstedt
Hi! Everything I know is that the javax.xml.soap... implementations are found in the $JRE_HOME/lib/rt.jar ($JDK_HOME/jre/lib/rt.jar). If you want to override these implementation then you must place the correct jar files in the endorsed folder. You can read more about the Java Endorsed

[jboss-user] [EJB 3.0] - Re: Can't load @Service in JBoss 4.2.1

2007-09-28 Thread oskar.carlstedt
It fixed the problem. I had bundled the jboss-annotations-3.0.jar file to my ear file (didn't set the scope of the above jar to provided in my maven project). So my mistake. Removing that jar file from the ear solved my problem. Thanks for all help! /Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: How do I invoke a method just after an ear-deploy?

2007-09-27 Thread oskar.carlstedt
Thank you all for quick replies. I tried the service annotoation as describen in the ejb tutorial. I think it must be the simplest way to go by simply adding the @Service-annotation. Doing is will make the deployment to fail in JBoss 4.2.1.GA also having JBossWS 2.0.1.GA installed. I get the

[jboss-user] [EJB 3.0] - How do I invoke a method just after an ear-deploy?

2007-09-26 Thread oskar.carlstedt
Hello! Does any of you out there know how to invoke an ejb3 method just after deploy of the ear file? (i.e. not the @PostConstruct, @PostActivate because these methods are called once per ejb instance). There is a way to use an mbean and do something in the start method. But for me this is

[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions

2007-09-19 Thread oskar.carlstedt
Hello! I'm not sure , but if I look at your code you instantiate the em by yourself. Examples I've seen do not do that, they leave that part to JBoss, like the following code. Are you sure you get the correct entity manager? | | @Stateless |

[jboss-user] [JBossWS] - Re: Sample application

2007-09-12 Thread oskar.carlstedt
Hello! There are several examples in the JBossWS-distribution. Just download the normal distribution (src distribution is not required). The distribution zip file contains another zip file with lots of examples about how to do what in what situation. Build the examples, deploy them into JBoss

[jboss-user] [JBossWS] - Re: How di I get detail in SOAPFault

2007-09-05 Thread oskar.carlstedt
... and I was expecting something like | env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/; |env:Header/ |env:Body | env:Fault | faultcode xmlns:codeNS=http://schemas.xmlsoap.org/soap/envelope/;codeNS:Server/faultcode |

[jboss-user] [JBossWS] - How di I get detail in SOAPFault

2007-09-04 Thread oskar.carlstedt
Hello! I can't get the detail element of the SOAPFault. Is there a magic way to do this. I have a Provider SOAPMessage implementation. When I do the following ... | @Local | @Stateless | @WebServiceProvider( | serviceName = MyService, | portName =

[jboss-user] [JBossWS] - Re: How di I get detail in SOAPFault

2007-09-04 Thread oskar.carlstedt
The response I get from JBoss is: | env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/; |env:Header/ |env:Body | env:Fault | faultcode xmlns:codeNS=http://schemas.xmlsoap.org/soap/envelope/;codeNS:Server/faultcode |

[jboss-user] [JBossWS] - Re: How to import relative schemas?

2007-08-31 Thread oskar.carlstedt
I posted i Jira issue about this [url]http://jira.jboss.org/jira/browse/JBWS-1798[url]. *** I deploy an ear file in JBoss5 that contains a war and a jar fil. The jar file contains a SLSB and the war file contains the web service (implemented as a

[jboss-user] [JBossWS] - How to import relative schemas?

2007-08-29 Thread oskar.carlstedt
Hi All! I cannot not manage to create a deployment in Boss-5.0.0.Beta2 where I import schemas by relative paths. Using ../-paths are not allowed (getting an exception telling me that parent paths are not allowed). Parent paths are allowed in JBossWS 1.2.1.GA on JBoss 4.0.5.GA. What I'm

[jboss-user] [JBossWS] - Re: How to import relative schemas?

2007-08-29 Thread oskar.carlstedt
Some more info... The schemas I'm using are including other schemas too, that are also referenced by a relative schema location. So it's is i kind of nested schema imports in several schemas. All schemas are not directly located under WEB-INF/wsdl, instead they are located under their resp.

[jboss-user] [EJB 3.0] - Re: need help for Transaction Attribute Types

2007-08-14 Thread oskar.carlstedt
Hi All! I haven't read everything in this thread but a good idea might be to take a look in the Java EE tutorial. It has a whole chapter discussing transactions. Whole tutorial: http://java.sun.com/javaee/5/docs/tutorial/doc/ Transactions:

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hello again! If your datasource is correctly deployed, then I don't know. It might be a TopLink issue. This is the way to deploy a EJB3 jar file and connect it to a datasource. When using EJB3 and JPA you are not using Hibernate directly. You are using JPA, which JBoss in turn maps to

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hi again! Good news! Take a look at this post on another forum http://forums.oracle.com/forums/thread.jspa?threadID=244914 //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058577#4058577 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! It seems like JBoss can't find your datasource. It also looks like you are using toplink, are you? The example bellow is for the normal JBoss EJB3 (on top of Hibernate). Anyway, the configuration shall still be the same (please correct me if I'm wrong) except some of the properties in

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Sorry, now thing got messed up here. We take the examples once again. Look at the JNDI-names. These got messed in the previous post. //Oskar persistence.xml | persistence xmlns=http://java.sun.com/xml/ns/persistence; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! The datasource file has its own deployment, so this file shall be put directly in the deploy folder. When doing this you'll see JBoss deploying the ds file. After the deloyment (takes a second or two) you can find the deployed datasource in the jmx-console

[jboss-user] [JBossWS] - Re: change HTTP status code in a WS fault

2007-06-20 Thread oskar.carlstedt
Hi All! I'm not sure if this works, but an idéa might be to implement a simple servlet filter that you put in front of the servlet. The filter will then invoke the http request, check the response code and change it if necessary. A normal servlet has a filter chain, and I think you can

[jboss-user] [JBossWS] - Re: javax.xml.rpc.JAXRPCException: Cannot obtain operation m

2007-06-04 Thread oskar.carlstedt
Hi! I read another thread on this forum having the same problem. It sounds that the SOAPAction http header is not set. Can you try to invoke the service by using SoapUI http://www.soapui.org, or enable the RequestDumperValve in tomcat's service.xml

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - War inside ear, where to place taglib jars?

2007-06-04 Thread oskar.carlstedt
Hi all! I've been struggling a lot with a problem I didn't expect do face at all. What I try to do is to create a web application using Servlet 2.4, JSTL and Spring. This is OK in Tomcat. But creating an ear file and place all dependent jar in the ear instead of the war will make JBoss (read

[jboss-user] [JBossWS] - Re: wstools error from WSDL to Java

2007-05-22 Thread oskar.carlstedt
Hello!! You shall use forward slashes instead of the backslash in the windows path, i.e. change C:\test\HEBService_Full_.wsdl to C:/test/HEBService_Full_.wsdl Kind Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047442#4047442 Reply to the post

[jboss-user] [JBossWS] - Re: creating new targetnamespace for complex types

2007-05-15 Thread oskar.carlstedt
Hi! I think this sounds terrible for you, but you probably have to start working in the other direction. If you want to ensure your contract (the wsdl file) is changed in the way you want, then you must start with taking control over it, i.e. develop it by yourself. What I'm saying - take full

[jboss-user] [EJB 3.0] - Re: EJB3 and jndi error.

2007-05-10 Thread oskar.carlstedt
Hi! Take a look in the jmx console/jndi view to see under what name you ejb is bound. For me it looks like you forgot a slash right after the java:. With kind regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044591#4044591 Reply to the post :

[jboss-user] [JBossWS] - Re: how to deal with unicode

2007-05-09 Thread oskar.carlstedt
Hi! It looks like you have a space between the - and D character in -Dfile.encoding... //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044366#4044366 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044366

[jboss-user] [EJB 3.0] - Re: Joined Subclass Inheritance Strategy Problem

2007-05-07 Thread oskar.carlstedt
Hello!! I'm not sure if this is what you are asking for. Take a look at the following post http://www.jboss.com/index.html?module=bbop=viewtopict=83732. It might handle what you are looking for, but in a persistent way instead of querying. With kind regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Are you sure you want to use Double as you id type. Normally databases are using integers for ids. Try to use Long ,or Integer if you can gurarantee that you won't exceed the max int value, instead? With kind regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Good work! Sometimes it is hard for JBoss to find a good error message. When you specify the column annotation, JBoss tries to save/serialize the object into that column, no matter of what type it is. So in this case, JBoss finds the UsuarioEJB and then i tries to save it into the column

[jboss-user] [EJB 3.0] - Re: HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-04 Thread oskar.carlstedt
anonymous wrote : This is just sick disgusting rubbish! Who ever invented that stuff - fire him! | No, sorry, this is not sick disgusting rubbish. As a matter of fact, the join order is of importance for many databases. One can think that a databse's execution planner should fix this, but

[jboss-user] [EJB 3.0] - @EmbeddedId vs. @IdClass - when shall I use what?

2007-05-04 Thread oskar.carlstedt
Hi all! Can anyone explain the difference between the two annotations @IdClass/@Id and @Embeddable/@EmbeddableId. When shall I use @IdClass and when shall I use @EmbeddedId? Does anyone of you have a good answer to this? I would really appreciate your help to make me understand what decision

[jboss-user] [EJB 3.0] - Re: ejb-jar.xml a clear definition for EJB3

2007-05-03 Thread oskar.carlstedt
Hello! No, in general you don't need the ejb-jar.xml. You can include the ejb-jar.xml file if you intend to override settings from given annotations. But in generel, you don't need it. What you need to do is: Create a JAR-file with the ejb:s you want to deploy. This file must also include a

[jboss-user] [EJB 3.0] - Re: ejb-jar.xml a clear definition for EJB3

2007-05-03 Thread oskar.carlstedt
Oooppss.. One more thing I forgot. If you don't provide the ejb-jar.xml file, JBoss will deploy your ejbs as: NAME-OF-EAR-FILE/BEAN-CLASS-NAME/Local or NAME-OF-EAR-FILE/BEAN-CLASS-NAME/Remote. In the example above you will get something like: /my-service/MyBean/Local or /my-service/MyBean/

[jboss-user] [JBossWS] - Question: How does JBossWS find the business method to invok

2007-04-26 Thread oskar.carlstedt
Hello!! This may be a stupid question. Looking into the source may answer this, but I think it is better asking you for a better answer. After looking at several WSDL files generated by JBossWS (also the samples in the JBossWS distro) where document/literal is used but no soap action is

[jboss-user] [JBossWS] - Re: jboss4.0.5 + which version of jbossws + correct document

2007-04-25 Thread oskar.carlstedt
Hello!! You shall use the latest JBossWS documentation if you are using JBossWS. You can find it here http://jbws.dyndns.org/mediawiki/index.php/Main_Page Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040547#4040547 Reply to the post :

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Ok!! Having indexes will slow down an insert statement. Why? The database has to write an extra entry into an index for each insert. Depending on indexed column, this may also slow down update statements. Using transacttions is even worse. The database must write into a transaction log to be

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Hi All! The intention of my last post was to explain why sequences, indexes etc. make the solution less performant. I still agree with Felix. Huge bulk operations shall be done by using the tools provided by the database, in this case a stroed procedure. //Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei

2007-04-23 Thread oskar.carlstedt
Hi! The @Id annotation will annotate the primary key of your class. The parent id is not the primary key of your class, it is a foreign key, but an @Id in the parent class. Remove @Id from the parentId. If you want to use composite keys, take a look here

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Ok, I nunderstand. Some questions: Do you have a constant flow of messages? Do you need synchronus responses? If not, it might be possible for you to que these requests? Is is a requirement to have the data published in the database right after you have returned a response? //Oskar View

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
It is possible to configure hibernate to do bulk operation. Perhaps you've already tried it? If not, take a look a http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#queryhql-bulk //Oskar View the original post :

[jboss-user] [JBossWS] - Re: setProperty must be overridden by all subclasses of SOAP

2007-04-20 Thread oskar.carlstedt
Check the manual chapter 2.2.2.4 http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch2.chapter.html#d0e2648 Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039275#4039275 Reply to the post :

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
Hi again! What I actually mean is that normally it is better to have a few really fast computers instead of a single powerful machine. And I understand your situation, you have this machine and you wan't to use it. Do you know if there are other IO-intensive tasks running on that machine at

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
Hi again! Here is some information from a project I attended a couple of years ago. We operated on a Sun Starfire (Sun Enterprise 1), totally 32 cpus and 32GB RAM, our domain had 12 cpus and 12 GB RAM. A lot has hapend since then, but still, such computers are not fast when it comes to

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-19 Thread oskar.carlstedt
Hi!! Using EJBs here is probably not the best way to go. Doing so will cause the container to create a lot of insert statements - too many to get the performance you want. If I'm wrong here, let me know. I did something like this a couple of years ago with Oracle 8.1.6. If you don't care

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-19 Thread oskar.carlstedt
... one more thing. Whater decision you make here. Make sure you are using the native Oracle driver. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039023#4039023 Reply to the post :

[jboss-user] [JBossWS] - Re: How to provide soapAction from dispatch call?

2007-04-18 Thread oskar.carlstedt
I file this as a bug in JIRA http://jira.jboss.com/jira/browse/JBWS-1611. There is no SOAPAction http header sent to the server doing the specified way. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038332#4038332 Reply to the post :

[jboss-user] [JBossWS] - Re: How to provide soapAction from dispatch call?

2007-04-17 Thread oskar.carlstedt
Does anyone know if this is a bug or related to something else. Or how do I get around this problem? I found this thread on java.net forum http://forums.java.net/jive/message.jspa?messageID=190079. Doesn't help much but it seem to be a problem in jwsdp2. Regards Oskar View the original post

[jboss-user] [JBossWS] - Element or attribute do not match QName production: QName::=

2007-04-16 Thread oskar.carlstedt
Hello!! I'm getting a strange exception when invoking a simple client inside a stateless session bean. Everything has to do with the javax.xml.namespace.QName. I'm using xml beans which I had to modify because of an extra include of the javax.xml.namespace.QName, i.e. I have removed the

[jboss-user] [JBossWS] - Re: Element or attribute do not match QName production: QNam

2007-04-16 Thread oskar.carlstedt
... one more thing ... I'm running JBoss in isolated mode. All xmlbeans jar file are bundled in the EAR file. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037474#4037474 Reply to the post :

[jboss-user] [JBossWS] - How to provide soapAction from dispatch call?

2007-04-16 Thread oskar.carlstedt
Hello! I've tried a to fix this for some hours know. Maybe I'm doing something completely wrong here. I have a web service client that that is using the dispatch technique. I will use the dispatch because I'm using xmlbeans to bind my data. Here is a little code snippet of what I'm trying to

[jboss-user] [JBossWS] - Re: Element or attribute do not match QName production: QNam

2007-04-16 Thread oskar.carlstedt
It seems like using a StreamSource instead of the DOMSource will work to get around this problem. But I can't understand why. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037614#4037614 Reply to the post :

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-13 Thread oskar.carlstedt
Hi!! Dtabase columns that are not part of the used implementation (not mapped by properties in the class) are not exposed in the SQL statement to the database - which is exactly what I want (the database shall set this value, not the sql statement). Regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-12 Thread oskar.carlstedt
I have the same problem. Did you find any answer/solution for this? Kind regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036640#4036640 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036640

[jboss-user] [JBossWS] - Re: SOAP Message with Body of any type

2007-04-12 Thread oskar.carlstedt
Hello!! I'm not sure if I understand you right here. Take a look at writing you own endpoint provider http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Endpoint_Provider. It may help you. Best Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-12 Thread oskar.carlstedt
Hi!! No It is not exactly what I want. I solved everything by using inheritance and the SINGE_TABLE inheritance method. Then I could skip my property I didn't want to include. But originally, I have a database specifying the default value. This value is used by other applications too. So to

[jboss-user] [EJB 3.0] - Re: Etity reference problems

2007-04-03 Thread oskar.carlstedt
Thank you for helping me! I found the error I did. In my code where I assigned all objects I missed to add the B item to the list of B:s in A. Doing this resolved my problem. The following steps must be applied: 1. Create A 2. Create all B:s and add them to A 3. Create C by using A and the

[jboss-user] [EJB 3.0] - Re: Entity relationship and remove operations

2007-04-03 Thread oskar.carlstedt
Hi!! I'm not sure about this. But I think I've read that you cannot specify booth name and referenceColumn when using the JoinColumn annotation. Try to just use the name attribute. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4034042#4034042

[jboss-user] [EJB 3.0] - Re: Etity reference problems

2007-04-02 Thread oskar.carlstedt
Hi! Here is the stack trace. | ... | 2007-04-02 07:57:58,337 DEBUG [org.hibernate.cfg.Configuration] processing extends queue | 2007-04-02 07:57:58,337 DEBUG [org.hibernate.cfg.Configuration] processing collection mappings | 2007-04-02 07:57:58,337 DEBUG

  1   2   >