[jboss-user] [JBoss Tools (users)] - Re: Associations inside a composite identifier

2009-08-05 Thread xmedeko
https://jira.jboss.org/jira/browse/JBIDE-4716

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

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


[jboss-user] [JBoss Tools (users)] - Re: Associations inside a composite identifier

2009-08-05 Thread xmedeko
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285703

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

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


[jboss-user] [JBoss Tools (users)] - Associations inside a composite identifier

2009-08-04 Thread xmedeko
Hi,

I have a JPA with associations inside a composite identifier, e.g. something 
like (from JBoss doc)


@Entity
  | @AssociationOverride( name=id.channel, joinColumns = 
@JoinColumn(name=chan_id) )
  | public class TvMagazin {
  | @EmbeddedId public TvMagazinPk id;
  | @Temporal(TemporalType.TIME) Date time;
  | }
  | 
  | @Embeddable
  | public class TvMagazinPk implements Serializable {
  | @ManyToOne
  | public Channel channel;
  | public String name;
  | @ManyToOne
  | public Presenter presenter;
  | }
  | 
It works fine, just Eclipse shows error: Attribute channel has invalid 
mapping type in this context.

Do you know, how to get rid of this error? Except switching off the JPA facet 
support for the project :-)

Thanks

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - @EJB injection in JSP and JSP change

2009-07-28 Thread xmedeko
Hi, 
I have this problem with JBoss 5.1.0GA:

http://www.jboss.org/index.html?module=bbop=viewtopicp=4246334#4246334

Shortly, different classloader is used after changing JSP page for the 
compilation of this page, which causes error, so I have to redeploy the WAR 
after every change in JSP.

Is is possible to change this behaviour?

Thanks

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

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


[jboss-user] [EJB 3.0] - Re: @EJB injection in JSP and JSP change

2009-07-28 Thread xmedeko
Ok, posted

http://www.jboss.org/index.html?module=bbop=viewtopicp=4246344

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

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


[jboss-user] [EJB 3.0] - Re: @EJB injection in JSP and JSP change

2009-07-27 Thread xmedeko
To get an error, I just change JSP. When I redeploy the WAR, then it works fine.

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

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


[jboss-user] [JBoss Tools (users)] - Examples not working

2009-07-24 Thread xmedeko
Hi,
I have installed Eclipse Gallileo JEE edition + JBoss 5.1.0GA + JBoss Tool 
devel updates N200907092133-H355 version. 

The examples 1.1.0.M2-N200907092133-H355 are not working for me.

I have tried richfaces demo and seam booking demo, but no one of them is 
working. I guess they are made for the older version of JBoss.

Before I start digging into this, I would like to as, if is it possible to 
download Eclipse examples for JBoss 5.1.0GA.

Thanks
Andy


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

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


[jboss-user] [Beginners Corner] - Re: Bound to localhost instead of VIP

2009-07-24 Thread xmedeko
I do not see any -c parameter from the command line arguments you have posted. 
And I see some unusual -Pboot.properties parameter. So I guess you start your 
JBoss in some unusual way. What's inside boot.properties?

I have searched my JBoss installation for the 35876 string, but cannot find 
anything relevant.

I have something like -c default

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

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


[jboss-user] [EJB 3.0] - @EJB injection in JSP and JSP change

2009-07-24 Thread xmedeko
Hi, I have in my JSP


  | !%
  |   @EJB
  |   Library lib;
  | %
  | 

It works fine when I deploy/redeploy the application. But when I just change 
the JSP page and reload it in the browser, I got the exception


  | java.lang.IllegalArgumentException: failed to set value Proxy to 
jboss.j2ee:ear=books-ear.ear,jar=books-ejb.jar,name=LibraryBean,service=EJB3 
implementing [interface cz.root.jboss.library.Library] on field 
cz.root.jboss.library.Library org.apache.jsp.search_jsp.lib; Reason: 
ClassLoaders of value and target are not equal
  | 
org.jboss.injection.lang.reflect.FieldBeanProperty.set(FieldBeanProperty.java:100)
  | 
org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:119)
  | 
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:366)
  | 
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:271)
  | 
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:265)
  | 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

My application EAR with EJB JAR and WAR:

  | books-ear
  |+-- books-ejb.jar
  |+-- books-war.war
  |+-- META-INF
  | 

JSP pages are in books-war.war and all EJBs with interfaces are in 
books-ejb.jar. The WAR has no Java class or any JAR.

Do I miss something, e.g. do I have to set classloader?

Thanks
Andy

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

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


[jboss-user] [Beginners Corner] - Re: Accessing https server from within JBoss (using JBoss AS

2009-07-23 Thread xmedeko
Hmm, might be some problem with class loading. Maybe JBoss JARs contain some 
classes which are used by the HttpClient but have different version. 

Try to debug it, (in a debugger, like Eclipse, or I guess JRE has some option 
for debugging class loading) or try clasloader isolation with parent delegation 
set to false.

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

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


[jboss-user] [Beginners Corner] - Re: Bound to localhost instead of VIP

2009-07-23 Thread xmedeko
The port 35876 does not seem to be some port allocated for any service. It 
might just something temporary. Is this port open aven after a while?

aiesulauro wrote : Is this a problem?  Is there any way to determine which 
JBoss deployment is listening on the port?
  | 

Under linux you can see commandline arguments of the running process, e.g. by

ps -ef | grep 13450

where 13450 is PID of the process.


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

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


[jboss-user] [Beginners Corner] - Re: Error deploying simple servlet

2009-07-20 Thread xmedeko
Set Publishing interval to 0 sec. Otherwise you may Touch descriptor before 
your changes are copied into the deploy dir.

One more gotcha is, that the Touch descriptor is for the selected project in 
the Navigator or Packages or Project Explorer. So, you may have selected 
other project then the currently edited file belongs to.

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

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


[jboss-user] [Beginners Corner] - Re: Error deploying simple servlet

2009-07-15 Thread xmedeko
Hi,

is you are using WPT plugin (and I guess you are) then a hot run should be 
working for you. Don't export your project. Just deploy it. If you do not see 
it in the list of the deployable stuff, then you have probably made just plain 
Java project. You have to make Java Web project.

Whey you deploy your project directly, then hot run should work fine for JSPs, 
HTMLs, etc. You can double click on the JBoss server in the server view and set 
the Publishing interval to 0sec if you are impatient.

But if you change some Java code, you have to redeploy the whole application. 
The redeploy is made via touching the web.xml file. There's a special button in 
Eclipse top tool bar for this - such a white hand with index finger pointing 
up, tooltip is Touch descriptors. Or you can right click on the war node in 
Jboss server and chose Full redeploy

Other possibility is to use JBoss Tools Archiver. Then you may have just plain 
Java project. Just pack your project by JBoss archiver and chose automatic 
archive update or update it manually by pressing one button.

Cheers
Andy

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

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


[jboss-user] [Beginners Corner] - Re: About JBoss user's configuration

2009-07-15 Thread xmedeko
the_sinner wrote : my application falls down when 4 users or more login and 
use it.

It looks more like a bug in your application? Or does your app is so resource 
consuming? 

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

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


[jboss-user] [Beginners Corner] - Re: Log4j Configuration

2009-07-09 Thread xmedeko
Hi, the recent 5.1.0GA has brought some changes regarding the logging. I just 
wonder, if JBoss 5.1.0GA already contains some solution for repository logging 
or do we have to still use own repository selector described in 
http://www.jboss.org/community/wiki/Log4jRepositorySelector ?

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Deplyoment failing in jboss-5.1.0.GA

2009-07-09 Thread xmedeko
And what about to set java2ClassLoadingCompliance attribute to true? Either 
in jboss-web.xml, see 
http://www.jboss.org/community/wiki/ClassLoadingConfiguration or in the 
deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Re-deployment questions?

2009-07-09 Thread xmedeko
What you need is HA. Try to digg JBoss resources, you will find some documents 
about it. You also do not need JBoss way to HA, you can make it in OS level. 
E.g. Linux iptables stuff.

You can also do exploded deployment. Then you update just certain files. If you 
update just JSP pages, you even do not need to redeploy the app. When you 
update some libs or classes, then you just touch the WEB-INF/web.xml.

Anyway, HA is more robust solution.

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

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


[jboss-user] [Beginners Corner] - Re: Classpath issues with ear and war

2009-07-09 Thread xmedeko
EAR takes lib from lib/, if you want to use lib/external/ then you have to 
specify it in META-INF/application.xml, not in META-INF/MANIFEST.MF.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Deplyoment failing in jboss-5.1.0.GA

2009-07-09 Thread xmedeko
I guess

?xml version=1.0 encoding=UTF-8?
  | classloading xmlns=urn:jboss:classloading:1.0
  | name=MyWar.war
  | domain=localhost
  | export-all=NON_EMPTY
  | import-all=true 

is the opposite what you want. Maybe you should try something like

?xml version=1.0 encoding=UTF-8?
  | classloading xmlns=urn:jboss:classloading:1.0
  | name=MyWar.war
  | domain=localhost
  | export-all=false
  | import-all=false 

Just my guess, try to play with that.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Limit access by IP address

2009-06-26 Thread xmedeko
Anyway, it's already in Jboss wiki:

http://www.jboss.org/community/wiki/LimitAccessToCertainClients

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

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


[jboss-user] [EJB 3.0] - Re: EAR packaging

2009-06-26 Thread xmedeko
Hmm, I do not understand much your explanations. You shoulb be able to break a 
JAR into more JARs without any problem. Can you describe, what's the content of 
your EAR?

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

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


[jboss-user] [EJB 3.0] - Limit IP access to a session beans (EAR)

2009-06-26 Thread xmedeko
Hi, is it possible to limit IP access to the certain EAR with session beans? It 
is easily possible for WAR, but I cannot find any solution for EAR. E.g. I have 
two EARs deployed, each contain some session beans. I want to limit a.EAR for 
some set of  IPs and b.EAR for another set of IPs.

Thanks

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

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


[jboss-user] [EJB 3.0] - Re: Limit IP access to a session beans (EAR)

2009-06-26 Thread xmedeko
Well, JEE does not specify this, I was thinking something JBoss specific. Like 
Tomcat has http://www.jboss.org/community/wiki/LimitAccessToCertainClients

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

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


[jboss-user] [EJB 3.0] - Re: Limit IP access to a session beans (EAR)

2009-06-26 Thread xmedeko
Well, the client address is accessible from thread name :-). So, I can write 
the Around Invoke Interceptor Method to check this IP. I was just asking if 
there is some nice JBoss solution for this. You know, some config with IP 
addresses like 10.1.1.128/20 :-)

BTW. about accessing IP from session beans: I think BEA or Oracle AS put client 
IP somewhere into the session context. Or I was thinking that some ThreadLocal 
variable could do the trick. But it is solution for the JEE session beans, that 
would not work for the JBoss service bean, I guess.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Certificate and form login in one WAR

2009-06-24 Thread xmedeko
No, I do not mean transport CONFIDENTIAL, I mean client certificate 
authentication (CLIENT-CERT).

I.e. one servlet can be accesses only by a client with certain certificate 
(CLIENT-CERT) method, and another servlet accessed by user:password (FORM).

The servlet accessed by the CLIENT-CERT method is in fact accessed just by a 
Java Swing application, not by the browser. So I think I may code some 
solution, like that the Java app will send certificate in POST data.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Certificate and form login in one WAR

2009-06-24 Thread xmedeko
Hmm, yeah, thanks.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Certificate and form login in one WAR

2009-06-23 Thread xmedeko
Hi,
is it possible to have in one WAR: one servlet protected by a certificate 
authentication and the another servlet protected by FORM authentication?

Thanks

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

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


[jboss-user] [JBoss Tools (users)] - Re: Tool stable 3.0.1 and JBoss 5.1.0 GA

2009-06-12 Thread xmedeko
Great! Anyway, current release work for me fine.

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

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


[jboss-user] [Beginners Corner] - Re: Setting Up JBoss POJO Cache

2009-06-10 Thread xmedeko
Hi, I know nothing about this problem, I have just stumbled on this article, 
maybe it helps:

http://www.samaxes.com/2009/03/17/jboss-pojocache-configuration/

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

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


[jboss-user] [Beginners Corner] - Re: Jboss scheduler

2009-06-10 Thread xmedeko
You can start/stop mbean since twiddle and JMX console can do it.

Try to observe, how twiddle script (twiddle.bat, twiddle.sh) in the bin/ 
directory works. The code is in org.jboss.console.twiddle.Twiddle. 



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

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


[jboss-user] [JBoss Tools (users)] - Tool stable 3.0.1 and JBoss 5.1.0 GA

2009-06-10 Thread xmedeko
Hi, 
I have JBoss 5.1.0 GA and JBoss ASTools 2.0.1.GA-R200905070146-H18. 

When I am adding a new server, I cannot add type of 5.1 server, just 5.0 
server. So I have added my 5.1.0GA server as 5.0 server. Now, almost everything 
works fine. 

Just when I click on the JBoss Server View - JBoss 5.1. server - XML 
configuration - Ports, I don't see the port values. Also, when I open 
Overview and try to save it, I got an error dialogue saying something about 
port numbers.

Is it a bug or do I have to use some newer version of tools?

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

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


[jboss-user] [Remoting] - Remoting, XNIO and JBoss 5.1.0 GA

2009-06-01 Thread xmedeko
Hi,

I have found the post 
http://www.jboss.org/index.html?module=bbop=viewtopict=155701 which says, 
that remoting prior to 3.x uses plain Java sockets. JBoss 5.1.0GA includes 
Remoting 2.5.1 and XNIO, too. Does Remoting 2.5.1 use XNIO? If not, may I 
safely remove XNIO from my deploy directory?

Thanks
Andy

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

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


[jboss-user] [Remoting] - Re: Remoting, XNIO and JBoss 5.1.0 GA

2009-06-01 Thread xmedeko
28s:719ms vs. 26s:594msm so more than 2 seconds faster. I have removed XNIO 
from deploy and deployers as well.

But I have made just one experiment, thought.

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

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


[jboss-user] [Remoting] - Re: Remoting, XNIO and JBoss 5.1.0 GA

2009-06-01 Thread xmedeko
Hmm, I have made 3 more experiments and the time oscillates between 26s and 28s 
does not matter if with XNIO or without.

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

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


[jboss-user] [Beginners Corner] - Re: Licensing concerns with on-selling JBoss

2009-05-28 Thread xmedeko
I am not a lawyer, but there is a way how to sell your product based on JBoss 
or any other GPL or LGPL libraries. Otherwise how other companies, like RedHat, 
would make their money? 

I think you have to manage to have your extensions in separate JARs (EARs, 
WARs, whatever), then just sell your extensions, while you keep the rest of the 
JBoss free (and tell your customers about).

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

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


[jboss-user] [Beginners Corner] - Re: changes in a redeploied EJB jar

2009-05-28 Thread xmedeko
JBoss should do it automatically, when you use hot deployment. Do you use an 
exploded deploy? What version of JBoss do you have?

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

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


[jboss-user] [Beginners Corner] - Re: changes in a redeploied EJB jar

2009-05-28 Thread xmedeko
For exploded deployment see

http://www.jboss.org/index.html?module=bbop=viewtopict=155849

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

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


[jboss-user] [EJB 3.0] - Re: Stateful bean keep-alive

2009-05-18 Thread xmedeko
Hello Peter,

thanks for your reply. 

PeterJ wrote : Don't set removalTimeoutSeconds, use idleTimeoutSeconds 
instead. ... 

unfortunately, our session bean cannot be serialized from various reasons. I am 
moving an existing, a little bit larger, application into JBoss. It would be 
not easy to make it serializable. (Maybe in the future I will have to do it 
anyway.)

PeterJ wrote : Creating a new client thread might work, but you have to be 
careful. First, the thread must not lookup the EJB itself - you will end up 
with a new EJB, not with the one that you want to keep alive. Therefore, you 
must pass the bean's proxy to the thread. Second, I recommend creating a 
separate method on the EJB that does nothing - the primary purpose of this 
method is for the extra thread to occasionally call it. This should guarantee 
that the state of the bean does not change inadvertently.

Yes, that what I have already done :-)

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

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


[jboss-user] [EJB 3.0] - Re: Stateful bean keep-alive

2009-05-14 Thread xmedeko
Hi Peter,

I have JB 5.0.1GA. My SFSB is declared with

@CacheConfig(maxSize = 1, idleTimeoutSeconds = 6, removalTimeoutSeconds 
= 60)

So, the SFSB is removed after 60 seconds of inactivity (for testing). I got the 
stub (proxy) for this SFSB in a plain old (standalone) Java application (POJA) 
via JNDI lookup. 

When there's more then 60 sec. delay between calls to this bean from the 
application, then the bean is removed. What's the problem: I want the bean to 
be removed soon, when the application crashes (i.e. when no addShutdownHook was 
called), but I do not want to remove it, when the user keep the application 
open and makes no action. E.g. user goes to lunch or takes a nap. 

I was thinking about making a thread in the client application, which will 
contact the bean in the specified interval (keep-alive calls). But then I have 
to make sure all calls to the bean are synchronised as well.

So I was thinking, that there must be more people having similar problem. So I 
am interested, if there's some existing solution in JBoss for this if I have to 
code it by myself.

Thanks
Andy

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss 5.0.1 and EARClassLoaderDeployer isolation

2009-05-13 Thread xmedeko
Many thanks, Jaikiran.

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

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


[jboss-user] [EJB 3.0] - Stateful bean keep-alive

2009-05-13 Thread xmedeko
Hi,

is there any mechanism, how to keep-alive the stateful session bean when 
accessing it from the Java Swing client? Or do I have to code my own solution?

Thanks
Andy

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss 5.0.1 and EARClassLoaderDeployer isolation

2009-05-12 Thread xmedeko
Hi,

I want to turn on class loader isolation for all EAR deployed into the server. 
I have followed http://www.jboss.org/community/wiki/ClassLoadingConfiguration, 
but I cannot find the file deploy/ear-deployer.xml. I have found just the file 
deployers/ear-deployer-jboss-beans.xml and there I have set there:

bean name=EARClassLoaderDeployer 
class=org.jboss.deployment.EarClassLoaderDeployer
  |   !-- A flag indicating if ear deployments should have their own scoped
  |  class loader to isolate their classes from other deployments.
  |   --  
  |   property name=isolatedtrue/property
  |/bean
  | 

I have deployed two versions of my EAR (exploded), but the classes are still 
shared. When I check the class loader in the JMX console, then classloader 
loads only classes for one of those EARs, the list of classes for the other EAR 
is empty.

Is this a bug or do I have set something wrong?

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

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


[jboss-user] [JCA/JBoss] - Re: Change *-ds.xml file at runtime without reloading the DS

2009-05-11 Thread xmedeko
Hmm, this is not such a big issue to turn off the hot deployer. Some cold 
deploy directory would be cool for such kind of problems :-)

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

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


[jboss-user] [JCA/JBoss] - Re: Change *-ds.xml file at runtime without reloading the DS

2009-05-11 Thread xmedeko
I use JBoss 5.0.1 unfortunatelly.

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

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


[jboss-user] [JCA/JBoss] - Change *-ds.xml file at runtime without reloading the DS.

2009-05-07 Thread xmedeko
Hi,

is there any way to change *-ds.xml at runtime without reloading the 
DataSource? Because reloading the datasource makes it unavailable for some 
time. I am happy with changes through JMX console, just it does not write the 
changes back to the *-ds.xml file, so when the JBoss is restarted, the 
DataSource is started with old values.

Thanks
Andy

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

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


[jboss-user] [EJB 3.0] - Re: Service bean and concurrency access

2009-05-06 Thread xmedeko
Well, I have found out, that the bussines methods mey be called from diferent 
threads.

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

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


[jboss-user] [JBoss Tools (users)] - Re: package archiover and dependency

2009-05-04 Thread xmedeko
Hi Rob and Max,

from my point of view this is not a much desired feature though. I do not need 
the EAR to be up to date all the time. Clicking the Build Archive before the 
redeploy is not much bothering.

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

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


[jboss-user] [Remoting] - Streming to and from the server

2009-05-02 Thread xmedeko
Hi,

as I understand from this forum and from 
http://www.jboss.org/community/docs/DOC-11807, it is possible currently stream 
data only from client to server.

I need to stream data from and to server, in both cases it must fit into 
client/server architecture, i.e. client drives the communication (to avoid 
problems with NATs, proxies, etc.) Also, I would like to integrate easily into 
a (stateful) session bean.

I have found this simple solution:

http://courses.cs.vt.edu/~cs5204/archive/ProjectFiles/KangYuan.pdf

http://courses.cs.vt.edu/~cs5204/archive/ProjectFiles/KangYuan.zip


I just thought you could be interested in this solution as well.

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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-05-02 Thread xmedeko
Well, this probably point into the soltion:

http://www.jboss.org/index.html?module=bbop=viewtopict=73311

Proxies to the session beans must be serializable, so they can be used to pass 
around ...

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

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


[jboss-user] [JBoss Tools (users)] - Re: package archiover and dependency

2009-04-30 Thread xmedeko
https://jira.jboss.org/jira/browse/JBIDE-4249

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

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


[jboss-user] [JBoss Tools (users)] - package archiover and dependency

2009-04-27 Thread xmedeko
Hi,

I've just started playing with the package archiver. It looks nice. I think 
Eclipse should use this one instead of its weird JAR Archiver.

Anyway, I have a question. I have a two archives, one is x.jar (compressed) and 
x.ear (exploded). x.ear contains a fileset, which includes x.jar. So my 
directory structure is:

x.jar
  | ear/x.ear/
  | ear/x.ear/x.jar

x.jar contains compiled Java classes. When I make a change in the Java code, 
the x.jar is properly updated, however, the x.ear contains the old version of 
x.jar. I have to select Build Archive action from the menu.

Is this a bug or expected behaviour?

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

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


[jboss-user] [EJB/JBoss] - Re: Stateful Session Beans as Web Services on Jboss 5.0

2009-04-16 Thread xmedeko
Can web service be stateful?

see 
http://www.coderanch.com/t/419120/Web-Services-Certification-SCDJWS/certification/Stateful-Web-Service

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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-04-16 Thread xmedeko
I have a similar problem with JBoss 5.0.1 GA. I have one SFSB (which holds some 
data) with only local business interface . And several SLSBs with remote 
interfaces. All SLSBs inject the SFSB using @EJB. I have a standalone Swing 
client accessing the SLBS. I have observed that:

- Each SLSB inject new SFSB although the session is the same.

- When the session is removed (by a business method marked as @Remove), the 
next call to a SLBS throws javax.ejb.NoSuchEJBException: Could not find 
stateful bean: all5z-81lkw2-ftl86qub-1-ftl9srgf-a0. I suspect (like the 
previous post), that @EJB is not refreshed each time the SLBS is called, but 
only when it is created.

Is this a normal behaviour or a bug?

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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-04-16 Thread xmedeko
Hmm, I think injecting of SFSB into SLSB is a wrong design:

http://www.coderanch.com/t/436872/EJB-Other-Java-EE-Technologies/java/Dependency-injection-stateful-session-beans


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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-04-16 Thread xmedeko
Hmm, I have changed my all SLSBs info SFSBs, but it didn't help my problem. If 
fact, I need something like http session, but for session beans called from 
Swing client. I.e. the client calls a several session bean, they gets some 
object which are related to this client (a quick operation) and then make some 
lengthy operation, like accessing DB or the local filesystem.

Yes, if I will have just one SFSB, then it would work for me. However, I'd like 
to have more remote interfaces just to have the code logically separated, since 
I have a quite few business methods to call.

Thanks for any help
Andy

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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-04-16 Thread xmedeko
Well, then I do not see, why SFSBs exists. I have hoped they can do this for me.

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

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


[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB

2009-04-16 Thread xmedeko
I fact, when I use just one SFSB, then it works fine, just I have many methods 
there and sometimes ugly names like getCountForAAA(), getCountForBBB(). I still 
cannot believe there is not any nice easy way how to break my code into more 
objects :-)


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

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


[jboss-user] [JBoss Tools (users)] - Why two server names?

2009-04-14 Thread xmedeko
Hi, I have also noticed that in my org.eclipse.wst.server.core/server.xml I 
have entries sometimes entries like

server hostname=localhost id=JBoss 5.0 Standart Server name=JBoss 5.0 
Standart localhost ...

Note the different values for the server id and server name.  Is it right? 
I think it is from older (beta) release of the 3.0 tools. Now, when I make a 
new JBoss server, it has the id and name attributes with the same value. 
Anyway, the New JBoss wizard asks me twice to enter the Server name, but 
only the secondly entered name appears in the server.xml as the value of the 
attributes id and name. Is there any reason, why the wizard asks twice for 
the Server name ?

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

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


[jboss-user] [EJB 3.0] - Service bean and concurrency access

2009-03-31 Thread xmedeko
Hi,
how is concurrent access to the JBoss @Service bean? 

I have found that OpenEJB has similar @Singleton bean, which can specify the 
concurrency access, see http://openejb.apache.org/3.0/singleton-beans.html

The container managed concurrency access: all invocations of the business 
methods are serialized.

Bean managed concurrency access: the bean has to manage critical parts by 
itself.

Does anybody know, how is the (default) @Service bean concurrency management in 
JBoss?

Thanks
Andy


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

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


[jboss-user] [Beginners Corner] - Re: Service and Stateless EJB 3.0

2009-03-30 Thread xmedeko
Also, I'd like to know, if every remote invocation of the Service bean is in a 
separate thread? Are these threads synchronised, or else do I have to take care 
of thread safety by myself?

Thanks
Andy

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

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


[jboss-user] [Beginners Corner] - Service and Stateless EJB 3.0

2009-03-27 Thread xmedeko
Hi,

I need to make a Service bean and access it remotelly. I can make it easy by 
creating a remote interface to this service. Is this solution good for a heavy 
load, i.e. about 400 client calls at one time and handling each call can take a 
long time to handle?

Or is better to make a Stateless session bean which will expose remote 
interface and call this service locally?

Thank you
Andy

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-24 Thread xmedeko
Yes, I think the code is right, you have just a problem with the network 
settings. Maybe you have set somewhere, that your computer is admin-836482f5f.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Default installations are unsecured

2009-03-24 Thread xmedeko
Hi,

http://goohackle.com/jboss-security-vulnerability-jmx-management-console/

http://www.nruns.com/_downloads/Whitepaper-Hacking-jBoss-using-a-Browser.pdf

Just try to google for jboss jmx management console or MBean inspector and 
you can hack or shutdown lot of JBoss instalations.

I know that it is fault of the admins, but there are techniques how to prevent 
it. Maybe collegues from RedHat security can advise. Something like:

- the console is secured and random password for admin is generated during the 
installation process (or maybe during the first run of the server? or anytime a 
password is null a random password is generated?)

- the console is not configured by default. instead, the localhost:8080 points 
to a static web page, which tell the user how to start secured (or unsecured)  
jmx-console

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Default installations are unsecured

2009-03-24 Thread xmedeko
Hmm, anyway, you can still find many sites with JBoss 4.2.x releases unsecured 
by Google search. 

I don't want to blame on JBoss team. Just to let you know about it.

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

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


[jboss-user] [EJB 3.0] - JDBC close

2009-03-23 Thread xmedeko
Hi,

I use JDBC in a stateless session bean. (I know it's a bad practice.)  I get 
the connection via the JBoss DataSource 

try {
InitialContext ic = new InitialContext();
dataSource = (DataSource) ic.lookup(java:/testDS);
Connecion conn = dataSource.getConnection();

PreparedStatement ps = ...
ResultSet rs = ps.executeStatemet();

} catch (SQLException e) {
  LOG(...);
  throw new EJBException(e);
} finally {
 DBUtils.close(rs);
 DBUtils.close(ps);
 DBUtils.close(conn);
}


I am not sure, whether is it the right thing to close all JDBC resources in the 
finally clause? AFAIK the container makes a rollback in case of any exception. 
But I do not know, if the container also cleans everything up as well? E.g. 
would be sufficient


try {
InitialContext ic = new InitialContext();
dataSource = (DataSource) ic.lookup(java:/testDS);
Connecion conn = dataSource.getConnection();

PreparedStatement ps = ...
ResultSet rs = ps.executeStatemet();

rs.close();
ps.close();
conn.close();
} catch (SQLException e) {
  LOG(...);
  throw new EJBException(e);
}

Thank you
Andy 

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-23 Thread xmedeko
The error is printed on the server or on the client?

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-23 Thread xmedeko
Nope, but if you try google for admin-836482f5f you find some other people 
have encountered this strange string admin-836482f5f.

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-23 Thread xmedeko
maybe this 

http://www.jboss.org/index.html?module=bbop=viewtopicp=4219806#4219806

can help you?

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-23 Thread xmedeko
Well, the exception says, it cannot find the host admin-836482f5f. So maybe a 
problem in your network settings? What says ipconfig.exe /all (or ifconfig). 
Can you ping admin-836482f5f?

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

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


[jboss-user] [Beginners Corner] - Re: remote access to ejb :java.rmi.UnknownHostException

2009-03-23 Thread xmedeko
Well, the exception says, it cannot find the host admin-836482f5f. So maybe a 
problem in your network settings? What says ipconfig.exe /all (or ifconfig). 
Can you ping admin-836482f5f?

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

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


[jboss-user] [EJB 3.0] - Re: Found a bug? Need a feature? Have a patch? See JIRA

2009-03-19 Thread xmedeko
http://www.jboss.org/products/ejb3/jira 

Does not work anymore. Maybe it should be

https://jira.jboss.org/jira/browse/EJBTHREE

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

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


[jboss-user] [EJB 3.0] - Re: @EJB injection in JBoss 5 application clients?

2009-03-17 Thread xmedeko
Hi,

I am a beginner with JEE. I don't understand, why examples here 
http://www.jboss.org/community/docs/DOC-12835 have a class with main method in 
the EAR file. As I understand, the EAR is deployed on the server, but one 
usually need to deploy clinets on the other machines. Also, the client would 
need to access the remote interface. So, I thing there should be 3 jars: one 
for a server, one for a client and a shared jar with interfaces and shared 
objects. Is that right?

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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss Server View:

2009-03-11 Thread xmedeko
Hmm, I do not know how to attach the images to this forum. So, I've put them 
here:

[img]http://xmedeko.googlepages.com/eclipse1.PNG[/img]
[img]http://xmedeko.googlepages.com/eclipse2.PNG[/img]


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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss Server View:

2009-03-11 Thread xmedeko
Note, I have installed only plugins called JBossAS Tools and JMX Console. 
No other plugins from JBoss repository.

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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss Server View:

2009-03-10 Thread xmedeko
Install a JBossAS plugin ( Version: 2.0.0.CR2-R200901280154) by Eclipse 
software update from (http://download.jboss.org/jbosstools/updates/development) 
into the Eclipse 3.4.2 (Build id: M20090211-1700). Then open JBoss Server 
View, move mouse onto the tab title JBoss Server View (yes, directly onto 
this title). And you should see a tooltip. Do you see the same error like me?

I have observed two other things:
Server Log view title has no tooltip.
MBean Explorer has a tooltip: Error: no label provider for 
org.jboss.tools.jmx.ui.internal.views.navigator.jmxnaviga...@ (I hope i 
have rewritten it correctly).

I have also installed JMX Console plugin (also by the software updates).



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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss Server View:

2009-03-09 Thread xmedeko
Yes, everything's fine, just a tooltip is bad.

I am a beginner. I was confused, that I have not seen the the servers, which I 
have added in Preferences and by the tooltip. I didn't know, I have to add 
servers by right mouse click. Sorry for misleading post.

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

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


[jboss-user] [JBoss Tools (users)] - JBoss Server View: Error: no label provider for R/

2009-03-06 Thread xmedeko
Hi,

I've just installed a JBossAS plugin ( Version: 2.0.0.CR2-R200901280154) by 
software update from (http://download.jboss.org/jbosstools/updates/development) 
into the Eclipse 3.4.2 (Build id: M20090211-1700). 

I have added path to a JBoss 4.2.3 and 5.0.1 in the Preferences-  ?When I open 
the JBoss Server View, I see nothing. Just the tooltip says: Error: no label 
provider for R/.

I have tried to install the JBossAS plugin from 
http://download.jboss.org/jbosstools/updates/nightly/3.0.x/, I've tried to 
uninstall it and install again, but all the time same result. What's wrong? 
Should I install something else beside JBossAS plugin (missing dependency)?

Thanks
Andy

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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss Server View:

2009-03-06 Thread xmedeko
O'right, the tooltip displays the error, but everything works properly.

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

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