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
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
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 :
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
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 :
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
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
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
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
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
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 =
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
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.
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
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
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
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
|
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.
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
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
|
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
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
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
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
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
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
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
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 :
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
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
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
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
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 =
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
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 :
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
36 matches
Mail list logo