'I.T. Diary/Middleware'에 해당되는 글 6건

  1. 2010/03/20 Jboss 에서 context-root 을 바꿀때
  2. 2010/02/28 Securing the jboss JMX console
  3. 2010/02/28 Jboss LDAP Intergration
  4. 2009/12/12 Jboss Seam
  5. 2009/11/09 Seam
사용하는 applcation 에서 applcaiton.xml 을 아래와같이 하면 직접 doman url 로 application 이 포인트 됨
또한  아래와 같이 root.war 을 rename 하여함

[root@localhost deploy]# cd jboss-web.deployer/
[root@localhost jboss-web.deployer]# ls
aROOT.war    jasper-jdt.jar       jbossweb-service.jar  META-INF
conf         jbossweb-extras.jar  jsf-libs              server.xml
context.xml  jbossweb.jar         jstl.jar
[root@localhost jboss-web.deployer]# pwd
/usr/local/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer

=======================================================

application.xml  jboss-app.xml
[root@localhost META-INF]# more application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application 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/application_5.
xsd"
             version="5">
   
   <display-name>sangbooking</display-name>
  
   <module>
      <web>
         <web-uri>sangbooking.war</web-uri>
         <context-root>/sangbooking      /              </context-root>
      </web>
   </module>
  
   <module>
      <ejb>sangbooking.jar</ejb>
   </module>
  
   <!-- Seam and EL -->
   <module>
       <ejb>jboss-seam.jar</ejb>
   </module>   

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, seam
JMX console 보안을 위해 유저 와 패스워드을 입력하게 하는 방법. 모든 웹로인에도 같은 방식을 적용.

http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/Inspecting_the_Server___the_JMX_Console_Web_Application-Securing_the_JMX_Console.html

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, JMX
Jboss  와 opend ldap intergration 에 대한 좋은 블로그 입니다.

1)우선 openldap server 와 openldap client ( ldapsearch 을 사용하기위해 ) 설치하고
 
2) ldap configuration 인  /etc/openldap/slapd.conf 에서  suffix, rootdn 을  아래화같이 수정하고

         suffix          "dc=company,dc=com"
         rootdn          "cn=Manager,dc=company,dc=com"
3) slappasswd 을 사용하여 패스워드을 사용하여 hash 값을 구해 /etc/openldap/slapd.conf 에 저장한다.

4)    http://dsoft-tech.blogspot.com/2006/10/jboss-ldap-integration.html 있는 데이타을 ldif 로 저장하여 추가한다     

      ldapadd -f entries.ldif -x -D "cn=Manager,dc=company,dc=com" -w secret

5)  lidf 파일을 설치하여 아래와 같은 ldapsearch   해본다.

ldapsearch -x -D "cn=Manager,dc=example,dc=com" -W


ldapsearch -x -b 'dc=company,dc=com' '(objectclass=*)'

ldapsearch -x -b 'dc=company,dc=com' uid="admin" | more


  http://dsoft-tech.blogspot.com/2006/10/jboss-ldap-integration.html  에서 잘못된것

dn: dc=company,dc=com
dc: company
objectClass: top
objectClass: dcObject
objectClass: domain

dn: ou=Roles,dc=company,dc=com
ou: Roles
objectClass: top
objectClass: organizationalUnit

dn: ou=People,dc=company,dc=com
ou: People
objectClass: top
objectClass: organizationalUnit

dn: uid=demo,ou=People,dc=conpany   company,dc=com
uid: demo
objectclass: person
objectclass: inetOrgPerson
cn: demo
sn: demo

dn: uid=admin,ou=People,dc=company,dc=com
uid: admin
objectClass: person
objectClass: inetOrgPerson
cn: Admin
sn: admin

dn: cn=Administrator,ou=Roles,dc=company,dc=com
cn: Admin Administrator
objectClass: top
objectClass: groupOfNames
member: uid=admin,ou=People,dc=company,dc=com

dn: cn=Users,ou=Roles,dc=company,dc=com
cn:Users
objectClass: top
objectClass: groupOfNames
member: uid=demo,ou=People,dc=company,dc=com
member: uid=admin,ou=People,dc=company,dc=com

web.xml 파일도 아래아 같이
 
<security-constraint>
     <web-resource-collection>
       <web-resource-name>HtmlAdaptor</web-resource-name>
       <description>An example security config that only allows users with the
         role JBossAdmin to access the HTML JMX console web application
       </description>
       <url-pattern>/*</url-pattern>
       <http-method>GET</http-method>
       <http-method>POST</http-method>
     </web-resource-collection>
     <auth-constraint>
       <role-name>Administrator</role-name>
     </auth-constraint>
   </security-constraint>

<login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Admin</realm-name>
           </login-config>

<security-role>

하면 admin 만 입력하면 role group 에 있기에 authenication 됨.

sldap.conf 이 다음을 첨가
allow bind_anon_dn

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss
Seam 관련 사이트 모음입니다.

http://docs.jboss.org/tools/movies/

http://edemmorny.wordpress.com/2007/12/12/getting-netbeans-60-ready-for-seam-development/

http://www.javapassion.com/handsonlabs/jsfvisualjsf/#Homework_Exercise

http://www.thescreencast.com/2007/06/jboss-seam-generator-and-eclipse-ide.html

http://blogs.sun.com/carolmcdonald/entry/sample_application_using_jsf_seam

http://weblogs.java.net/blog/caroljmcdonald/archive/2007/07/sample_applicat_1.html




'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, seam

Seam

I.T. Diary/Middleware 2009/11/09 04:37
우연히 웹서핑을하다 SEAM 에대해 알게되었다. 평소 미들웨어을 다루니 자연히 EJB 에 관심이 많아 프로그램도 만들어 보곤하였지만 딱히 프로젝트를 할정도는 아니었다. 뉴질랜드는 개발자와 관리자,  Tester 의 업무가 정확하게 분리되어있어서 시스템 관리자는 Java coding 업무가 없다.  하여간에 이 Seam 을 보면 EJB3 의 annonation 와 Seam 자체 annonation 그리고 JSF, Hibernte 을 사용하여 어렸지 않게 ?  웹 자바프로그램을 작성할수 있는듯다. 예제인 Hotel Booking 프로그램을  Eclipse 나 Netbean 을 사용보면 감을 잡을수 있다. 시간이 나면 여러사용 방법을 블로그에 기록하도록 하겠다. 나이가 들어가면서 건망증이 있는지 몇칠전에 했던것도 깜박하니 기록해두는것이 차후 필요할때 시간을 허비하지 않는 지름길이다.

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz