[jboss-user] [Security JAAS/JBoss] - Encrypting Datasource in SAR

2009-05-11 Thread hartfordd
Hello all,
I've read through the entry on encrypting the datasource password: 
http://www.jboss.org/community/docs/DOC-9703

However, our approach we've tried to avoid modifying any part of the base jboss 
install for applications - instead, all configurations that applications need 
are done through SARs, including datasources.

In a SAR approach to datasources, can you use the login-config.xml approach 
**within** a SAR in some fashion for encrypting Datasource passwords instead of 
using the default location of the login-config.xml?

thanks!
-D

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt security integration

2007-12-19 Thread hartfordd
and sample code is still here:  http://jira.jboss.org/jira/browse/JBSEAM-2325 


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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt security integration

2007-12-19 Thread hartfordd
Still putting in a lot of time due to lack of direction/documentation on how to 
make this security integration happen, with little progress but no actual 
results.

Any pointers before I abandon Seam/Security integration?



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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt security integration

2007-12-11 Thread hartfordd
unfortunately, security is a showstopper. Everything else is working great 
(once java.sql.Date workaround was implemented).

oh well.

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt security integration

2007-12-06 Thread hartfordd
JIRA: http://jira.jboss.org/jira/browse/JBSEAM-2325

So far, uncovered that the following tag is slightly misleading:

  | !-- misleading: apparently exclusive, either authenticate-method OR 
jaas-config --
  | security:identity authenticate-method=#{authenticator.authenticate} 
jaas-config-name=SpringPoweredRealm/
  | 
  | should be just:
  | security:identity jaas-config-name=SpringPoweredRealm/
  | 
  | then maybe something like:
  | event type=org.jboss.seam.postAuthenticate
  | action execute=#{authenticator.login}/
  | action expression=#{authenticator.login}/
  | /event
  | 
  | 

In any event, still getting NotLoggedInException when attempting to call an 
@Restrict method (and yes, tried exception 
class=org.jboss.seam.security.NotLoggedInException approach and that still 
does not work).




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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt security integration

2007-12-06 Thread hartfordd
Authenticator.login approach, the following seems to work ok (once 
not-logged-inexception occurs, not the postAuthenticate as that event does not 
seem to be happening):


@In
public Identity identity;
@Resource
private javax.ejb.SessionContext webContext;

Principal caller = webContext.getCallerPrincipal();
System.out.println(caller.getName());
System.out.println(identity.getJaasConfigName());

But, all other identity.get*** methods are empty, while the Principal only 
contains the username but no other information.




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

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


[jboss-user] [JBoss Seam] - Re: java.sql.Date, Seam-GWT remoting with EJB3/hibernate/JPA

2007-12-05 Thread hartfordd
another discussion here

http://groups.google.com/group/Google-Web-Toolkit/tree/browse_frm/month/2007-04/f7a5a1f03a87cc99?rnum=71_done=%2Fgroup%2FGoogle-Web-Toolkit%2Fbrowse_frm%2Fmonth%2F2007-04%3F


and sample workaround:

  | /**
  | *   utility method to re-process DTO's to make sure that the dates
  | *   are explicitly converted to java.util.Date.
  | */
  | private SimpleDTO[] convertSqlDates(SimpleDTO[] myarray){
  | //DRH cloning would be safer, but private anyway.
  | for (int i = 0; i  myarray.length; i++) {
  | SimpleDTO simpleDTO = myarray;
  | if(simpleDTO.getDateField() != null){
  | simpleDTO.setDateField(new 
java.util.Date(simpleDTO.getDateField().getTime()));
  | }
  | }
  | return myarray;
  | }
  | 

NOTE:  I've tried changing the getter/setters and this will NOT work for 
hibernate/JPA, you need to change it after retrieval but before submitting over 
the wire.

Another NOTE: I've tried changing the GWTService, GWT13Service, GWT14Service 
classes in SEAM to modify this behavior, but I can't seem to find a good fix, 
so the workaround seems like the only option for now.

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

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


[jboss-user] [JBoss Seam] - Re: java.sql.Date, Seam-GWT remoting with EJB3/hibernate/JPA

2007-12-05 Thread hartfordd
discussion on problem:


http://groups.google.com.ec/group/Google-Web-Toolkit/browse_thread/thread/ee868c16992937ac/0e2288691663d975

english:
http://translate.google.com/translate?hl=ensl=esu=http://groups.google.com.ec/group/Google-Web-Toolkit/browse_thread/thread/ee868c16992937ac/0e2288691663d975sa=Xoi=translateresnum=2ct=result



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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA, compression beyond tomcat-connector compr

2007-12-05 Thread hartfordd
The compression IS happening in Seam.

In the GWTService class, the method:

  |protected boolean shouldCompressResponse(HttpServletRequest request,
  |  HttpServletResponse response, String responsePayload)
  | 
anonymous wrote : 
  | * This implementation currently returns true if the response
  | * string's estimated byte length is longer than 256 bytes. 
  | 

This is not configurable other than subclassing GWTService.

Workaround:  In I.E. at least, you can disable HTTP/1.1 and only use HTTP/1.0 
so you can see the packets without being compressed.



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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA, compression beyond tomcat-connector compr

2007-12-05 Thread hartfordd
opened JIRA ticket for discussion and direction:
http://jira.jboss.org/jira/browse/JBSEAM-2350


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

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


[jboss-user] [JBoss Seam] - java.sql.Date, Seam-GWT remoting with EJB3/hibernate/JPA

2007-12-04 Thread hartfordd
Hey all,
After a lot of digging, finally found where I am having an issue with some DTO 
transports using the SEAM-GWT remoting.

First, the (not useful) error on the client/browser side:
=

  | com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This 
application is out of date, please click the refresh button on your browser 
  | 
  | com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
  | 
=

Second, where the problem is originating from:
===
DTO.java:

  | @Temporal(TemporalType.DATE)
  | private java.util.Date dateField;
  | 
===


And third, the actual class that is returned (by hibernate):

datefield type:java.sql.Date


What is returned by the JPA layer, in this case Hibernate, is causing problems 
within SEAM when trying to transfer the DTO to the GWT client side.

Manually creating the DTO (without hibernate) with a regular java.util.Date 
works correctly, but changing it to java.sql.Date causes problems as seen in 
the error above.

Tested with jboss 4.2.1, seam 2.0.0.GA (GWT 1.4.60).

HTH,
-D


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

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


[jboss-user] [JBoss Seam] - Re: java.sql.Date, Seam-GWT remoting with EJB3/hibernate/JPA

2007-12-04 Thread hartfordd
actually sending java.sql.Date over the JSON wire:


  | //EX
  | 
  | [com.domain.app.model.SimpleDTO/3809314052,java.sql.Date/20738045]
  | 

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

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


[jboss-user] [JBoss Seam] - ejb3/seam-gwt-remoting/gwt security integration

2007-11-30 Thread hartfordd
Jboss 4.2.1
Seam 2.0.0.GA

Security with JAAS as layed out here in GWT web app components.xml file:
http://docs.jboss.com/seam/2.0.0.GA/reference/en/html/security.html#d0e7008

*Seam GWT-remoting
*GWT Web Application (i.e. browser/javascript only web client).



JIRA to be opened to attach sample project

Seam @WebService method with @Restrict throws error:

10:26:50,616 ERROR [[/sample-ejb3-gwt-client]] Exception while dispatching incom
ing RPC call
org.jboss.seam.security.NotLoggedInException
at org.jboss.seam.security.Identity.checkRestriction(Identity.java:222)
at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInte
rceptor.java:38)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
106)
at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInter
ceptor.java:54)
at org.javassist.tmp.java.lang.Object_$$_javassist_0.gwtTestSecurity(Obj
ect_$$_javassist_0.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTT
oSeamAdapter.java:100)
at org.jboss.seam.remoting.gwt.GWTService.processCall(GWTService.java:24
6)
at org.jboss.seam.remoting.gwt.GWTService$1.process(GWTService.java:146)

at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHtt
pServletRequest.java:53)
at org.jboss.seam.remoting.gwt.GWTService.getResource(GWTService.java:13
0)
at org.jboss.seam.servlet.SeamResourceServlet.doGet(SeamResourceServlet.
java:69)
at org.jboss.seam.servlet.SeamResourceServlet.doPost(SeamResourceServlet
.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:619)

===

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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA, compression beyond tomcat-connector compr

2007-11-30 Thread hartfordd
Does Seam 2.0.0.GA have some type of compression filter that can be configured, 
or is there something other than the Tomcat Connector (jboss 4.2.1) that is 
causing the over-the-wire gzip compression to the browser?

-D

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

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


[jboss-user] [JBoss Seam] - Seam 2.0.0.GA, compression beyond tomcat-connector compressi

2007-11-28 Thread hartfordd
Hey all,
I'm playing with the SEAM/GWT-Remoting support and ran into a suprise. I have 
purposefully disabled compression on the Connector for tomcat in the 
server.xml, but yet the payloads are still getting compressed when over a 
certain size.

jboss 4.2.1
Seam 2.0.0.GA

On small payloads, no compression is happening when sending the GWT-Remoting 
via SEAM, but when the payload gets a little larger compression starts 
happening (even when disabled on the tomcat side) and I want to be able to 
modify the behavior as some of my apps will be in a LAN environment with 
low-end PCs.

Any tips please?

thanks,
-D

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-27 Thread hartfordd
jboss 4.2.1
seam 2.0.0.ga
gwt 1.4.60
jdk6

Still can not seem to find a way to get a DTO to work with Seam-GWT remoting.

Using the components.xml approach to avoid annotations on the DTO side, and the 
problem I'm getting from the GWT service call is:

java.lang.ClassCastException


from

  |instance.gwtTestDto(new AsyncCallback(){
  | 
  | public void onFailure(Throwable caught) {
  | root.add(new Label(gwtTestDto had a failure:  + 
caught +  ===  + caught.fillInStackTrace() +    + 
GWT.getTypeName(caught) ));
  | 
  | }
  | 

Everything else seems to look o.k., org.jboss.seam DEBUG does not show 
anything, no errors are displayed in the server log (both console and file).

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-27 Thread hartfordd
The wireshark/ethereal response to the browser shows (paraphrased):

//EX[1,[com.domain.app.model.SimpleDTO/2620797990 ],0,3]

which then shows ClassCastException from the RPC/server side.



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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-27 Thread hartfordd
resolved:

Although GWT 1.4 supports DTO's implementing java.io.Serializable, the SEAM GWT 
Remoting does not appear to recognize this and will only work correctly when a 
DTO implements the com.google.gwt.user.client.rpc.IsSerializable.



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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-26 Thread hartfordd
I created a POJO without any annotations (no @NAME) and is only a simple 
javabean class (DTO).

I added an empty seam.properties to the root of the jar, and under META-INF I 
added a components.xml:
==




==


Unfortunately, I'm getting the following warning when attempting to deploy:
==
11:49:26,771 WARN  [Initialization] namespace declared in components.xml does 
not resolve to a package annotated @Namespace:
==


Is this warning something to be concerned about - is @Name annotation a 
requirement to expose a DTO for Seam-GWT remoting?


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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-26 Thread hartfordd

  | components
  | 
  | component name=com.domain.app.model.SimpleDTO
  |   class=com.domain.app.model.SimpleDTO
  | /component
  | 
  | /components
  | 

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

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


[jboss-user] [JBoss Seam] - ejb3/seam-gwt-remoting/gwt w/ DTO, JPA?

2007-11-21 Thread hartfordd
Is there an example somewhere of using the EJB3/Seam remoting and GWT with a 
DTO, or preferably JPA(ejb3 entity)?

When trying the DTO approach, it looks like Seam expects the @Name annotation 
for using the DTO -- at which point, GWT doesn't like the DTO because of the 
annotation.  

Does an example exist, or could someone whip one up to proof from?

thanky,
-D

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt

2007-11-20 Thread hartfordd
I would be happy to create a test case.

Since this will have dependent libraries, how can I determine which jboss libs 
in the Maven repo are associated with the application platform (like 4.2?).

i.e. ejb3, jboss client, etc.

http://repository.jboss.com/maven2/



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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt

2007-11-20 Thread hartfordd
http://jira.jboss.org/jira/browse/JBSEAM-2277

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt

2007-11-19 Thread hartfordd
If no response by 11/22, I will assume SEAM can not support a development model 
with separation between EJB3 and associated GWT webapps.

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

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


[jboss-user] [JBoss Seam] - ejb3/seam-gwt-remoting/gwt

2007-11-16 Thread hartfordd
I'm trying to expose an existing ejb3 method so many other GWT web applications 
can access it directly through SEAM remoting.


error
==
Exception while dispatching incoming RPC call

java.lang.RuntimeException: Type cannot be determined for component 

[Component(com.domain.app.gwt.client.QueryGwtService)]. Please ensure that it 
has a local interface.
at 
org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTT
oSeamAdapter.java:88)
==


EJB3 SIDE:
===
package com.domain.app.ejb;
@Stateless
//Name is the GWT sych service
@Name(com.domain.app.gwt.client.QueryGwtService)
public class QueryGwt implements QueryGwtLocal {

@WebRemote
public String gwtTest2(){
return test ok;
}

}
--
package com.domain.app.ejb;
@Local
public interface QueryGwtLocal {
  @WebRemote
  public String gwtTest2();
}
-
?xml version=1.0 encoding=UTF-8?
ejb-jar version=3.0 xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd;

!-- SEAM 2.0 support --

  
interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class
  
   
   assembly-descriptor
  interceptor-binding
 ejb-name*/ejb-name
interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class
  /interceptor-binding
   /assembly-descriptor
/ejb-jar
---
empty seam.properties in the root of the jar.
=

Is this all you need to do for the EJB3/server side so it can be consumed by 
may other GWT web applications?


Sample GWT side:
=
?xml version=1.0 encoding=UTF-8?
components 

  core:init
jndi-pattern=my-ear-app/#{ejbName}/local
debug=false/

  core:manager conversation-timeout=12/



web-app
 
   listener-classorg.jboss.seam.servlet.SeamListener/listener-class


  servlet-nameSeam Resource Servlet/servlet-name
servlet-classorg.jboss.seam.servlet.SeamResourceServlet/servlet-class

servlet-mapping
  servlet-nameSeam Resource Servlet/servlet-name

  !--DRH modified url-pattern to match how GWT app works --
url-pattern/com.domain.app.gwt.HelloWorld/seam/resource/*/url-pattern
/servlet-mapping
/web-app
---
package com.domain.app.gwt.client;
public interface QueryGwtService extends RemoteService{
  public String gwtTest2();
}
--
package com.domain.app.gwt.client;
public interface QueryGwtServiceAsync{
public void gwtTest2(AsyncCallback callback);
}

//sample call to get service
   private QueryGwtServiceAsync getService() 
   {   
  String endpointURL = GWT.getModuleBaseURL() + seam/resource/gwt;  
  QueryGwtServiceAsync svc = (QueryGwtServiceAsync) 
GWT.create(QueryGwtService.class);
  ((ServiceDefTarget) svc).setServiceEntryPoint(endpointURL);
  return svc; 
   }   
=




My concern is, the example says to put the GWT Sych interface/service on the 
EJB3 side, which does not make sense as multiple GWT apps could use it and 
would need to copy that interface again.

Any pointers please?  Thanky,
-D



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

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


[jboss-user] [JBoss Seam] - Re: Remoting: Exception during loadResourceProviders

2007-11-16 Thread hartfordd
excellent, thanks for posting back, helped me!

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

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


[jboss-user] [JBoss Seam] - Re: ejb3/seam-gwt-remoting/gwt

2007-11-16 Thread hartfordd
jboss 4.2
seam 2.0.0.GA
GWT 1.4.60

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - two database, persistence units, relation between the two

2007-10-29 Thread hartfordd
Hey all,
I have to completely different databases (an oracle and mysql).  I want to 
create two entities that have mapped relations between the two.  There is no 
way to modify the databases, this is what it is.

jboss 4.2.1, ejb3, jpa (not hibernate-specific, although if there is a way with 
extensions let me know)

oraEntity:
ora_name_PK, first_name

mysqlEntity:
my_name_PK, last_name


oraEntity is in the ora-pu persistence unit. 
mysqlEntity is in the mysql-pu persistence unit.

What I want to do is create the relation between the two entities, in this case 
only care about many first names for one last name:
==
@OneToMany(mappedBy=ora_name_PK)
private Set oraCollection;

public Set getOraCollection() {
return this.oraCollection;
}

public void setOraCollection(Set oraCollection) {
this.oraCollection= oraCollection;
}
==


So, now, when I try to call from my mysql-pu, since that has the mysqlEntity 
and the last-name, I try to use the mysqlEntity.getOraCollection() -- it throws 
database errors saying the Oracle-associated databases do not exist.

How does one solve this problem?

Google, jboss forums, java-sun-forum, none of them make it easy to search for 
this problem, so sorry if this is a commonly asked problem but I just can not 
find the solution.  

fyi - I've been using jboss since 3.2 days...but had to create a new forum user 
after much hassle :-/







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

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