[JBoss-user] [EJB 3.0] - Casting/narrowing local/remote interfaces of same bean insta
Hi, does anybody know, how I can get both the local and the remote interface for one single SFSB instance? The SFSB of which I am talking is created by another SLSB. This SLSB initializes the SFSB via the local interface. Thereafter I would like to return the remote interface of the SFSB to the remote client. I am using EJB3 and create the bean via | IXyzBeanLocal localRef = (IXyzBeanLocal)ctx.lookup(LOCAL_JNDI_NAME); | (ctx is the InitialContext) How can I get the remote interface of the instance referenced by localRef? If I use | IXyzBeanRemote remoteRef = (IXyzBeanRemote)ctx.lookup(REMOTE_JNDI_NAME); | a second instance is created, which is not what I intend. Does anybody know how to cast or narrow? Regards, Matthias View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940180#3940180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940180 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - JBoss (seems) to ignore standardjboss.xml and jboss.xml
Hi there, I'm trying the whole day to adjust in jboss-4.0.4RC1 the timespans until it passivates/removes stateful session beans (written using ejb3). I adjusted all the max-bean-age/max-bean-life/etc.-values in the standardjboss.xml but it always waits 10 minutes before passivating. Overriding these values in a jboss.xml (see below) doesn't work either. Any ideas? I'm sure I overlooked something... | ?xml version=1.0 encoding=UTF-8? | jboss | container-configurations | container-configuration | container-cache-conf | cache-policy-conf | min-capacity50/min-capacity | max-capacity100/max-capacity | remover-period65/remover-period | max-bean-life60/max-bean-life | overager-period40/overager-period | max-bean-age30/max-bean-age | resizer-period400/resizer-period | max-cache-miss-period60/max-cache-miss-period | min-cache-miss-period1/min-cache-miss-period | cache-load-factor0.75/cache-load-factor | /cache-policy-conf | /container-cache-conf | /container-configuration | /container-configurations | /jboss | Regards, Matthias View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3939248#3939248 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939248 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - Does org.jnp.interfaces.NamingContext support NamespaceChang
Hi, I try to register a NamespaceChangeListener with a JBoss naming context object but it doesn't implement the EventContext interface. Does this mean it's impossible to listen to namespace changes? Regards, Matthias View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938899#3938899 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938899 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Deferred-value expressions in custom tags
Hi, I read that the current Tomcat (5.5) only provides the JSP 2.0 spec. I try to write a custom tag which takes a deferred value as a parameter like this: | my:tag param=#{SessionBean1.prop} / | Since it is not possible to use the deferred-value tag in the TLD file, does anybody know how to do this? How does the myfaces implementation accomplish this? E.g. a JSP line like to following has to perform the same deferred evaluation as I would like to have in my custom tag, too: | ui:staticText text=#{SessionBean1.prop} / | Greetings. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935362#3935362 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935362 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Deferred-value expressions in custom tags
Ok, it works with the $-syntax: | my:tag param=${SessionBean1.prop} / | But this bean is not instantiated if it does not exist. Anybody any idea how to get this behaviour since withe the #-syntax, beans are created on the spot. Greetings. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935410#3935410 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935410 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - ClassCastException for serialized class but acces via intros
Hi, I have the following strange behaviour: I implemented a simple stateless session bean (EJB3.0) that returns a Vector of a custom class called 'Info', which contains a String field accessible via Info.getName(). The method of the bean interface is as follows: | public Vector getInfoVector(); | The Info class is serializable and everything works fine using a stand-alone Java client. But when I try to use this bean in a JSP file, the following problem occurs: I am able to invoke the session bean method (getInfoVector) and I get the Vector result. I can successfully do the following: | Object obj = vecResult.get(0); | out.println(obj.getClass().getName()+br/); | Object objRes = obj.getClass().getMethod(getName, new Class[]{}).invoke(obj, new Object[]{}); | The class name of line 2 is exactly the class of Info and the intrtospection call results the correct data, i.e., the serialization of the Info class worked correctly. But I *cannot* do this: | Info info = (Info)vecResult.get(0); | out.println(Info: + info.getName()); | The first (casting) line throws the following exception: | java.lang.ClassCastException: com.dcx.rt.iqminer.ejbs.dataprovider.params.DataSourceInfo | at org.apache.jsp.DataSourcesOverview_jsp._jspService(org.apache.jsp.DataSourcesOverview_jsp:76) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | . | Anyone any idea? Thanks in advance! BTW: I am using JBoss 4.0.4RC1 and it does not seam to be an error resulting from not using generics. It will crash in the same way if I use Vector as return type. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931530#3931530 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931530 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: ClassCastException for serialized class but acces via in
Note, the mentioned class 'DataSourceInfo' in the exception trace is the class 'Info' I named in the posting, I just tried to make it shorter. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931532#3931532 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931532 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: ClassCastException for serialized class but acces via in
Ok, I solved it. It was due to two different class loaders (one Tomcat and one the EJB container). Simply set the UseJBossClassLoader to true in the jboss-service.xml under jbossweb-tomcat55.sar/META-INF. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931550#3931550 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931550 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability
(I'm the guest from above) I got rid of the null-namespace-exceptions as suggested above wit JBoss 4.0.2RC1. Using the document/literal style finally made C# speak to the SLSB-Web Service. I didn't use the wscompile-generated RequestStruct-wrappers as they generate namless long_1, string_2, Date_3 members only. Everytime I had more than one Web Method parameter I created an own container class. However, this leads to an additional indirection on the C# side but it increases readability. Thanks for the replies. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871261#3871261 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871261 --- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user