[JBoss-user] [EJB/JBoss] - Getting information about the server in an EJB

2005-04-08 Thread stefanfreyr
Hello.

I'm wondering whether there's any easy way of getting information about the 
container from within an EJB.

I tried calling the getEnvironment() method in SessionContext but all I got was 
this error:

  | 15:15:41,636 ERROR [LogInterceptor] EJBException in method: public abstract 
is.althingi.embla.ejbservice.common.SystemState 
is.althingi.embla.ejbservice.sessionregistration.ParliamentSessionFunctions.getSystemState()
 throws 
java.rmi.RemoteException,is.althingi.embla.exception.EmblaServiceException:
  | javax.ejb.EJBException: Deprecated
  | at 
org.jboss.ejb.EnterpriseContext$EJBContextImpl.getEnvironment(EnterpriseContext.java:339)
  | at 
is.althingi.embla.ejbservice.sessionregistration.ParliamentSessionEJB.getSystemState(ParliamentSessionEJB.java:1765)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
  | at 
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:365)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
  | at org.jboss.ejb.Container.invoke(Container.java:854)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
  | at sun.rmi.transport.Transport$1.run(Transport.java:153)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | 
So I got nothing out of that.

Can anybody give me the best way of getting information about the server 
container within an EJB?

The information I need has not been defined yet but some things that would be 
very nice to have would be:

The IP this container binds to (in case of running multiple JBoss instances 
bound to different IPs).
The hostname of the server.
The server configuration name (default, all, minimal, etc.).
...

Any help would be greatly appreciated.

Kind regards, Stefan Freyr.

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

Reply to

[JBoss-user] [HTTPD, Servlets & JSP] - Re: ZipException trying to run any web app (including jmx-co

2004-07-07 Thread stefanfreyr
I've downloaded JBoss 3.2.5 and tried running it with JDK 1.5 beta2.

It does work... everything except JSP compilation. The "JAVA_HOME is not defined" 
error keeps coming up although JAVA_HOME variable is defined correctly.

Does anybody know more about that issue? Is it a recognized problem? Is somebody 
working on a fix for it?

Kind regards, Stefan Freyr.

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

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


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: When will JBoss 4 be released for production environment

2004-06-15 Thread stefanfreyr
This "issue with JSP compilation"... does anyone know what that is?  We got 
JBoss/Tomcat 3.2.3  to work with JDK 1.5 by removing the "management" package from 
rt.jar.  Then we noticed the problem with running the web console.  At that point we 
switched to JBoss/Jetty 3.2.3 and then everything worked ok.

We'd like to be able to run JBoss on a "clean" JDK install but the web console in 
JBoss 3.2.4 doesn't work and when we looked for the Jetty version of 3.2.4 we didn't 
find anything.  Does anybody know if/when 3.2.4 with Jetty will become available and 
if that's not something that's planned, is there any solution in sight for the JSP 
compilation problem?

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Logging and the

2004-03-10 Thread stefanfreyr
An update to this post regarding the static methods contemplation:

A static method is allocated memory space on the stack for each call to the method. 
This is best demonstrated by the fact that static methods can be recursive which would 
of course be impossible if all calls to that method used the same memory space.

Therefore it is thread safe to use classes with static methods!

Kind regards, Stefan Freyr.

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

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


---
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user