This seems not to be used during the deployment to add the required
dependencies from the web container
to the target MBean.
In the code WebMetaData#getDepends is not used anywhere (unless I miss
something)
julien
---
This SF.Net email is
in that case your component in A using the session bean in B just needs to get it through JNDI and use it
either by local reference or by global reference (simpler)
in A :
BeanLocalHome home = (BeanLocaLHOME)new InitialContext().lookup(MySessionBeanInB);
simply that
julien
On Mar 11, 2004, at
On Mar 11, 2004, at 11:42 AM, Sternagel Annegret (MPI/ADB) wrote:
Hello,
I have 2 questions about MBeans:
We have an MBean that looks every 30 seconds in the database if there
is an action to perform.
If there is an entry for an action, the action will be performed, this
may take several
what kind of access ?
On Mar 10, 2004, at 3:08 PM, [EMAIL PROTECTED] wrote:
Hi all,
I have two ear files.
In EAR A i need to access a sessionbean which is in EAR B.
How can this be achieved?
Thanks in advance,
Regards,
Harm de Laat
Informatiefabriek
The Netherlands
test from www.jboss.org
---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
test
---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
test from my account
---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
The jury is still out on that one. :-)
I would say that using EntityLockMonitor helps give you an impression of
whether things are locking the way you think they are.
If you see bigger numbers in the monitor than you would expect, then
this gives you an indication that things are going
what as is the transactionnal attribute of doSomething() ?
is the getItems() method tagged as readonly in jboss.xml ?
Hi,
I have an issue that I want to understand before I try and fix it...
JBoss 3.2.2, Commit Option A...
I have a SLSB method something like...
public void
yes it works well.
What about using filters to begin/commit transactions?
Neal Sanche wrote:
Hi Alexey,
Oh, I am definitely using the servlet container in the same VM, and
although it's probably a really bad idea, I've been using Local
objects in my web view layer instead of
You will assign a string array with :
attribute name=UsedParamsjohn,doe,foo,bar/attribute
see org.jboss.util.propertyeditor.StringArrayPropertyEditor
Hi,
When developping a MBeanService component, how to get
multiple attributes from a -service.xml file ?
for example, how to do something
You need to use model mbeans to have the attributes persisted. Most of the
time we use XMBeans in Jboss which are a model mbean implementation.
The JMX specification talks about it in the model mbean chapter. Otherwise
you can have a look in the testsuite at
I think you are not supposed to access the file system directly in an EJB. I
suppose this is a session bean ?
julien
We have some code in a EJB someone else wrote.
When I pull it into my IDE (IntelliJ), it tells me that FileWriter is not
allowed in EJB?
Any ideas?
NOTICE:
This
You can try the JMX console and look at the EJB instance cache to see how
many instance it contains. After the optiond-refresh-rate has been reached,
the number of instances in the cache should be zero.
julien
AFAIK, it is not logged anywhere. But you could play with
optiond-refresh-rate.
You can figure it out by going in the JMX agent view and on the
UnifiedLoaderRepository mbean you can give it the name of the class and it
will return the URL from which it was loaded.
JMImplementation:name=Default,service=LoaderRepository
The operation name is displayClassInfo
Hi Alex,
The started field could be added as an attribute on the
ServerImplMBean mbean.
Actually there is no way to know,
though it is possible to know when the server starts because it sends a JMX
notification at this moment.
julien
MR Hi Gurus,
MR Objective
MR
MR Since my web server and all
with QueuedPessimisticEJBLock, read-only shorten the duration of the lock, it does
not remove it. it locks the bean for the duration of the call
instead of the duration of the transaction.
julien
CM As I understand it, methods marked as read-only on an entity bean shouldn't try
and lock the
you need to use the depends tag :
mbean
code=...
name=...
dependsdomain:name=something/depends
...
/mbean
MMnc hi all,
MMnc i am trying to deploy a standalone MBean by
MMnc using myMbean-service.xml
MMnc i drop the jar file in the jbossdir\server\default\lib directory
MMnc
I agree, but that would be specific to the xmbean implementation.
usually a managed resource is not aware of the surrounding model mbean.
That might be done with a specific interface in jboss mx, like
interface XMBeanAware
{
void setXMBean(XMBean xmbean);
}
julien
Thursday, July 10, 2003,
and you can have the xmbean name by implementing the MBeanRegistration interface
on the managed resource.
SMS Querying the MBeanRegistry should work:
SMS import javax.management.ObjectName;
SMS import org.jboss.mx.server.ServerConstants;
SMS import org.jboss.mx.server.registry.MBeanEntry;
SMS
you could simply wrap it in an mbean, having a background thread
peeriodically optimizing the index.
you can have a look at :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/applications/forums/src/main/org/jboss/forums/lucene/LuceneService.java
julien
PB Has anyone integrated Apache
Hi,
I am facing this problem :
when an anonymous user connect to the web site and get its session.
This one is persisted through a Cookie (JSESSIONID) with a maxage
of -1.
on subsequent calls if I want to change this maxage to another
value let's say 1000 for instance, it does not work and
the
yes, uncomment
security-constraint
web-resource-collection
web-resource-nameHtmlAdaptor/web-resource-name
descriptionAn example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
/description
k Hello I've one simple question:
k I want to optimize a query to return pages of 10 elements x page (and
k here no problem).
k Problems are these:
k 1) Can I use Collection.size() to calculate the total page number ,
k without loosing in performance?
yes, all keys are already fetched and
soon, I forgot lot of things in that area. My fault, I'm guilty !
tonight probably.
JMF the website seems not to be setting it's Content-type, so my proxy is
JMF defaulting it to text/plain and my browser shows me the source.
JMF any chance of getting the Content-type set?
--
Best regards,
AFAIK finder always get pk from the db and then can retrieve
other fields from cache or db according your commit option.
finder + cache would require load all data from table +
having an in memory finder algorithm.
julien
RK hi,
RK I've tested caching outside of this routine and this is
Hello Marco,
Monday, March 17, 2003, 3:11:49 PM, you wrote:
There is no dtd for the *-service.xml file format, it would
need to be a
schema anyway.
I can never remember the constructor argument format, but if
you look in
the system module at org.jboss.system.ServiceCreator it is not
I commited such a filter for nukes, for the same usage.
In cvs /nukes/nukes/src/main/org/jboss/nukes/servlet/TransactionFilter.java
In fact you have to wrap local calls in a transaction
unless you don't want to iterate on cmr collections.
If you have ideas on the same topic, please share them.
your dtd is not the good one, your cmp file doctype must
reference the 3.2 dtd and not the 3.0
julien
RP Hi,
RP I'm using jboss-3.2.0RC2 and I want to auto-increment
RP my PK in MySql. I followed the format in
RP jbosscmp-jdbc.xml:
RP cmp-field
RPfield-namejsCode/field-name
RP
JBoss.org powered by Nukes on JBoss is going to be soon.
julien
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
---
This
I tried 3.2RC2 yesterday, I couldn't deploy because
I was using 3.2 specific features for cmp that are not
in 3.0 dtd.
In addition xdoclet was generating 3.0 dtd in xml instances.
So I think xdoclet should generate files with system id that
refer to 3.2 dtd and jboss must also have the 3.2 dtd
numbers are only even :
3.0, 3.2, 3.4, etc
BM Blatant newbie question:
BM what is the structure of jboss releases. I can't see a jboss 3.1 anywhere. Has
this been skipped?
BM thanks,
BM Brian
BM - Original Message -
BM From: Bill Burke
BM To: [EMAIL PROTECTED]
BM Sent:
try http://www.mail-archive.com
julien
HT jboss-dev has ~16000 messages and there is no seach facility on sf for
HT mailing lists.
HT Can you jsut tell me how to fix that prob?
HT thanx
HT -Original Message-
HT From: Jules Gosnell [mailto:[EMAIL PROTECTED]]
HT Sent: 20 January 2003
I will adapt jounal module for nukes on jboss soon.
julien
HH Is there any good Open Source J2EE based blog software out there?
HH Sorry that this is offtopic...
HH Hunter
HH ---
HH This SF.NET email is sponsored by: Thawte.com - A 128-bit
I am currently working on jboss forum application and we
try to get rid of value object by using local directly
in web layer.
On that purpose we have two interceptors that allow
bulk retrieval of value of a cmp bean though it local interface.
For instance with a local :
local l =
mbn On Sat, Dec 21, 2002 at 02:23:04PM +0100, julien viet wrote:
I am currently working on jboss forum application and we
try to get rid of value object by using local directly
in web layer.
On that purpose we have two interceptors that allow
bulk retrieval of value of a cmp bean though
mbn On Wed, Dec 18, 2002 at 01:33:27PM -0800, Nicholas wrote:
I am using JBoss 3.0.4 and developing a large number
of CMP 2 beans in a preliminary proof of concept.
Based on the new Local interfaces in EJB 2, can anyone
recommend a source for an updated pattern
implementation for Session
you can do :
if you are LoginContext explicitely to get authentication you
can do :
LoginContext lc = new LoginContext(my-context);
lc.login(); // authenticate here
lc.getSubject().getPrincipals();
(used in forums application)
otherwise :
SecurityAssociation.getSubject().getPrincipals()
that
yes they have.
--- Victor Batista
[EMAIL PROTECTED] a écrit : Hello!
I am developing two entity beans which have a
relatinship 1-N (One User can
have Many Roles).
I have also a Facade session bean to handle the
business operations. I have
declared the Transaction property of
forum people,
I have updated forums with security concerns.
If you are using 3.0.4 :
It are using a login-config that you have to set up
before running it. The snippet is in the class
forum_home/src/main/org/jboss/forums/security/SecurityService.java.
If you are using HEAD :
1.You can use
java:comp/env/-- is private to each ejb and is defined
by the ejb-ref and ejb-local-ref in the bean, what you
should do instead is :
in your ejb-jar.xml for the bean that references
CompanyUser bean through java:comp/env/ejb/CompanyUser
session
...
ejb-local-ref
I don't know if such ant task exists but you can code it by invoking
the MainDeployer mbean to deploy your deployment (because it's synchronous).
- Original Message -
From: Thorbjørn Ravn Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 4:22 PM
Subject:
try http://localhost:8080/jmx-console
--- Joao Pedro Clemente [EMAIL PROTECTED] a
écrit :
I have the same behaviour, with 3.0.3...
--
Joao Pedro Clemente
jpcl @ rnl.ist.utl.pt
On Thu, 24 Oct 2002, Kazandjian Erik wrote:
no you can't, what you have to do is to propagate testcase in a bean that's
in the same deployment unit of your other beans.
we do such test in forum application, you can have a look to
org.jboss.forum.test.BasicTest.
it extends EJBTestCase and use a bean from jboss.blocks to do that.
-
Once I've used a JNDI impl over file system.
that works and it is simple.
--- Dmitri Colebatch [EMAIL PROTECTED] a écrit :
Why not have a environment parameter that contains
the directory from which
to load the file? That way you could put the file
whereever it suits,
without having to put
Hi,
I am working on an application that uses a
JMS destination specified in jboss-app.xml
Deploying is fine :
creates destination (in jboss-app.xml)
creates another service (in
jboss-app.xml)
creates beans (in jars)
startsdestination
starts another
service
starts
beans
Undeploying
you can use the mbean MainDeployer MBean and ivoke it with an URL (it's JMX
way)
- Original Message -
From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 1:31 PM
Subject: [JBoss-user] remote deploy
is there a way to
you could use maybe the NonSerializableFactory and bind your mbean into it.
- Original Message -
From: Herve Tchepannou [EMAIL PROTECTED]
To: JBoss User Group [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 10:31 AM
Subject: [JBoss-user] EJB/MBean communication
What is the best
communication
What's that? is there any doc available about NonSerializableFactory?
Julien Viet wrote:
you could use maybe the NonSerializableFactory and bind your mbean into
it.
- Original Message -
From: Herve Tchepannou [EMAIL PROTECTED]
To: JBoss User Group [EMAIL PROTECTED
Subject: Re: [JBoss-user] EJB/MBean communication
Seems to be a propriatary approach...
I don't want my EJB to contains proprietary core, which will make them
non portable.
Is there any standard way to access JMX from EJB?
Julien Viet wrote:
look in the jboss sources :
server/src/main/org
servers have JMX.
Herve Tchepannou wrote:
Seems to be a propriatary approach... I don't
want my EJB to contains proprietary core, which will make them non
portable. Is there any standard way to access JMX from EJB? Julien
Viet wrote:
look in the jboss sources :
server
I got the same problem once with 3.00, I checked the code and
it comes from the fact that the JBossCMP can't do the
work because of distincts class definitions. Once your application
is reloaded your classes are not compatible with what see cmp engine.
At this time I was not very aware about
that's it.
even if you have the same class (serialID didn't change) it will fail
because Class
won't have the same identity. Maybe the problem comes from tehe fact
that the engine deals with not the deployment classloader.
- Original Message -
From: Ole Husgaard [EMAIL PROTECTED]
To:
it would be funny to have my login session as a SFSB and my files as Entity
CMP ;-)
- Original Message -
From: Holger Baxmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 2:19 PM
Subject: Re: [JBoss-user] Launching Swing Applications from JBoss 3.0.0
for my
expect. What
type of naming service is bound under
"A"?
Scott StarkChief Technology
OfficerJBoss Group, LLC
- Original Message -
From:
Julien
Viet
To: jboss-user
Sent: Wednesday, August 14,
Hi all,
I have on question about naming. I am using a
federated context through ExternalContext service.
My issue is about unbinding something in my
federated context via NamingContext :
For instance, if my context is bound
underA and in my context I have an object bound under B
The
You can't use relationship outside the deployment
(i.e ejb-jar.xml) scope
which has defined it.
The common solution is to use value objects to
export data for client :
simple java classes that reflects
beans
class DogVO { ... }
class OwnerVO { ... DogVo
dog;...}
and usually you put an
I want to packa topic service within my
ear.
The problem is that the topic is created and
registered in JNDI after my MDB checks
forits existence.
The Topic service bindsin
startService() and MDB check existence of topic in createService().
Therefore MDB creates a temporary topic and
within an ear
MDB shouldn't rely on the existence of outside objects until the start
step. How hard would this be to change?
david jencks
On 2002.07.08 14:57:17 -0400 Julien Viet wrote:
I want to pack a topic service within my ear.
The problem is that the topic is created
on sourceforge.net :
http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download
- Original Message -
From: John Hogan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 9:01 AM
Subject: Re: [JBoss-user] Template Application: no /servlet directory
Whenever a ejbean in an application has a class
which extends a class
packaged in a .jar :
.ear
|--foo.jar - FooBean extends
SommeClass
|--util.jar - SomeClass
is there something special to have this working
?
I know that using the classpath manifest
shouldfine forthat
but I've read
Hi,
I have a NullPointerException in
JDBCStoreManager
because of a null transaction returned by the
transaction manager
line 213 of JDBCStoreManager : int status =
tx.getStatus();
here tx object is null
I am using jboss Branch_3_0.
any ideas ?
Ejb-ref is bound to java:comp/env so getting an ejbHome is
ctx.lookup(java:comp/env/ + name); where
name is enclosed in ejb-ref-name tag.
But you can retrieve an ejbHome from global jndi without prefixing with
java:comp/env/
in your caller : home = ctx.lookup(name);
for the called in jboss.xml
I have had a similar problem but it was in an ejbPostCreate method. I fixed
it yesterday
and cvs has been updated in head and jboss3.0.0.
The problem might come from the findByPrimaryKey which trigger a
synchronisation and
the synchronisation for cmr is lost after that he consequence is that the
, June 14, 2002 2:13 PM
Subject: Re: [JBoss-user] CMR
Julien,
You are right; this is the same problem. The problem you were having,
could happen in any business method.
-dain
Julien Viet wrote:
I have had a similar problem but it was in an ejbPostCreate method. I
fixed
it yesterday
Hi all,
I would like to add programmatically a
Context to the Jetty Web server in my MBean.
I see a method addContext(..,..) in
jboss.web:Jetty=0 MBean but I don't see some methods
to remove that context later when my MBean will
unregister.
I don't want to create a .war on the disk and
66 matches
Mail list logo