Hi Smeier
I've tried out 3.2.7, and haven't seem the problem reoccur since then. So
while I can't say for sure whether or not it was fixed, it certainly seems that
way.
HTH
Collin
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875610#3875610
Reply to th
>From what I've read, in the 4.x series there is a way to abstract this
>information out. Unfortunately, I can't expect some of our customers to accept
>a major app server version change for this.
:(
Any ideas anyone? Could I write an MBean that set some property somehow?
View the original
This is under JBoss 3.2.3.
We deploy our application to clients with various datasources. To date we've
kept the datasource-mapping for the CMP layer in
ejb.jar/META-INF/jbosscmp-jdbc.xml
But that means we have to package two different versions of our product to use
the different kinds of da
You're right alex. Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869541#3869541
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869541
---
SF email is sponso
Alex,
The problem ended up being my own fault (of course), as it usually does :)
The problem was that we had created our MSSQLServer tables manually, as our
application is already deployed to multiple clients and we can't depend on the
container to re-create tables from scratch every time.
Our
Update: I tried running the application on JBoss 3.2.6, but the same problem
persists.
Any ideas?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869283#3869283
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869283
-
Hello
For the purpose of this example, assume I have two entities, X and Y, where Y
has a fk mapping to X such that:
Entity X:
public abstract Y getY();
public abstract void setY(Y y);
and
Entity Y:
public abstract java.util.Collection getXs();
public abstract void setXx(java.util.Collection x
Thanks for the reply Scott. I updated the jdom.jar in server/lib and the
server booted fine.
I'm working with a webapp deployed inside of a .ear. This webapp uses
Cocoon/Avalon which has its own JDOM nested in a couple levels deep. This JDOM
version is rather old, and at runtime I'm getting
I would also like to do the exact same thing, but JBoss is loading the older
version instead :(
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855738#3855738
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855738
Sure, just use the getTransactionInformation() method right before you obtain your
CMR collection to determine whether or not you are in a transaction.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847060#3847060
Reply to the post :
http://www.jboss.org/in
This is caused by, well, usually, executing some method that obtains a collection of
entities within the context of a transaction, and then another method (possibly the
calling method) using that collection within
* a transaction (if the collection was obtained without a transaction)
* no trans
How are you deleting the associations? If your entity container configuration
specifies commit option A, then deleting the associations from outside the container
(using an SQL query) would cause this behavior.
However, if you are iterating through each person entity and setting the association
You will only be able to do this if you use bean managed transactions.
In your session bean, here's some starter methods that you can use to start and end
your transactions:
protected int beginTransactionIfRequired(int timeoutInSeconds) {
| UserTransaction tran = this.sessi
Hey Guys
Any updates on this issue?
thanks,
Collin
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842322#3842322
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842322
If you are going to need to be able to access these values through CMP, you MUST
change your code. Unless there's something I'm missing here, all you will need to do
will be to just add another CMP field to your entity bean and then set your long value
in your ejbCreate() method for that entity
jae77 -- thanks, that worked, well, perfectly :-) I need to make sure it's going to
work with my mysql text and sqlserver ntext column types, too, but I'm just really
glad to see it working so far in Oracle.
Thanks to all...
Collin
View the original post :
http://www.jboss.org/index.html?mo
It might be something wrong with your datasource config. Try posting your
mssql-ds.xml file in between [ code ] ... [ / code ] tags.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839703#3839703
Reply to the post :
http://www.jboss.org/index.html?module=b
We've definitely seen this on some of our deployments, but it's rather going from
machine to machine (yours is self contained..).
I'd recommend going into the network config under 2003 server (or whatever the
software firewall equivalent is under 2k3 server) and making sure that localhost
acces
Thanks for the info. Is there a recommended workaround for this? I need potentially
large storage capacity for an entity field, but would like it returned as a
java.lang.String.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839700#3839700
Reply to the post
You should probably give some more information about your environment, such as a
stacktrace, DDs, etc relevant to the problem.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839677#3839677
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=post
Try putting some transactional debugging in your code, especially in the
deleteQueue(String queueName) method.
Use this class to help determine if there is a transaction in your deleteQueue method
when you are deleting multiple queues.
| import javax.naming.InitialContext;
| import javax.t
Hi,
I'm almost done porting over our application to Oracle9i from mysql/sqlserver and have
run into a bit of a problem.
Columns that were stored as text before are now stored as CLOB in Oracle9i and for
some reason I can't get the CMP engine to fetch these fields -- they always return
null for
If you need to temporarily modify an entity outside of the context of a current
transaction, I believe you'd need to do it using a method invocation tagged as
"RequiresNew".
Of course, make sure your existing transaction would not have already enrolled the
bean lest you achieve deadlock.
Vie
In my jboss.xml:
|
|
|
|
| PublishMessage
| queue/CXMLPublishQueue
| Singleton Message Driven Bean
|
|
|
|
And in my ejb-jar.xml:
|
| [CDATA[]]
|
| PublishMessage
|
|
"genman" wrote :
| Let's suppose you had 10 messages queued before your MDB started.
|
| As soon as your MDB starts, you will have one less present, even before
onMessage() is called. As soon as this message is accepted, another one is dequeued.
This is the same for any other client.
T
"[EMAIL PROTECTED]" wrote : The QueueBrowser lists messages that have not yet been
received by any client.
I guess I'm missing something here, then. Because my MDB is a singleton and it can
only accept one message at a time, wouldn't that mean that if I had 10 messages queued
up that I'd be ab
I was able to use the QueueBrowser, but each time the Enumeration I asked of it would
have no more elements.
I read in another post that it would only list items that had been acknowledged --
does this mean that my MDB has to have the onMessage() invoked, or is there something
I need to specify
Just found the QueueBrowser... will take a look at that.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837838#3837838
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837838
I'm using JBoss 3.2.3.
I've got a queue that I've defined as such:
|
| jboss.mq:service=DestinationManager
|
|
And a Singleton MDB that consumes those messages with container configuration:
|
| Singleton Message Driven Bean
| false
Adrian,
Thanks for your help -- I've been wondering for some time how to do this :)
Collin
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837554#3837554
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837554
--
Well, our application essentially renders pages, which are constructed using many
different kinds of entities, so a page render might involve 20-30 different entities.
I replicate it by bookmarking about 15 different page render URLs and then loading
them all simultaneously.
I also see a
java
This is probably pretty simple.. . but I can't figure it out.
I've got multiple SLSB methods that specify "Supports" for their container managed
transactions.
I'd like to be able to determine in those methods whether or not a transactional
context has been created prior to that method invocatio
I've just started getting this bug too.
javax.ejb.EJBException: CMR field value is already loaded
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge$FieldState.loadRelations(JDBCCMRFieldBridge.java:1722
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDB
Thanks Juha
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837361#3837361
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837361
---
This SF.Net email is sponsored by
Hey Guys
I made a couple of posts yesterday and now they are gone (also from my watched topics
page).. Was there some forums pruning yesterday or today?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837359#3837359
Reply to the post :
http://www.jboss.org
Since this is a JMX newbie question, I thought I'd post it here instead of the JMX
forum.
I understand at a basic level what MBeans are. I've written a framework in my
application for timed services that use MBeans and the JMX Timer service. I have also
played around with the web-console and
Hi All,
I'm running JBoss 3.2.3 on XP, and getting this error:
14:22:16,250 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: CMR field value is already loaded
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge$FieldState.loadRelations(JDBCCMRFieldBridge.java:1722)
try using the [ code ] ... [/ code ] tags
It makes your code look like:
|
| two
|
|
Also, the "preview" button :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834318#3834318
Reply to the post :
http://www.jboss.org/index.html?module=bb&op
"[EMAIL PROTECTED]" wrote :
| Here is something I added for 3.2.4 that provides a singleton MDB
|
http://cvs.sourceforge.net/viewcvs.py/jboss/jboss/src/etc/conf/default/standardjboss.xml?r1=1.47.2.15&r2=1.47.2.16
|
Adrian
This is insanely useful and you have shaved hours off of the devel
If you are invoking printLockMonitor and the values for Total Lock Time, Num
Contentions, and Time Outs are 0, then I would not think that to be a problem
necessarily.
What exactly is it you are trying to see?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3
Hi,
I've got a web services bundle deployed as a .WAR within my main EAR. The web
services servlet needs to use Xerces to parse the WSDL file. When I deploy the
application, the web services application can successfully load this class and parse
the file.
However, whenever I log into the mai
Hi Cari,
No problem, you will be able to find this information not only for entity beans, but
also stateless session beans. I'm sorry if my post was misleading in that regard.
Collin
ps. HTH == Hope This Helps :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopi
* I have declared my finder methods in an entity bean to have transaction type
"NotSupported". But I read in the ejb 2.0 spec that they strongly advise us to use
only the "Required", "RequiresNew" and "Mandatory" in entity beans. Why would I want
to create transactions for methods that only find
What Juha is saying is that there is an MBean for each of your entity beans that
supports the reporting that you are needing.
MBean is short for Management Bean, and is part of the JMX (Java Management
Extensions) specification.
You can read more about JMX here:
http://java.sun.com/products/jm
Great, thanks for the reply.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828369#3828369
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828369
---
This SF.Net ema
I'm not sure if this is the correct way to do this, but our solution to this was to
deploy those needed classes in the ejb.jar deployment as well. Our build script
handles the copying of those classes.
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827926#3827926";>View
the origin
I'm a little bit confused about the difference between these two values that are being
reported back from the web-console webapp.
I've got a Page entity, that, after loading up quite a few of them through normal use
in my application, are having these values reported:
ReadyCount = 180
PooledCou
I see what you are saying. It's my understanding that regardless of the cache, a
findByPrimaryKey() will always hit the database.
I think that the reason for this is that a findByPrimaryKey() will return a handle,
but not necessarily load the object; that happens when a method is invoked upon t
Thanks Adrian!
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826756#3826756";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826756>Reply
to the post
---
This SF.Net email is sponsored b
How are you getting the FK ids? When you get your entity X, say through:
EntityLocal x = xHome.findByPrimaryKey(xId);
Do you then get your FKs through
x.getId2()
x.getId3()
? If so, I don't understand then. The CMR I am familiar with makes that unecessary,
unpossible. The container will ma
Last "bump of hope" :) Anyone?
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826685#3826685";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826685>Reply
to the post
---
This SF.Net emai
I don't think that simply finding the bean (i.e. findByPrimaryKey or otherwise) will
enlist the entity in the cache. You must call some member method of that bean for
this to happen (i.e. myEntity.getId()).
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826684#3826684";>View
the ori
>From what I read in a different thread, it is supported in JBoss4.0 but not JBoss3.x
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826236#3826236";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826236>Reply
to the post
-
I have two session beans in the app I am developing that need hour or two hour long
transaction times, so I code those with bean managed transaction stateless session
beans.
The other stateless session beans, that have container managed transactions, use the
global default of 300 seconds.
http
>From what I have read, this is not supported yet (ORDER BY). That is what the JBoss
>error message is telling you, anyways.
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826144#3826144";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38261
Bump in hoping that someone might have a suggestion on this. Thanks.
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825972#3825972";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825972>Reply
to the post
--
Sorry, formatting was borked. Let me try again:
I've got an application installed as an exploded .ear deployment. When I go to the
web-console webapp (3.2.2), I get my program.ear group as expected. Expanding it, I
see my ejb.jar deployed as well as my two webapps. This corresponds exactly to
I've got an application installed as an exploded .ear deployment. When I go to the
web-console webapp (3.2.2), I get my program.ear group as expected. Expanding it, I
see my ejb.jar deployed as well as my two webapps. This corresponds exactly to my
application.ear:
http://java.sun.com/dtd/a
58 matches
Mail list logo