[JBoss-dev] [XDoclet on JBoss (XDoclet/JBoss)] - xdoclet + xmbean + ServiceMBeanSupport sub-optimal

2004-04-16 Thread genman

I want to take advantage of xdoclet's jboss.xmbean generation, however it is very 
frustrating.  Especially in 3.2.4 CVS.

Right now in 3.2.3, I have to do this to get the ServiceMBeanSupport methods to show 
up:
   

  /**
   * @jmx.managed-operation
   */
  public void destroy() { super.destroy(); }
   

  /**
   * @jmx.managed-operation
   */
  public void create() throws Exception { super.create(); }
   

... etc.

This no longer works in 3.2.4.  All my X-MBeans broke.  It appears in 3.2.4 I have to 
expose a "jbossInternalLifecycle" operation as well.  (Couldn't this method name be 
shortened to "lifecycle"?  It sticks out like a sore thumb in the JMX console.)

  /**
   * @jmx.managed-operation
   *  description="lifecycle"
   *  name="op" type="java.lang.String"
   */
  public void jbossInternalLifecycle(String s) throws Exception 
  { super.jbossInternalLifecycle(s); }
   

I know there are entitites in the xmbean-dtd, like &defOps; but pasting this entity in 
the generated format is impossible to do with xdoclet.  Besides, it's an ugly hack.

This is my suggestion.  Add an attribute to the  element that indicates the parent, 
like so:



 
 org.jboss

Then, even if somebody fiddles with ServiceMBeanSupport, people's code doesn't break.  
It'd be very easy to "merge" the two documents together in the loader.  Then all that 
remains is patching xdoclet ...


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830891#3830891

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830891


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBoss IDE] - Re: Unable to Add Std. Archive

2004-04-16 Thread letiemble
Hi,

JBoss-IDE 1.2.230 doesn't work on M8, only with M6.
Checkout the CVS version or wait a bit.

Laurent.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830895#3830895

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830895


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBoss IDE] - XDoclets in Version 1.2.230 does not work with eclipse 3.0 M

2004-04-16 Thread mlehradt
Hi,

I installed JBoss IDE 1.2.230 for a fresh installation of eclipse 3.0 with no other 
plugins. Unfortunately the Xdoclet support does not work at all. There are no 
templates listed in Window > Preferences > JBoss IDE > XDoclet > Code Assist > 
Templates. If I try to display the templates I got an error message "The currently 
displayed page contains invalid values". Click on OK next click on templates again and 
the page is empty except the header message "XDoclet Tags available for completition".

Regards,
Maik


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830908#3830908

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830908


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: POP3 and TLS

2004-04-16 Thread kabkhan
Nice one!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830910#3830910

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830910


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBoss IDE] - Re: JBoss Deployment

2004-04-16 Thread stanley1610
Hi all,

Do you deploy the Tutorial successfully? If yes, could you share your opinion with us? 
Both Nilesh and I could not run it well and get the deployment error. Please help.

If you think the Tutorial cannot work well actually, can you suggest any Tutorial, 
which could be deployed successfully in practice, please?

Many thanks,
-stan


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830911#3830911

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830911


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [IIOP on JBoss] - Re: Janeva 6 & JBOSS

2004-04-16 Thread Mysteria_MM
Can you send me an example of "using Janeva with JBoss" if you have one??

I donÂt know how can I set the InitialContext!!
How can I Acces a EJB running on JBOss???

Thanks!!

My eMail: [EMAIL PROTECTED]

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830933#3830933

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830933


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Problems with concurrent transactions & isolation levels

2004-04-16 Thread spohl
This time I used a jboss-cache.jar compiled from the most recent jboss-head out of 
cvs. You mentioned a change in Region.java and I think you got it. With older 
jboss-cache.jar's I could always reproduce the dead-lock but never with the new jar in 
cvs :-)

But there is no change with the repeatable-read scenario (without LRUEviction) and the 
"loss of money".
I changed the testcase: I exchanged all System.out.println's against logging so that 
you find jboss.cache and testcase log entries mixed (much more better to read). 
Additionally if there are no outputs to the console the concurrency problems arise 
more often (due to higher concurrency).
I just sent you the log file via email.
I'm not sure if you could reproduce this second problem too?

Thanks,
S. Pohl

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830937#3830937

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830937


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] JBossRMIClassLoader

2004-04-16 Thread sg
Hi jboss developer, 

I had already post this question to the forum, but didnt get any feedback, may be 
since it was the 
wrong forum. I will try to ask here again.

I'm in the process of integration jboss in eclipse to use eclipse as j2ee gui. 
(sf.net/projects/jstaff) The 
trick is that the jboss inside of eclipse is part of an jboss cluster and so all 
services of jboss like 
transaction security and so on can be used in the client since both running in the 
same jvm. 

Anyway i have some serious problems with class-loading i try to fix since a long time.

Actually i have a own JbossMain class and just assign the eclipse classloader to 
jboss. 



Classloader parentCL = getEclipsePluginClassloader();
 Server server = loader.load(parentCL);



Thats working fine with one important exception: The JBossRMIClassLoader. I had read 
that the RMI try 
to find RMIClassLoaderSpi in the systemClassloader. Of course since i use the eclipse 
classloader as 
root for my jboss start up it could not be found. 



15:58:08,684 WARN  [ServiceController] Problem starting service jboss:service=Naming
java.lang.NoClassDefFoundError: org.jboss.system.JBossRMIClassLoader
at java.rmi.server.RMIClassLoader.initializeProvider(RMIClassLoader.java:679)
at java.rmi.server.RMIClassLoader.access$000(RMIClassLoader.java:93)
at java.rmi.server.RMIClassLoader$1.run(RMIClassLoader.java:103)
at java.security.AccessController.doPrivileged(Native Method)
at java.rmi.server.RMIClassLoader.(RMIClassLoader.java:100)
at 
sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)

OK, my next idea was to do not use the JBossRMIClassLoader so i comment the section 
out from my 
jboss-service.xml. 
This solve the classnotfound problem but of course provide more trouble on other 
pleases. 
I cant start up the jnp server. 




16:13:23,055 INFO  [NamingService] Starting jnp server
16:13:23,059 INFO  [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, 
bindAddress=/0.0.0.0, Client SocketFactory=null, Server 
[EMAIL PROTECTED]
16:13:23,093 ERROR [NamingService] Could not start on port 1099
java.net.BindException: Address already in use



The really stranger thing is that i had made serveral port scans and I'm sure the port 
is free! 

I run apple jdk 1.4.2 on mac os x 10.3.3. with a jboss 3.2.3 jetty inside of eclipse 3 
m 8. 

Please has some one any idea where i can search the problem? I was searching in the 
forum, google, 
commercial documentation and so on, but did not found any useful information. 

Thanks for any hints. 
Stefan 


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [ jboss-Patches-936293 ] Improved ChildProcessService MBean.

2004-04-16 Thread SourceForge.net
Patches item #936293, was opened at 2004-04-16 15:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=936293&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Szczepan Kuzniarz (szczepan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improved ChildProcessService MBean.

Initial Comment:
New features:

- child procesess might be respawned when it dies
- respawning-too-fast condition is checked
- CHILD_EXITED, CHILD_RESPAWNED, CHILD_RESPAWN_FAILED,
CHILD_RESPAWNING_TOO_FAST notifications are sent
- log level of child process might be customized

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=936293&group_id=22866


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: Improving message selector performance

2004-04-16 Thread [EMAIL PROTECTED]
Need to implement optimized access for a message selector per destination:
e.g.

  |   
  | JMSMessageID=?
  | jboss.mq:service=DestinationManager
  |   
  | 

See also this thread from jbossmq-user
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=48585

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830958#3830958

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830958


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Clustering 2 machines in two different datacenters

2004-04-16 Thread drbeta
Hi everyone!

Our customer would like to put the two machines we are clustering our application on 
in two different datacenters, 10km distance to each other. Has anyone experience with 
that or is it anyhow a good idea to do that, especially considering the latency-times 
of the network?
Thx a lot and have a nice day,

Lutz

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830963#3830963

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830963


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
I was wondering if you guys were planning any changes to the JCA infrastructure for 
JB4. Specifically, taking advantage of AOP to make things a little easier for people 
to write connectors.

I'm writing a proposal for something I've been thinking about that would use advisors 
to generate adapters at classload, given enough .xml.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830967#3830967

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830967


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - Accessing EJBs through a Firewall

2004-04-16 Thread kieranf
Hi.
I'm putting a system together that requires access to EJBs through a firewall. 
Initially I only opened the 1099 port in the firewall, but then I noticed that the 
remote objects used different ports. But these ports can be any number. Therefore, I 
do not know what rules to add to the firewall to allow certain traffic on certain 
ports. 

Is there a way of enforcing JBoss to only allow a certain port to be used
or is there a certain range of ports that JBoss uses for its RMI.

Regards 
kieranf

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830969#3830969

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830969


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Tomcat] - Re: configuaring embedded tomcat on jboss-3.2.3

2004-04-16 Thread stephoule
You can find the configuration file on:

$JBOSS_HOME/server/default/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830977#3830977

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830977


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
An interesting idea. A lot of the work in resource adapters follows a number of
patterns and is just boilerplate code.

Are you thinking of something like:


  | /**
  |  * @jca:manageable
  |  */
  | public class POJOResource
  | {
  | ...
  | }
  | 

Yes, it is already on our list to add aspects/interceptors to the JCA implementation in
JBoss4 so you can plugin your own behaviour. This is scheduled for after
the JBoss4 beta release when we have finished the required j2ee1.4 spec work.

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830980#3830980

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830980


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Yes, exactly.

But also like (I don't know xdoclet but you'll get the idea)


/**
 * @jca:pooled
 * @jca:secure
 * @jca:subject
 * @jca:internalsync/externalsync (i.e. JDBC-like or JMS-like, respectively)
 * @jca:makehandlesongetters (recurse tree of objects, so you're using handles, never 
directly hitting the resource itself)
 */
public class POJOResource

Obviously, the person JCA-ing their resource would have to know, but the probability 
of messing up will be because of real issues, not because someone forgot to write 
close correctly, or whatever.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830989#3830989

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830989


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Here's what I blogged earlier this morning.

JCA is a pain. It's complex, it's subtle, and it's easy to mess up. A better solution 
would be to define an advisor for any resouce, and generate the necessary JCA 
interfaces/managedconnections/factories behind the scenes at classload time.

This would work for

* JDBC
* JMS
* Mail
* HTTP
* Any other resource you want pooled and secure.

So far the necessary issues that would have to be addressed in an .xml file would be:

* Internally synchronized or externally synchronized

Not only could you wrap the resource, you could wrap any Foo (the client retrieval via 
the resource's getFoo() ). The entire resource graph could be wrapped, similar to how 
Connection and Statement are wrapped in the current JBossCX implementation.

This would allow anyone to turn client code into server code instantly.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830993#3830993

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830993


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - MDB instance pooling at startup like in Weblogic ?

2004-04-16 Thread rmunjuluri
Hello,

This is with reference to JBoss 3.2.3 with SonicMQ 5.0 plugin and JDK 1.4.2_01

I have developed about 3 MDBs that are use a simple Request/Reply paradigm. I am 
getting a handle to the Response Q in the EJB create method by performing a local JNDI 
lookup. 

The issue is, the MDB is created only when a message arrives at the Q and is forward 
to the MDB. This seems like it will have a performace issue (Looking up for every 
message). So, I wish to have some instances of the MDBs created at startup of JBoss. 
Is there a facility in JBoss to do this, just like in Weblogic ? If so how do I do it. 

I have read about using container-configuration, but could never get it to work. I 
have added a  in jboss.xml to reference a container-config> in 
standardjboss.xml, but I keep getting an exception that the  is not found at the point 
I am refering to it in jboss.xml.

any help is greatly appreciated.

thanx
-ram

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831010#3831010

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831010


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
Here's a challenge for you: implement it :-)

Adding resource pooling to a pojo with no transaction or security injection would be a 
proof
of concept.
Don't worry about the quality of the code, we can tidy that up later with a real
implementation.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831012#3831012

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831012


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [ jboss-Bugs-936465 ] JCA layer has invalid assumption about Log4jLoggerPlugin

2004-04-16 Thread SourceForge.net
Bugs item #936465, was opened at 2004-04-16 09:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=936465&group_id=22866

Category: JBossCX
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Scott M Stark (starksm)
Assigned to: Scott M Stark (starksm)
Summary: JCA layer has invalid assumption about Log4jLoggerPlugin

Initial Comment:
JBoss 3.2.3 will not start with a custom
Log4jLoggerPlugin  because some code assumes no
replacement of the standard logger. See stack trace
below generated during startup:

This is the line at the top of the stack:

PrintWriter logWriter = new
LoggerWriter(((org.jboss.logging.Log4jLoggerPlugin)log.getLoggerPlugin
()).getLogger());



13:37:33,175 ERROR [TxConnectionManager] Starting failed
java.lang.ClassCastException:
com.apropos.api.jboss.JBossLoggerPlugin
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.startService(BaseConnectionManager2.java:342)
at
org.jboss.resource.connectionmanager.TxConnectionManager.startService(TxConnectionManager.java:284)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy14.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:394)
at
org.jboss.system.ServiceController.start(ServiceController.java:411)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at java.lang.reflect.Method.invoke(Native Method) 

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=936465&group_id=22866


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
That is the plan. I'm working on a JCA adapter for the jboss-mail project, but once 
I'm done with that I'm going to start working on this.

I need to start picking up JBoss-AOP, so now I have a good excuse :D

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831028#3831028

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831028


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Adrian,

Do you know the state of the jbosspool project in CVS? If it's old and not used, I'll 
just mock up a quick one myself.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831037#3831037

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831037


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: JBoss Production Deployment Issues

2004-04-16 Thread richardzheng
Could you please tell me how to clean files from /tmp under Linux?

Thanks
Richard

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831039#3831039

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831039


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBoss IDE] - UTF-8 deployment Exception: help me please

2004-04-16 Thread mauro_franchi
Hi,
i've a problem when i deploy my project in JBoss 3.2.3.
My project is a J2EE application with samo Entity Bean, two Session Stateless Bean and 
some Servlet.
When i try to deploy my project, i receive this error:
19:55:52,421 INFO  [MainDeployer] Starting deployment of package: 
file:/C:/Programmi/jboss-3.2.2/server/default/deploy/TirocinioApp.ear
  | 19:55:52,421 INFO  [EARDeployer] Init J2EE application: 
file:/C:/Programmi/jboss-3.2.2/server/default/deploy/TirocinioApp.ear
  | 19:55:52,890 ERROR [MainDeployer] could not create deployment: 
file:/C:/Programmi/jboss-3.2.2/server/default/tmp/deploy/tmp22599TirocinioApp.ear-contents/TirocinioEJB.jar
  | org.jboss.deployment.DeploymentException: invalid byte 2 of 3-byte UTF-8 sequence 
(0x20); - nested throwable: (java.io.UTFDataFormatException: invalid byte 2 of 3-byte 
UTF-8 sequence (0x20))
  | at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
  | at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
  | at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
  | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  | at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
  | Caused by: java.io.UTFDataFormatException: invalid byte 2 of 3-byte UTF-8 sequence 
(0x20)
  | at org.apache.xerces.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:678)
  | at org.apache.xerces.impl.io.UTF8Reader.read(UTF8Reader.java:389)
  | at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3186)
  | at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.peekChar(XMLEntityManager.java:1908)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCDATASection(XMLDocumentFragmentScannerImpl.java:923)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1474)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
  | at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
  | at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
  | at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
  | at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)
  | at 
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
  | at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
  | ... 20 more
  | 19:55:52,890 ERROR [MainDeployer] could not create deployment: 
file:/C:/Programmi/jboss-3.2.2/server/default/deploy/TirocinioApp.ear
  | org.jboss.deployment.DeploymentException: invalid byte 2 of 3-byte UTF-8 sequence 
(0x20); - nested throwable: (java.io.UTFDataFormatException: invalid byte 2 of 3-byte 
UTF-8 sequence (0x20))
  | at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
  | at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
  | at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
  | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
  | at org.jbos

[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread acoliver
Where is your blog steve?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831042#3831042

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831042


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: Berkeley DB/Java

2004-04-16 Thread acoliver
Thanks :-).  I have two step kids as well.  ditto on the fun/work.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831043#3831043

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831043


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: Script Runner

2004-04-16 Thread acoliver
This is good news.  I suggest either localhost by default but overridable or 
getHostName by default as opposed to XML.  Also maybe the override could be a simple 
environment variable that we could use throughout "MS_HOSTNAME=foo.org" for the 
build...  I don't really want to do a manual edit of a file for build/unit where it 
can be helped.  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831045#3831045

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831045


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Blog

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831048#3831048

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831048


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
It's very minimal, tech oriented. Mostly it's just links to interesting things that 
I've found, cuz I hate using bookmarks in browsers.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831047#3831047

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831047


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
jbosspool is legacy stuff used in 2.4.x

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831053#3831053

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831053


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Just thinking out loud here. Don't mind me.

Intercept the constructor. Instead of just returning an instance, look up from the 
pool (say an ArrayList) the first unused instance. Set a flag to say it's in use and 
return the instance.

Intercept the finalize(). In the AOP-all example there's an extra set of 
"Entering../Leaving.." output, so maybe it's using the finalize or something. That's 
really the closest thing we have to a deconstructor in Java, which should be fine, 
since that's where you're supposed to close any resources anyways.

Figure out what to call when a method is called. Should we directly call the method on 
the object? The idea that JCA uses is that of handles, so you're never directly 
pointing to the actual resource object.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831051#3831051

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831051


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
You don't want to use finalize() it isn't guaranteed to be called and even if does get
called, it wrecks gc performance.

A real solution would be to do caller side analysis/weaving:
i.e.

POJOResource pr = new POJOResource;
pr.doSomething();

becomes (pseudo code)

POJOResource pr = POJOResourceManager.get();
try
{
pr.doSomething();
}
finally
{
POJOResourceManager.release(pr);
}

But this requires a fair bit of analysis of the bytecode.

A simpler solution would be to assume the resource has a close() method
and that it is called by the client. You would just identify the close operation
in the metadata.

The handles are just "proxies".

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831056#3831056

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831056


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Found a BUG in EAR hot deployment

2004-04-16 Thread yurifyurif
I believe I found a bug in JBoss hot undeploy algorithm. Here is my setup:
- Jboss 3.2.3 running on Linux
- a single .ear archive
- this ear includes: .war archive, .sar archive, and .jar archive:

.sar
- Jboss service with mbean name "my.domain:id=xyz"

.war
- a servlet
- WEB-INF/jboss-web.xml with my.domain:id=xyz

.jar
- a statless ejb
- META-INF/jboss.xml with  .. ...   my.domain:id=xyz.. .. 


As you can see, I want both the servlet and the ejb to explicitly depend on the 
'my.domain:id=xyz' service coming from the .sar archive.
One the ejb gets created, the following two services get started:
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB'  with the mbean class 
StatelessSessionContainer.java
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' with the mbean class 
EjbModule.java

After hot -undeploy (touch on the .ear file) the service 
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' gets destroyed, but its mbean is 
not unregistered from the mbean registry.
So, during hot deploy happening right after that the service 
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB'  failes to get initialized, 
throwing an exception ("the service already exists")

This bug was so annoying that I went of to debug JBoss. Here is what I found (in 
chronological sequence):

- The MainDeployer.java starts undeploy process for the ear
- it iterates over the sorted list of sub deployments and calls stop and destroy on 
them
- the order of the sub deployments in this process is the following: war, jar, sar 
(determined by DeplymentSorter.java)
- when war sub deployment gets destroyed, it nukes its own class loader:
 // Nuke my stuff, this includes the class loader
 di.cleanup();
This is in MainDeployer.java  line #557 in jboss 3.2.3 source
- the class loader generates jmx notification "destroy" for every class loaded from 
this ear (a single class loader for the entire ear)
- the service controller of the service 'my.domain:id=xyz' gets the message to destroy 
this service; it determines the dependencies of this service and calls destroy on them
- the the session 'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' gets destroyed; 
it does it successfully, however its mbean is not unregistered; the state of the 
session becomes "DESTROYED"
- the second service related to the stateless session ejb - 
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' gets destroyed. Under normal 
conditions, it is this guy that needs to be destroyed first. He then unregisters the 
mbean of the StatelessSessionContainer.java service. However, because of the following 
code in EjbModule.java destroyService(), line #371, this does not happen:
 Container con = (Container) iter.previous();
 ObjectName jmxName = con.getJmxName();
 int conState = con.getState();
 boolean destroyContainer = conState == CREATED || conState == STOPPED   || 
conState == FAILED;
The reason it doesn't happen is because the conState is DESTROYED.


So, most likely one (or more) of the following statements is true:
1. It's very questionable why the sub deployment of the main deployment is allowed to 
nuke its class loader. This should be done by the main deployment.
2. The effect of the .. in jboss.xml should be such that 
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' (the EjbModule.java) becomes 
the dependent service, and is always gets destroyed before 
jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' (This is least likely in my opinion)
3. connState == DESTROYED should be one of the several service states causing boolean 
destroyContainer to become true (This is most likely to be true)

Please let me know if there is another workaround for this problem.
Yuri


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831057#3831057

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831057


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Actually it doesn't look like aop-all example is using finalize. The first is a read, 
then a write, so it looks like it's reading the value, then ++ing it.
Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831058#3831058

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831058


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Clusters on JBoss (Clusters/JBoss)] - JBoss::Cluster::GetNodes.pm

2004-04-16 Thread npdavis
All,
I am building a Jboss cluster aware perl module for our legacy apps to take advantage 
of JBoss clustering and failover by listening to the UDP broadcasts, to maintain a 
near realtime list of available nodes.

What is the possibility of me getting the datagram spec?

If this is inappropriate for this list, I'll re-post on the user list.

I have a UDP client eavesdropping on the broadcasts (really cool!!!) but don't know 
where to start with parsing these datagrams. See below.

This module will be extremely useful to people who want to plop a Jboss cluster in 
their DMZ and take advantage of the cutting edge tech in Jboss, without rewriting all 
of their apps.

Once perl is done, I will be doing a php port, then a c library (with appropriate 
updates to the perl and php modules) If I can somehow work with this data. I could do 
a regex on split arrays, but need a beginning and end for each message.

Any way of getting a spec which defines these messages, fields, and meanings?
Or alternatively, a list of libraries so I can figure it out from the source?
I am unsure of how to digest these messages.

LMK,
thx,
Neil
(slightly adjusted example from CPAN)
  | #!/usr/bin/perl -w
  |  # client
  | 
  |  use strict;
  |  use IO::Socket::Multicast;
  |  use IO::Socket::INET;
  |  use constant GROUP => '228.3.2.1';
  |  use constant PORT  => '45566';
  | 
  |  my $sock = IO::Socket::Multicast->new(Proto=>'udp',LocalPort=>PORT);
  |  $sock->mcast_add(GROUP) || die "Couldn't set group: $!\n";
  | 
  |  while (1) {
  |my $data;
  |next unless $sock->recv($data,1024);
  |print $data;
  |  }
  | 
  | 

To me it looks like a fixed width with some control characters.
Sample from raw print:
VT102UDPDefaultPartitionNAKACK
  |   
0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099STABLEr[Lorg.jgroups.Address;

fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099xwz
  | 
  | UDPDefaultPartitionNAKACK
  |  
0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099STABLEr[Lorg.jgroups.Address;
 
fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099xwzĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚
  | VT102VT102
  | 
pwUDPDefaultPartition0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099STABLEr[Lorg.jgroups.Address;
 
fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099xwz
  | 
  | 
pwUDPDefaultPartition0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099STABLEr[Lorg.jgroups.Address;
 
fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%16VT102VT102VT102VT102VT1021.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099xwzĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚
  | 
  | 
pwUDPDefaultPartition0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099STABLEr[Lorg.jgroups.Address;
 
fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50UDPDefaultPartitionVT102VT102VT102VT102VT102NAKACK0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099STABLEr[Lorg.jgroups.Address;

fĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚QqĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚Mxpsrrg.jgroups.stack.IpAddressĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚5a0F
  |

xpwĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099xsq~wĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I2161.161.73.50:1099xwz
  
UDPDefaultPartitionNAKACK0220ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚wRĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚ĂƒĂ‚I%161.161.73.37:1099STABLEr[Lorg.jgroups.

[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Yeah I think that'd be easier. Just assume there's a close and intercept that.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831059#3831059

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831059


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: Improving message selector performance

2004-04-16 Thread genman

A "cheap" way to improve performance would be to run the selector against messages 
added to the queue, add references to these messages into a hashtable (key would be 
the selector, value would be the sorted message IDs).  When reading using a selector, 
if it matches a pre-existing optimized selector exactly, then the references would be 
pulled from the selector hashtable.

One nice benefit is the selector is only evaluated once.

A more sophisticated solution would include indexing each of the properties separately 
and using a tree.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831060#3831060

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831060


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - Found a BUG in EAR hot deployment (EJB related)

2004-04-16 Thread yurifyurif
I believe I found a bug in JBoss hot undeploy algorithm. Here is my setup:
- Jboss 3.2.3 running on Linux
- a single .ear archive
- this ear includes: .war archive, .sar archive, and .jar archive:

.sar
- Jboss service with mbean name "my.domain:id=xyz"

.war
- a servlet
- WEB-INF/jboss-web.xml with my.domain:id=xyz

.jar
- a statless ejb
- META-INF/jboss.xml with  .. ...   my.domain:id=xyz.. .. 


As you can see, I want both the servlet and the ejb to explicitly depend on the 
'my.domain:id=xyz' service coming from the .sar archive.
Once the ejb gets created, the following two services get started:
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB'  with the mbean class 
StatelessSessionContainer.java
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' with the mbean class 
EjbModule.java

After hot -undeploy (touch on the .ear file) the service 
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' gets destroyed, but its mbean is 
not unregistered from the mbean registry.
So, during hot deploy happening right after that the service 
'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB'  failes to get initialized, 
throwing an exception ("the service already exists")

This bug was so annoying that I went off to debug JBoss. Here is what I found (in 
chronological sequence):

- The MainDeployer.java starts undeploy process for the ear
- it iterates over the sorted list of sub deployments and calls stop and destroy on 
them
- the order of the sub deployments in this process is the following: war, jar, sar 
(determined by DeplymentSorter.java)
- when war sub deployment gets destroyed, it nukes its own class loader:
 // Nuke my stuff, this includes the class loader
 di.cleanup();
This is in MainDeployer.java  line #557 in jboss 3.2.3 source
- the class loader generates jmx notification "destroy" for every class loaded from 
this ear (a single class loader for the entire ear)
- the service controller of the service 'my.domain:id=xyz' gets the message to destroy 
this service; it determines the dependencies of this service and calls destroy on them
- the the session 'jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' gets destroyed; 
it does it successfully, however its mbean is not unregistered; the state of the 
session becomes "DESTROYED"
- the second service related to the stateless session ejb - 
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' gets destroyed. Under normal 
conditions, it is this guy that needs to be destroyed first. He then unregisters the 
mbean of the StatelessSessionContainer.java service. However, because of the following 
code in EjbModule.java destroyService(), line #371, this does not happen:
 Container con = (Container) iter.previous();
 ObjectName jmxName = con.getJmxName();
 int conState = con.getState();
 boolean destroyContainer = conState == CREATED || conState == STOPPED   || 
conState == FAILED;
The reason it doesn't happen is because the conState is DESTROYED.


So, most likely one (or more) of the following statements is true:
1. It's very questionable why the sub deployment of the main deployment is allowed to 
nuke its class loader. This should be done by the main deployment.
2. The effect of the .. in jboss.xml should be such that 
'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' (the EjbModule.java) becomes 
the dependent service, and is always gets destroyed before 
jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB' (This is least likely in my opinion)
3. connState == DESTROYED should be one of the several service states causing boolean 
destroyContainer to become true (This is most likely to be true)




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831062#3831062

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831062


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: Improving message selector performance

2004-04-16 Thread [EMAIL PROTECTED]
Yes, but only use maintain the hashtable/hashmap if there is an optimized-selector
and the receiver's selector matches the optimized selector.

Care to implement it?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831064#3831064

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831064


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: ChangeNotes: 3.2.4

2004-04-16 Thread [EMAIL PROTECTED]
Example jms persistence using Sybase
Based on confiig provided by amresh.deshmukh at drkw.com


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831065#3831065

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831065


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: ChangeNotes: 3.2.4

2004-04-16 Thread [EMAIL PROTECTED]
Bug fix:

Null the exception listener such that errors during the close don't invoke it

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831066#3831066

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831066


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Intercepting Constructors

2004-04-16 Thread spiritualmechanic
I'd like to intercept a constructor such that I don't return the actual object, but an 
instance of the same object type from a pool.

It looks like 

Object o = invocation.invokeNext() will get me the object, so maybe what I want to do 
is do:

Object o = Pool.getInstance();

Is that sane?
Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831068#3831068

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831068


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread spiritualmechanic
Very interesting.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831070#3831070

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831070


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: Found a BUG in EAR hot deployment

2004-04-16 Thread [EMAIL PROTECTED]
Download the latest source from CVS (3.2.4RC2)

1) No longer exists
2) I don't follow this point can you restate it more clearly
3) Was fixed in 3.2.4RC1

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831071#3831071

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831071


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - Re: Found a BUG in EAR hot deployment (EJB related)

2004-04-16 Thread [EMAIL PROTECTED]
Please do not cross post.

As a penance, provide a link in this post to the one where I answered your question.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831073#3831073

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831073


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread Bill Burke
This was a single threaded test.  Maybe it is different  in multithreaded test.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831074#3831074

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831074


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread Bill Burke
sure.  One of the aspects tests actually creates a proxy and returns that instead.

Constructor interception is an "around" thingy so you can return any instance you want 
of the constructor.

You can also do call side constructor interception of you only want to use the pool in 
certain code structures.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831075#3831075

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831075


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: Found a BUG in EAR hot deployment

2004-04-16 Thread yurifyurif
Thanks for the response. 

I just realized that xml markup around tag depends in my email was eatten by html. 
This may make my message confusing, so I paste these fragments again with html 
disabled.

.war
- a servlet
- WEB-INF/jboss-web.xml with my.domain:id=xyz

2. The effect of the my.domain:id=xyz in jboss.xml should be such 
that 'jboss.j2ee:module=my.domain:id=xyz,service=EjbModule' (the EjbModule.java) also 
becomes the dependent service, and always gets destroyed before 
jboss.j2ee:jndiName=my.domain:id=xyz,service=EJB'  service (This is least likely in my 
opinion) 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831076#3831076

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831076


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread [EMAIL PROTECTED]
Yes, the constructor interceptor runs in the context of the calling code.

Uninstrumented code:

POJO pojo = new POJO();

Instrumented and intercepted - (pseudo code):

POJO pojo = POJO.staticMethodReplacingConstructor();

With a stacktrace similar to this:

POJO.PoolingInterceptor.invoke();
POJO.ConstructorInvocation.invoke();
POJO.staticMethodReplacingConstructor();

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831077#3831077

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831077


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread [EMAIL PROTECTED]
Or if the Object is expensive to construct like a database connection.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831079#3831079

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831079


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
It looks like there's similar functionality already in JBoss-Cache, using AOP to 
cachify a List or a Map. That's basically the first step in pooling. There may be a 
difference in what JCA would want and what Cache already has. Not sure.

Looking into it some more.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831078#3831078

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831078


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread [EMAIL PROTECTED]
Surely MultiThreaded would be worse (more contention)
unless your pooling uses a ThreadLocal pool

I removed all that crap from JBossMQ

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831080#3831080

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831080


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: Found a BUG in EAR hot deployment

2004-04-16 Thread yurifyurif
Adrian,
regarding your 
3) Was fixed in 3.2.4 RC1

I just checked out rc1 source code and EjbModule.java still contains the same
boolean destroyContainer = conState == CREATED || conState == STOPPED || conState == 
FAILED;
  | 

DESTROYED is still missing.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831082#3831082

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831082


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread Bill Burke
The test I did WAS using ThreadLocal as the pool.  Object creation was still faster.  
Maybe Object creation has a mutex and a multithreaded test would make regular object 
creation slower than ThreadLocal.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831081#3831081

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831081


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Performing post compilation on jars

2004-04-16 Thread Bill Burke
Would be interesting, but it is not a priority right now.

I would be most greatful if you would take on the task.  Right now, I'm just one guy 
and there's too much to do.

BIll

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831083#3831083

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831083


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Performing post compilation on jars

2004-04-16 Thread Bill Burke
I take that back...Claude is helping with Asynch stuff, but I do need help in the core.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831084#3831084

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831084


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread spiritualmechanic
Sweet. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831086#3831086

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831086


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
The way you implement it is the similar, but:

cache.equals(pool) == false;

cache is a map of identity to objects having different state
pool is a set of equivalent objects

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831089#3831089

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831089


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: Script Runner

2004-04-16 Thread mikea-xoba
right. my choice of 'ceau.com' was mainly motivated by not wanting to get in the way 
of other tests which put up Server mbeans, for instance, that listen on port 9000 by 
default --- so a fully running externally set-up localhost server on port 9000 would 
tend to break the unit tests.

what about starting/stopping a full localhost jboss-mail server in the setUp() and 
tearDown() methods of the test? in a sense its similar to putting up a single mbean 
like in some of the other tests, but of course more extensive since 400-500 other 
mbeans would follow along... but if we did that, it may still wind up saving some time 
since the environment would be preset and the penalty would be only 1-2 minutes for 
starting/stopping a full jboss deployment. but then if we started a full jboss server 
in the background for testing, we'd probably try to get efficiencies with the other 
tests too by not putting up single mbeans in them. 

any comments/thoughts/criticisms welcome --- i'm not really sure what the best way to 
do this is.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831090#3831090

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831090


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: Found a BUG in EAR hot deployment

2004-04-16 Thread [EMAIL PROTECTED]
Why would you want to destroy the container if it is DESTROYED.
Your problem is with unregistering the container, look further down.

http://cvs.sourceforge.net/viewcvs.py/jboss/jboss/src/main/org/jboss/ejb/EjbModule.java?r1=1.53&r2=1.54

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831091#3831091

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831091


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: object pooling detrimental to performance

2004-04-16 Thread [EMAIL PROTECTED]
I know yours was Bill.

Steve is interested in it in the context of a global pool:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=48594


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831092#3831092

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831092


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Re: Found a BUG in EAR hot deployment

2004-04-16 Thread yurifyurif
Got it. Thanks. In my original message I meant exactly that - unregister, not destroy.

So, as it turns out, all my 3 statements were valid, and all 3 are fixed.
Wow, I'm looking forward for this 3.2.4 release!

Thanks for the instant responses.
Yuri

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831093#3831093

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831093


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - Transaction rollback problemwith mysql

2004-04-16 Thread sharris
Simple transaction rollback was working with hypersonic, but seems not to be working 
when we switched to mysql. 

Running mysql-connector-java-3.0.11 and mysql 4.0.18-0 (client and server) with JBoss 
3.2.3 java 1.4.2_04.

We have 2 stateless session beans FooService and BarService. FooService has a 
createFoo() method which, after creating an FooBean entity bean (CMP, CMR), calls  a 
bar() method on BarService.  Bar() throws a RemoteException. 

I see the TransactionRolbackException as triggered by bar() on my JBoss console, but 
the FooBean is still in the database when I get back to the client. As I said, with 
hypersonic this was not the case.

Both FooService and BarService are declared to have container managed transactions, 
and both createFoo(0 and bar() have the required transaction attribute. There is no 
client transaction.

Is there some configuration that needs to be changed or what?






View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831097#3831097

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831097


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: about MBean policy

2004-04-16 Thread [EMAIL PROTECTED]
The server.conf file is not loaded. You have to configure the use of a security 
manager on the command line and then pass in the policy file location.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831098#3831098

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831098


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread spiritualmechanic
Do I still need to call invocation.invokeNext(), or will I be missing executing some 
constructor processing if I don't?

Like:

invokation.invokeNext();
o = Static.method();
return o;

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831099#3831099

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831099


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread Bill Burke
No, you do not have to call invokeNext.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831101#3831101

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831101


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Okay, that makes sense. Righto. I'll see what I can do from that.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831100#3831100

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831100


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread [EMAIL PROTECTED]
In fact, it isn't that you "don't have to", "you don't want to".
invocation.invokeNext() will lead to the real constructor creating an Object instance
you don't want.

When you do want to invoke the real constructor, use reflection.

POJO.class.newInstance();

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831104#3831104

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831104


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Providing metadata, services to pojo resources

2004-04-16 Thread [EMAIL PROTECTED]
I have added reflective setting of the MBeanServer and MBeanInfo for ModelMBean 
resources that support the corresponding setters:


  |public void setResource(Object resource)
  |{
  |   this.resource = resource;
  |   /* Pass on the MBeanInfo and MBeanServer to pojo resources if they
  |   support setMBeanServer(MBeanServer) and setMBeanInfo(MBeanInfo) methods
  |   */
  |   Class resClass = resource.getClass();
  |   // Check setMBeanServer(MBeanServer)
  |   try
  |   {
  |  Class[] sig = {MBeanServer.class};
  |  Object[] args = {server};
  |  Method setMBeanServer = resClass.getDeclaredMethod("setMBeanServer", sig);
  |  setMBeanServer.invoke(resource, args);
  |   }
  |   catch(NoSuchMethodException ignore)
  |   {
  |   }
  |   catch(Exception e)
  |   {
  |  log.trace("Failed to invoke setMBeanServer", e);
  |   }
  |   // Check setMBeanInfo(MBeanInfo)
  |   try
  |   {
  |  Class[] sig = {MBeanInfo.class};
  |  Object[] args = {info};
  |  Method setMBeanInfo = resClass.getDeclaredMethod("setMBeanInfo", sig);
  |  setMBeanInfo.invoke(resource, args);
  |   }
  |   catch(NoSuchMethodException ignore)
  |   {
  |   }
  |   catch(Exception e)
  |   {
  |  log.trace("Failed to invoke setMBeanInfo", e);
  |   }
  |}
  | 

In general going forward with a pojo microkernel, what are we thinking about in terms 
of mapping from a particular containers (JMX, EJB, WebService, ...) metadata and 
service interfaces onto a pojo that can be used in multiple containers?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831105#3831105

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831105


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Observable Pattern on the WIKI

2004-04-16 Thread [EMAIL PROTECTED]
http://jboss.org/wiki/Wiki.jsp?page=GOFObservable

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831107#3831107

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831107


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: Providing metadata, services to pojo resources

2004-04-16 Thread ivelin
Scott, can you expand a bit more on the value of your addition. I am not able to 
follow. 

Ivelin


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831108#3831108

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831108


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: Providing metadata, services to pojo resources

2004-04-16 Thread [EMAIL PROTECTED]
Generically it is a callback interface like MBeanRegistration
for services that want to know about their container and their configuration


  | public interface ContainerRegistration
  | {
  |void setContainer(Container container);
  |void setMetaData(MetaData metaData);
  | }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831110#3831110

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831110


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: Providing metadata, services to pojo resources

2004-04-16 Thread [EMAIL PROTECTED]
You can take a pojo and expose it as a service using an XMBean, but it has no ability 
to know what MBeanServer it is registered with, or access to its management metadata. 
This change allows for an IOC type of setting of the container context such as the 
MBeanServer by providing a setMBeanServer method:


  | public class PackageVersionService
  | {
  |private MBeanServer server;
  | 
  |public void setMBeanServer(MBeanServer server)
  |{
  |   this.server = server;
  |}
  | ...
  | 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831109#3831109

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831109


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Adrian,

I can send you my JCPool mbean if you want to look at the code, to see if I'm on the 
right track, or if I'm missing any obvious features.

If you don't want to, or don't have time, or just have better things to do, that's 
fine as well :D I'll send it on whenever I have the AOP part working, then, all 
wrapped together.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=383#383

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=383


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread marc fleury
So I am looking at the code, 

1- well done Adrian this is kick ass stuff
2- Why do we call it the "Subject"? why don't you call it observable. 
3- We need to start talking of aspects.  I realize we apply the "observable" aspect 
and introduce that behavior.  That we introduce it on set is irrelevant, yet today the 
way to configure the XML. 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831112#3831112

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831112


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Also, with regards to the real solution i.e. caller side analysis weaving, I think 
that would be super-cool. The point of this is to make it as easy as possible for the 
customer of JCA, which may make the container developer's life a little harder, but I 
think it'd be worth it.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831113#3831113

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831113


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: Providing metadata, services to pojo resources

2004-04-16 Thread [EMAIL PROTECTED]
Ok, good. One step of abstraction above this is the notion of container mediated 
services. So for example, in the case of my ModelMBean pojo wanting access to the 
MBeanServer, if it only needs this to access a service representable by an interface, 
it would be better if there was a dependency specification that was mapped onto a 
service binding which determined the implementation type: MBean, EJB, WebService, 
POJO, etc.

This pulls in a lot of complexity that we don't transparently deal well with today but 
I would like to think about handling better:

  Dependency
  Redeployment and life cycle
  Transparency of redeployment
  Call context propagation; security, tx, call by value/reference handling



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831114#3831114

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831114


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread [EMAIL PROTECTED]
Post it as a patch at www.sf.net/projects/jboss

I might get chance to look at it over the weekend, although it is a good friend's
birthday so I will probably me "non compus mentis" :-)
http://www.clickdocs.co.uk/glossary/non-compus-mentis.htm

Regards,
Adrian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831117#3831117

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831117


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread [EMAIL PROTECTED]
I used "Subject" because that is the term used by the GOF

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831118#3831118

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831118


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread Bill Burke
It should also be triggerable by an annotation.


  | http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831119#3831119

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831119


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread Bill Burke
Also, you can use annotations within the introduction.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831120#3831120

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831120


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


RE: [JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread Scott M Stark
Hey, don't go killing too many brain cells there! You have a lot
to do on the next gen micrkernel :#)

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, April 16, 2004 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP
> 
> Post it as a patch at www.sf.net/projects/jboss
> 
> I might get chance to look at it over the weekend, although 
> it is a good friend's birthday so I will probably me "non 
> compus mentis" :-) 
> http://www.clickdocs.co.uk/glossary/non-compus-mentis.htm
> 
> Regards,
> Adrian
> 



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread Bill Burke
Sorry, one more thing.

THis should be extended to do more fine grain obervations.  Not only field changes, 
but also method calls and such.  Also, per field, per method, etc...

Also, it might make sense to not bind an interceptor at the class level, but rather 
bind the interceptor on a per-instance basis.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831121#3831121

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831121


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [ jboss-Patches-936699 ] Generic test pooling MBean

2004-04-16 Thread SourceForge.net
Patches item #936699, was opened at 2004-04-17 00:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=936699&group_id=22866

Category: JBossCX
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Lewis (steveklewis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Generic test pooling MBean

Initial Comment:
In the process of prototyping JBoss-AOP generic pooling
mechanism, to eventually be used for JCA/AOP. Later on
I should be sending some AOP code that intercepts the
constructor and retrieves an instance from the pool.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=936699&group_id=22866


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Posted. Have a great weekend. But not *too* great.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831122#3831122

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831122


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JMX on JBoss (JBoss/JMX)] - Re: Providing metadata, services to pojo resources

2004-04-16 Thread [EMAIL PROTECTED]
On call context propagation I would like to use something similar to
what Bill has done container interceptors based on metadata.

i.e. if you POJO has the transaction demarcation aspect then when
you construct the remote proxy, it includes the client side transaction interceptor

I'd also like to have server side "demarshalling" interceptors so
we can treat remote/local invocations the same. 
It also avoids the unnecessary promotion of thread local meta data to invocation level
on every local invocation.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831123#3831123

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831123


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread [EMAIL PROTECTED]
Can you explain the annotation usage.
Is that doable now or do we have to code something?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831124#3831124

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831124


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Observable Pattern on the WIKI

2004-04-16 Thread [EMAIL PROTECTED]
I already created this topic for Observable improvements
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=48622

Obviously dynamically adding/removing the interceptor is preferrable based on whether
{add/remove}Observer is invoked. But I didn't want to overcomplicate the initial
implementation.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831125#3831125

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831125


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] JBoss Shutdown Failed! JBoss (HEAD/winxp/1.4.1_06) [AUTOMATED]

2004-04-16 Thread kimptoc_mail
===
==THIS IS AN AUTOMATED EMAIL - SEE http://jboss.kimptoc.net/ FOR DETAILS==
===
===
Sat Apr 17 01:44:54 GMTDT 2004
===
HERE ARE THE LAST 100 LINES OF THE LOG:
===
==THIS IS AN AUTOMATED EMAIL - SEE http://jboss.kimptoc.net/ FOR DETAILS==
===
===
01:44:53,562 WARN  [NamingContext] Failed to connect to localhost:1099
javax.naming.CommunicationException: Failed to retrieve stub from server 
localhost:1099.  Root exception is 
java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2438)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:197)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1182)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:513)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:506)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.Shutdown.main(Shutdown.java:182)
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 
localhost:1099
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1195)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:513)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:506)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.Shutdown.main(Shutdown.java:182)
Exception in thread "main" JBOSS SHUTDOWN FAILED

===
Sat Apr 17 01:44:54 GMTDT 2004
===
CYGWIN_NT-5.1 quarks2 1.5.4(0.94/3/2) 2003-09-12 23:08 i686 unknown unknown Cygwin
===
java -version
java version "1.4.1_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06-b01)
Java HotSpot(TM) Client VM (build 1.4.1_06-b01, mixed mode)


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread acoliver
Just wanted to say this sounds like a pretty awesome idea.  Anything that makes it so 
that I never have to write a JCA adaptor sounds awesome to me.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831131#3831131

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831131


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: Script Runner

2004-04-16 Thread acoliver
I'm planning to change the default port to 25/110.  9000 and 9001 was just for while I 
didn't want anyone to ACCIDENTLY set up an open relay while we worked out the kinks.  
I'm confident that our defaults won't be an open relay at least by M1.  I'm planning 
to cut M1RC1 this weekend.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831132#3831132

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831132


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - M1RC1 this weekend

2004-04-16 Thread acoliver
I'm going to cut M1RC1 this weekend.  I'll probably cut a branch for this so just be 
advised.  "MS_M1_BRANCH" or something.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831133#3831133

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831133


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JCA on JBoss] - Re: JCA in JB4/AOP

2004-04-16 Thread spiritualmechanic
Word, Andy. I hate it, too. I intend to only have to learn it once, then make it 
generic, and then help other people. I can already think of multiple cases where we 
could have used this at my workplace.

I want to make it very smart, as well, so that if someone sets up a connector, and 
they use it incorrectly, it will tell them exactly what's going wrong. You could have 
standard .xmls for regular things, like HTTP or SSL connections.

In the long run, it'd be much easier to support as well. Most people have avoided JCA 
just because it *is* such a pain. But it's so freaking powerful.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831134#3831134

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831134


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread spiritualmechanic
Bill: "One of the aspects tests actually creates a proxy and returns that instead."

Is that in the AOP examples, or in jbosstest?

Bill: "You can also do call side constructor interception of you only want to use the 
pool in certain code structures."

I think Adrian mentioned that as well, in the JCA forum:

Adrian: "A real solution would be to do caller side analysis/weaving"

Slowly, this is beginning to make sense. Looking at the caller AOP example.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831135#3831135

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831135


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread Bill Burke
Let me know if the tutorial is complete enough and answers your questions well enough.

Thanks,

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831137#3831137

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831137


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: (post M1)

2004-04-16 Thread spiritualmechanic
Okay, I have the adapter deploying. I'm going to do some tests and then I'll upload it 
as a patch after I feel comfortable with initial use.

After that, tests!

Steve

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831138#3831138

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831138


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread spiritualmechanic
All of the examples use invocation.invokeNext(). It might be nice to see an example 
that doesn't use it (i.e. the proxy you mentioned before).

Do one of the unit tests do that? I'm looking through the jbosstest AOP tests and none 
of them jump out at me for a Proxy.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831139#3831139

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831139


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Constructors

2004-04-16 Thread spiritualmechanic
Do->Does. English. Grammar. Whatever.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831140#3831140

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831140


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Clustering 2 machines in two different datacenters

2004-04-16 Thread bela
1. Use async repl if you can
2. You may want to switch to a TCP-based config, if IP multicast is not supported

Bela

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831141#3831141

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831141


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: (post M1)

2004-04-16 Thread acoliver
Don't commit to head until after I branch for the M1 release.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831142#3831142

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831142


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


  1   2   >