[jboss-user] [EJB 3.0] - How to declaratively change JNDI name of a bean?

2009-06-17 Thread kevinpauli
By default it seems the jndi name of a bean is based on the ear in which it is 
contained. An EJB named MyBean my-app.ear will have the name 
my-app/MyBean/local.

How can I change that behavior declaratively? I want the jndi name to be 
something-else/MyBean/local. It has to be declarative rather than with an 
annotation b/c I can't modify the source of MyBean.java; I only have the jar, 
which I am packaging into an ear for deployment.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4238280#4238280

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238280
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - jboss.remoting:service=invoker, transport=servlet is already

2009-02-11 Thread kevinpauli
I have set up UnifiedInvoker over HTTPS for both naming remote ejb3 
invocations.  Things seem to work, but I am worried b/c I am getting a warning 
on startup:

jboss.remoting:service=invoker,transport=servlet is already registered with 
MBeanServer

I peeked in the source, and it seems that MBean object name is hardcoded in the 
source!  from ServletServerInvoker.java:

   public String getMBeanObjectName()
  |{
  |   return jboss.remoting:service=invoker,transport=servlet;
  |}

I am not sure what is going on.  Here are the relevant mbeans from my 
jboss-service.xml

?xml version=1.0 encoding=UTF-8?
  | 
  |!-- 
 --
  |!-- JNDI
 --
  |!-- 
 --
  |
  |!-- A simple mbean wrapper around the jndi Naming object. This  only 
handles an in memory instance. The NamingService uses this as the JNDI store 
and exposes it remotely. --
  |mbean code=org.jnp.server.NamingBeanImpl 
name=jboss:service=NamingBeanImpl 
xmbean-dd=resource:xmdesc/NamingBean-xmbean.xml
  |/mbean
  |
  |mbean code=org.jboss.naming.NamingService name=jboss:service=Naming 
xmbean-dd=resource:xmdesc/NamingService-xmbean.xml
  |   !-- The call by value mode. true if all lookups are unmarshalled 
using the caller's TCL, false if in VM lookups return the value by reference. 
--
  |   attribute name=CallByValuefalse/attribute
  |   
  |   !-- The thread pool service used to control the bootstrap lookups --
  |   depends optional-attribute-name=LookupPool 
proxy-type=attributejboss.system:service=ThreadPool/depends
  |   
  |   depends optional-attribute-name=Naming 
proxy-type=attributejboss:service=NamingBeanImpl/depends
  |/mbean
  | 
  |!-- mbean name=jboss:service=invoker,type=unified 
code=org.jboss.invocation.unified.server.UnifiedInvoker
  |  dependsjboss:service=TransactionManager/depends
  |  dependsjboss.remoting:service=Connector/depends
  |/mbean--
  | 
  |mbean code=org.jboss.remoting.network.NetworkRegistry 
name=jboss.remoting:service=NetworkRegistry/
  | 
  | mbean code=org.jboss.invocation.jrmp.server.JRMPProxyFactory 
name=jboss:service=proxyfactory,type=unified,transport=sslservlet,target=naming
  |   attribute 
name=InvokerNamejboss:service=invoker,type=unified,transport=sslservlet,target=naming/attribute
  | attribute 
name=TargetNamejboss:service=Naming/attribute
  | attribute 
name=ExportedInterfaceorg.jnp.interfaces.Naming/attribute
  | attribute name=ClientInterceptors
  |   interceptors
  |  
interceptororg.jboss.proxy.ClientMethodInterceptor/interceptor
  |  
interceptororg.jboss.proxy.SecurityInterceptor/interceptor
  |  
interceptororg.jboss.naming.interceptors.ExceptionInterceptor/interceptor
  |  
interceptororg.jboss.invocation.InvokerInterceptor/interceptor
  |   /interceptors
  | /attribute
  | 
dependsjboss:service=invoker,type=unified,transport=sslservlet,target=naming/depends
  |  /mbean
  | mbean code=org.jboss.invocation.unified.server.UnifiedInvoker 
name=jboss:service=invoker,type=unified,transport=sslservlet,target=naming
  |   dependsjboss:service=TransactionManager/depends
  |   
dependsjboss.remoting:service=connector,transport=sslservlet,target=naming/depends
  | /mbean
  | mbean code=org.jboss.remoting.transport.Connector display-name=SSL 
Servlet transport Connector 
name=jboss.remoting:service=connector,transport=sslservlet,target=naming
  |   attribute name=Configuration
  |  config
  | invoker transport=sslservlet
  |attribute isParam=true 
name=dataTypehttpsinvocation/attribute
  |attribute isParam=true 
name=marshallerorg.jboss.invocation.unified.marshall.InvocationMarshaller/attribute
  |attribute isParam=true 
name=unmarshallerorg.jboss.invocation.unified.marshall.InvocationUnMarshaller/attribute
  |attribute isParam=true 
name=return-exceptiontrue/attribute
  |attribute 
name=serverBindAddress${jboss.bind.address}/attribute
  |attribute name=serverBindPort8443/attribute
  |attribute 
name=pathunified-invoker/SSLServerInvokerServlet/attribute
  | /invoker
  | handlers
  |handler 

[jboss-user] [JBoss/Spring Integration] - How to reference beans defined in a spring app context in a

2008-12-17 Thread kevinpauli
Hello!

I have one ear defined that has my persistence jar with the daos in it, along 
with a jboss-spring.xml that defines the daos as spring beans.

I have another ear where I have configured spring beans that have a dependency 
on the daos and need the daos injected into them.  But I am getting errors such 
as:

Cannot resolve reference to bean 'systemConfigDao' while setting bean property 
'systemConfigDao'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 
'systemConfigDao' is defined; - nested throwable: 
(org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'agentFrwkInvoker'

I can get it to work if I put everything into the same ear, but my deployment 
strategy really requires separate ears.

What is the recommended way of accomplishing this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4197238#4197238

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4197238
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: How to reference beans defined in a spring app context i

2008-12-17 Thread kevinpauli
nevermind, I discovered the solution: to specify names for the bean factory and 
parent bean factory.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4197252#4197252

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4197252
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Need both myapp.jar and myapp.spring?

2008-12-17 Thread kevinpauli
Do I really have to create both a .jar and a .spring?  Is there any way to make 
jboss recognize the .spring as an ejb archive so that I can just have one 
deployment artifact?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4197253#4197253

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4197253
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - how to preInstantiateSingletons in spring-deployer 2.0

2008-08-20 Thread kevinpauli
I'm using spring-deployer 2.0.  My understanding is that since it uses a bean 
factory rather than an application context, singletons are not preInstantiated. 
 Is there any way I can make preInstantiation happen?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4171605#4171605

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171605
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: how to preInstantiateSingletons in spring-deployer 2.0

2008-08-20 Thread kevinpauli
Thank you!  I had copy/pasted this from some tutorial a long time ago...





And didn't realize there was even such thing as a 
SpringApplicationContextDeployer.  Switching it to that solved my problem.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4171641#4171641

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171641
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Capturing Client IP Address

2007-10-26 Thread kevinpauli
I have a requirement to capture and log the IP addresses of remote clients 
connecting to the JBoss server over RMI/JRMP to execute SLSBs.

Can anyone give me some ideas how I might accomplish this?  Would I extend the 
server invoker with my own implementation, or one of the connectors, or perhaps 
insert some new handler into the config in jboss-service.xml?  

If anyone has an idea please don't hesitate to be specific or overly pedantic 
in your response as I'm new to JBoss Remoting and don't have all the lingo 
down, so every detail will help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099481#4099481

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099481
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Looking for Seam design ideas

2007-10-15 Thread kevinpauli
I'm trying to add a password expiration feature to a Seam-based application 
(Seam 1.2.1.GA).  

If a user's password has not been changed in 90 days, then I always want to 
redirect him to a screen where he'll have to change the password, regardless of 
the page he attempted to hit.  (There is no requirement to try to remember his 
original URL and send him there when he's finished, so I'd just send him to the 
home page when done changing his password.)

Obviously since this is an application-wide behavior, I'd like to only have to 
configure this once, and not have to code special logic for every page.  
Perhaps I would do it in components.xml?  But how?  Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095444#4095444

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095444
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: How to retrieve remote IP address of EJB clients?

2007-09-13 Thread kevinpauli
Thanks, but what you've done seems to be for http-based communication (i.e. web 
services).  What I'm needing is to log the IP's of remote clients communicating 
via remote session bean proxies over RMI.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4084060#4084060

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084060
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: How to retrieve remote IP address of EJB clients?

2007-09-11 Thread kevinpauli
Bump

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083139#4083139

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083139
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - How to retrieve remote IP address of EJB clients?

2007-08-16 Thread kevinpauli
I need to log the IP addresses of remotely connected clients that are looking 
up session beans via JNDI and invoking them.  I thought that an injected 
javax.ejb.SessionContext might provide the ip address of the client, but it 
does not.  Does JBoss provide any proprietary hooks to help me accomplish this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075033#4075033

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075033
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Server startup hangs when injecting @WebServiceRef into an M

2007-08-09 Thread kevinpauli
Has anybody else observed this behavior?  This is with JBoss 4.2.0.GA which 
uses jbossws-1.2.1.GA.

I have a web service, like the following:

Web service:

  | package kp;
  | 
  | import javax.ejb.Stateless;
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebService;
  | 
  | import org.jboss.ws.annotation.WebContext;
  | 
  | @Stateless
  | @WebService
  | @WebContext(contextRoot=/kp)
  | public class HelloWebService
  | {
  | @WebMethod
  | public void hello(@WebParam(name = name)  String name)
  | {
  | System.out.println(web service invoked! hello,  + name);
  | }
  | }
  | 

I wanted to test it by poking at it and sending it data from the JMX console.  
So I wrote an MBean to send it data:

MBean Interface:

  | package kp;
  | 
  | import org.jboss.annotation.ejb.Management;
  | 
  | @Management
  | public interface AdhocServicesManagement
  | {
  | void invokeWS(String name);
  | }
  | 
  | 

MBean Implementation:

  | package kp;
  | 
  | import javax.xml.ws.WebServiceRef;
  | 
  | import org.jboss.annotation.ejb.Service;
  | 
  | @Service
  | public class AdhocServicesBean implements AdhocServicesManagement
  | {
  | 
@WebServiceRef(wsdlLocation=http://127.0.0.1:8080/kp/HelloWebService?wsdl;)
  | SearchResultHandlerBean searchResultHandlerBean;
  | 
  | public void invokeWS(String name)
  | {
  | searchResultHandlerBean.handleSearchResult(name);
  | }
  | }
  | 


But the server seems to hang on startup, with no useful info logged.  Here is 
the last part of the log:


  | 10:09:07,109 INFO  [NamingHelper] JNDI InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 10:09:07,109 INFO  [UpdateTimestampsCache] starting update timestamps cache 
at region: 
kpauli-app_ear,kpauli-app_jar,kpauli.org.hibernate.cache.UpdateTimestampsCache
  | 10:09:07,125 INFO  [StandardQueryCache] starting query cache at region: 
kpauli-app_ear,kpauli-app_jar,kpauli.org.hibernate.cache.StandardQueryCache
  | 10:09:07,218 INFO  [JmxKernelAbstraction] creating wrapper delegate for: 
org.jboss.ejb3.service.ServiceContainer
  | 10:09:07,218 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:ear=kpauli-app.ear,jar=kpauli-app.jar,name=AdhocServicesBean,service=EJB3
 with dependencies:
  | 10:09:07,375 INFO  [ServiceRefHandlerJAXWS] setupServiceRef 
[jndi=/env/kp.AdhocServicesBean/searchResultHandlerBean,target=kp.SearchResultHandlerBean]
  | 10:09:07,421 INFO  [EJBContainer] STARTED EJB: kp.AdhocServicesBean 
ejbName: AdhocServicesBean
  | 

And there it sits... it never fully initializes.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072652#4072652

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072652
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Server startup hangs when injecting @WebServiceRef into

2007-08-09 Thread kevinpauli
D'oh, sorry, I posted the wrong code for the MBean Implementation.  It should 
be:


  | package kp;
  | 
  | import javax.xml.ws.WebServiceRef;
  | 
  | import org.jboss.annotation.ejb.Service;
  | 
  | @Service
  | public class AdhocServicesBean implements AdhocServicesManagement
  | {
  | 
@WebServiceRef(wsdlLocation=http://127.0.0.1:8080/kp/HelloWebService?wsdl;)
  | HelloWebService helloWebService;
  | 
  | public void invokeWS(String name)
  | {
  | helloWebService.hello(name);
  | }
  | }
  | 

The problem is still the same, however.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072659#4072659

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to switch from JTA to JTS in JBoss AS 4.2.0.GA?

2007-07-12 Thread kevinpauli
jhalliday wrote :  You don't need JTS for that unless you are using more 
than one JBoss instance. 

Then I must be doing something wrong or have a bad misconception.

I have a transaction in which I write some rows to the database and send a JMS 
message.  Sometimes I am getting a race condition where the MDB that is 
recieving the message fires up and looks in the database and can't find the new 
rows; the original transaction is not committed yet.  If I step through in 
debug mode, or make the MDB sleep for a couple seconds before hitting the 
database, the race condition goes away.

I thought the whole point of having JMS participate in a transaction was so 
that the message would not be placed on the queue (and therefore not be 
consumed by the receiving MDB) until the transaction was complete?

(BTW, my JMS provider is JBossMQ, which is the default configured for JBoss AS 
4.2.0.GA.  would switching to JBoss Messaging make a difference?)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063564#4063564

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - How to switch from JTA to JTS in JBoss AS 4.2.0.GA?

2007-07-11 Thread kevinpauli
By default JBoss AS 4.2.0.GA comes with JBoss Transactions configured to use 
JTA.  I would like to switch it to JTS in order to get XA support for database 
activity and JMS message creation in one atomic transaction.

But the JBoss Transactions installation guide at 
http://labs.jboss.com/jbosstm/docs/4.2.3/manuals/pdf/InstallGuide.pdf seems to 
be assuming a standalone installation (i.e., outside of JBoss AS) so makes no 
mention of JBoss AS.  

And the JBoss AS installation guide at 
http://docs.jboss.com/jbossas/guides/installguide/r1/en/pdf/jboss4-install.pdf 
makes no mention of JTS!

So I'm looking for some kind of document that bridges the gap between the two 
and tells me how to configure JBoss Transactions within JBoss AS.

Thanks for any info.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063271#4063271

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063271
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-07-02 Thread kevinpauli
I'm seeing the same problem here, with the 4.2.0GA release (though we are not 
using the Seam annotation to create it, we're invoking the TimerService 
directly).

It seems a shame to have to go XA just to get timer functionality.  I mean, 
everything is on the same box, in the same database.  Shouldn't it work with a 
local-tx-datasource as long as the same ds is used throughout? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059671#4059671

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059671
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user