[JBoss-user] [JBossWS] - b2b doc/lit WS app = very cool

2005-05-27 Thread jobor
Hello, I was triggered by the statement of Thomas Diesler believing in the future of doc/lit style. So I wanted to get it to work in JBoss 4. I managed to get an example working following the instruction on the WIKI. But I did not like to implement the wrapped method and the extra surrounding

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-05-24 Thread jobor
Hello, I think I will not get an answer for this problem. I think something is wrong with the server on the side side of the smalltalk webservice. Someone else did notice the same behaviour with Axis. I did not have problems with http but only with https. The smalltalk server doesn't do

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-19 Thread jobor
Hello, Also a test with Axis 1.1 stubs, just as we are using now, the reader gets the time out exception when used over https. Johan View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3874472#3874472 Reply to the post :

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-19 Thread jobor
Hello, I'm getting tired but debugging in Eclipse shows that the characters in the word Sloveni are correct translated to . Because a test with a lot bigger result coming with the same characters gives a good result over https. So for me it is a mystery why you can see that after 2 seconds

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-18 Thread jobor
Hello, Is there a possibility that a reader in JBoss can have a time out because it sees no end due to bad characters while using https! Johan View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3874319#3874319 Reply to the post :

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-15 Thread jobor
Hello, Thanks for answers. I did some work with Ethereal. The test environment on the smalltalk side has 2 urls, one without https and one with https. I only have to change the port and protocol. I did generate stubs with (jwsdp-1.5) wscompile. The smalltalk side has not a wsdl document

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-15 Thread jobor
Hello, I did also a test with JBoss-4.0.2RC1. The same results. I still get the time out over https. But I think I know why do get the time out. The URL below is an example of the data that is coming back asking for countries of the http connection. But if I do ask another domain I do get back

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-13 Thread jobor
Hello, I'm using the JBoss server as a client of a Smalltalk webservice. I did not want to deploy stubs on the JBoss server with the EJB's. I want to use just the material JBoss offers to use an stateless session bean as a client. So I deployed a stateless session bean with 2 service-ref

[JBoss-user] [JBossWS] - Re: HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-13 Thread jobor
Hello, I forgot to tell that all things are happening on my Windows laptop and I do have Ethereal. I'm testing JBoss 4 to see if we can replace the Jboss 3 (production) server. The JBoss 3 server now uses SLSB's and Axis 1.1 client stubs to access the HTTPS webservice. Also I did the

[JBoss-user] [JBossWS] - HTTPS : java.net.SocketTimeoutException: Read timed out

2005-04-13 Thread jobor
Hello, I'm using JBoss 4.0.1sp1 and JDK 1.4.2_07. I.m calling an external web service from SLSB. I'm not using stubs. One method is written with dynamic proxy, the second one is written with DII. When I call the web service over http both methods return good results. But when I change the url

[JBoss-user] [JBossWS] - how to do basic athentication with dynamic proxy client?

2005-03-23 Thread jobor
Hello I'm using JBoss 4.0.1sp1. I do call an external WS from a SLSB. It works OKE. | InitialContext context = new InitialContext(); | DaisyService service = (DaisyService) context.lookup(java:comp/env/service/DaisyService); | TapeFacadeEndpoint port =

[JBoss-user] [Persistence CMP/JBoss] - SQL92 and Left-join read-ahead

2005-03-20 Thread jobor
Hello, It is possible that the SQL92 compiler ignores the left-join tags in the jbosscmp-jdbc.xml file. If I do a test with a bean A and parent bean B and in a finder method of bean A I specify with a left-join tag that the fields of bean B should also be read from the database an be put in

[JBoss-user] [Persistence CMP/JBoss] - Not unique table/alias with cmr field and read-ahead

2005-02-23 Thread jobor
Hello, I'm using JBoss 4.01 and MySQL 4.1.9. I get this message from MySQL : Not unique table/alias: 't3_c_contractor' This is happening when you ask : give me all EJB's where cmr field = parent EJB and you have also the parent EJB in the read-ahead element with a left outer join.

[JBoss-user] [Persistence CMP/JBoss] - left join result ignored in the read ahead cache with DYNAMI

2005-02-23 Thread jobor
Hello, I'm using JBoss 4.0.1 and MySQL 4.1.9. I have two simular queries with the same read ahead strategy. But one is normal and the other is dynamic-ql. The first one I can see loads all data and related data from the result set in the read ahead cache. This is nice because that is what I

[JBoss-user] [Persistence CMP/JBoss] - Re: No such entity WHY?

2005-02-23 Thread jobor
Hello, I don't see the java code that is calling findByPrimaryKey(???). I would think that you are passing a non existing primary key. You can enable CMP logging in the log4j.xml by setting: |category name=org.jboss.ejb.plugins.cmp | priority value=TRACE

[JBoss-user] [Security JAAS/JBoss] - j_security_check in url after login failure

2004-12-30 Thread jobor
Hello, I made a very basic web app with a form logon and JBoss 4.0.1RC2. I did not refer the login.jsp but things are working normal asking e.g. the index.jsp. I get my login.jsp and :-) without j_security_check in the url. When I have a successful logon my secured index.jsp comes up and I do

[JBoss-user] [Persistence CMP/JBoss] - Re: Left-join read-ahead

2004-11-25 Thread jobor
I'm using 3.2.6. In the example query I always want to read the info of 2 parent EJB's when selecting specific entities. So the query element looks like | query | query-method | method-namefindByNumber/method-name | method-params |

[JBoss-user] [Persistence CMP/JBoss] - Re: Better performance?

2004-11-25 Thread jobor
I have thought about the same thing. Why should I not use a normal finder for getting the childs. But most likely your FK field is not available as a CMP field which can be used in EJB-QL. If you need the bean and the childs in 1 transaction you can consider the use of left-join read-ahead.

[JBoss-user] [Persistence CMP/JBoss] - Re: how to validate the EJB QL

2004-11-24 Thread jobor
I'm using DynamicQL with a SearchObject (Value Object for searching) the following way. Maybe it gives you a hint for the LIKE. This is working on 3.2.x. | public abstract Collection ejbSelectGeneric(String jbossQl, Object[] args) throws FinderException; | | /** | * @ejb.home-method

[JBoss-user] [Persistence CMP/JBoss] - Re: CMR and SQL create

2004-11-24 Thread jobor
I don't know how you did get it to work but I think the 2 descriptor parts should be as followed. | ejb-relation | ejb-relation-nameTest-TestParams/ejb-relation-name | ejb-relationship-role | ejb-relationship-role-nameTest-has-Params/ejb-relationship-role-name |

[JBoss-user] [Persistence CMP/JBoss] - Re: Autoincrement/Identity with CMP - 'Primary key for creat

2004-11-17 Thread jobor
I'm using MySQL with a table using an Integer PK field with the autoincrement attribute on. In this code the PK is available after the ejbCreate method because of the entity-command name=mysql-get-generated-keys/ and auto-increment/ elements. I'm using XDoclet partly, only for generating the

[JBoss-user] [Persistence CMP/JBoss] - Re: error while deploying titan.jar + jboss3.2.2

2004-11-16 Thread jobor
The EJB 2.0 spec. dictates the following for the ejbCreate method : The throws clause must define the javax.ejb.CreateException. The throws clause may define arbitrary application specific exceptions. So I think there may be a bug in the software. Just add the throws clause and compile the

[JBoss-user] [Persistence CMP/JBoss] - Re: Insertin records on One-to-Many relation

2004-11-15 Thread jobor
You have to use the cmr field of the user that is created. After creation you can have an empty Collection on calling the getCMRfield() method. Then you can use the Collection methods to add related CMP's to that collection. Suppose you hava an collection of roles(CMP's) in a Collection

[JBoss-user] [Persistence CMP/JBoss] - Re: Timestamp issue

2004-11-15 Thread jobor
Be aware of how you fill the CMP field (if you're using CMP). Look at the type mappings in the standardjbosscmp-jdbc.xml file. E.g use a Calendar object in your application to create a correct date and time object (aware of timezone etc.) and use this object to fill a date, time or timestamp

[JBoss-user] [Persistence CMP/JBoss] - purpose of eager-load-group in entity

2004-11-15 Thread jobor
Hello, I'm trying a lot of things with optimizing the loading of CMP's. But still the purpose of the element eager-load-group in is not clear to me. To me it looks like the element is a sort of default. Saying something about the default eager-load-group for a specific CMP bean. I tried e.q. a

[JBoss-user] [Persistence CMP/JBoss] - Primary key for created instance is null

2004-11-14 Thread jobor
Hello, I get this message with the combination of: entity-command name=mysql-get-generated-keys/ and container-configuration extends=Standard CMP 2.x EntityBean container-nameDelayed CMP 2.x EntityBean/container-name insert-after-ejb-post-createtrue/insert-after-ejb-post-create

[JBoss-user] [Persistence CMP/JBoss] - Re: Can CMP contain non-persistent fields

2004-11-14 Thread jobor
The answer is NO If you deploy a CMP bean without setter for an CMP field you get this message: 17:04:18,664 WARN [verifier] EJB spec violation: Bean : MyBean Section: 10.6.2 Warning: The entity bean class must define a set accessor for each CMP field. Info : Field: myField The CMP fields

[JBoss-user] [Persistence CMP/JBoss] - Re: CMR Collection to ArrayList

2004-11-14 Thread jobor
I think this is because of the EJB spec. All CMR fields are of type Collection or Set. You never know the real implementation of the Collection of Set. If you want an ArrayList just create one and populate this one with help of the returned Collection or Set. Johan. View the original post :

[JBoss-user] [Persistence CMP/JBoss] - Re: Optimistic version field does not increment with cmp2.x

2004-11-09 Thread jobor
Hello Alexey, I don't understand your answer. Are you trying to say that using a version field is not supported with the cmp2.x jdbc2 pm container? The container reacts on the version field with updating as you can see in the where clause of the update in listing 2 (where arc_seq=? and

[JBoss-user] [Persistence CMP/JBoss] - Optimistic version field does not increment with cmp2.x jdbc

2004-11-07 Thread jobor
Hello, I'm using JBoss 3.2.6, JDK build 1.4.2_05-b04 and MySQL 4.0.20. I tried the new cmp2.x jdbc2 pm container with an optimistic lock version field. But I don't really understand what should happen with the version field. Listing 1 is the version field which is incremented when the

[JBoss-user] [Persistence CMP/JBoss] - Re: Load failed : ORA-04031 : JBoss 3.2.3 CMP findAll

2004-09-25 Thread jobor
Hello, Thanks for the answers. Yes retrieving 1200 records and then deleting them is not very efficient. I my opinion 1200 is not so much but creating 1200 EJB's for nothing is a waste of time and resources. Removing 1200 records with 1 SQL statement is much faster. Also iterating over an

[JBoss-user] [Persistence CMP/JBoss] - Re: Disappearing data...

2004-09-25 Thread jobor
You can put the processing of a single entity bean in a single method with a transaction attribute with e.g. RequiresNew. Call the method from another method with a loop. If the single method fails the transaction of the single method is rolled back. If your loop and single method are in the

[JBoss-user] [Persistence CMP/JBoss] - Re: Load failed : ORA-04031 : JBoss 3.2.3 CMP findAll

2004-09-24 Thread jobor
The shared pool size is 50 Meg. I did try all versions of Oracle JDBC drivers from 8.1.7 to 10g. I do have the same problem with deleting 1200 records. The following code is from a session bean method with a Required transaction. Collection c = home.findAllForDelete(); for (Iterator i =

[JBoss-user] [Persistence CMP/JBoss] - Re: Load failed : ORA-04031 : JBoss 3.2.3 CMP findAll

2004-09-24 Thread jobor
Thanks for the answer. But still in basic I do think that I'm doing nothing wrong. It may be not efficient but it should work I think. I will read the docs about load groups. Johan. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849252#3849252 Reply to the

[JBoss-user] [Persistence CMP/JBoss] - Load failed : ORA-04031 : JBoss 3.2.3 CMP findAll

2004-09-22 Thread jobor
Hello, A simple CMP bean on a Oracle table with 1200 records is causing an error : javax.ejb.EJBException: Load failed; CausedByException is: ORA-04031: unable to allocate 232 bytes of shared memory (shared pool,SELECT frm_code, frm_name, f...,sql area,qerixs : rixalo) System : Oracle 8.1.7 :

[JBoss-user] [Persistence CMP/JBoss] - db updates are committed despite NotSupported transaction ty

2004-08-31 Thread jobor
Hello, I'm using JBoss 3.2.3 and 3.2.5 with stateless session beans doing JDBC things to an Oracle 8.1.7 db. Things are working fine but I discovered by accident that an update to the database is committed in a method with a NotSupported transaction type set. It also happens with the type