Guest User

Untitled

a guest
Nov 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.37 KB | None | 0 0
  1. package edu.tdt.persistence;
  2.  
  3. import java.io.Serializable;
  4. import java.util.Collection;
  5. import javax.persistence.Basic;
  6. import javax.persistence.CascadeType;
  7. import javax.persistence.Column;
  8. import javax.persistence.Entity;
  9. import javax.persistence.Id;
  10. import javax.persistence.NamedQueries;
  11. import javax.persistence.NamedQuery;
  12. import javax.persistence.OneToMany;
  13. import javax.persistence.Table;
  14. import javax.validation.constraints.NotNull;
  15. import javax.validation.constraints.Size;
  16. import javax.xml.bind.annotation.XmlRootElement;
  17. import javax.xml.bind.annotation.XmlTransient;
  18.  
  19. /**
  20. *
  21. * @author MSI
  22. */
  23. @Entity
  24. @Table(name = "Student", catalog = "ITCenterManagement", schema = "public")
  25. @XmlRootElement
  26. @NamedQueries({
  27. @NamedQuery(name = "Student.findAll", query = "SELECT s FROM Student s")
  28. , @NamedQuery(name = "Student.findByStudentID", query = "SELECT s FROM Student s WHERE s.studentID = :studentID")
  29. , @NamedQuery(name = "Student.findByName", query = "SELECT s FROM Student s WHERE s.name = :name")
  30. , @NamedQuery(name = "Student.findByBirthDay", query = "SELECT s FROM Student s WHERE s.birthDay = :birthDay")
  31. , @NamedQuery(name = "Student.findByAddress", query = "SELECT s FROM Student s WHERE s.address = :address")
  32. , @NamedQuery(name = "Student.findByPhoneNumber", query = "SELECT s FROM Student s WHERE s.phoneNumber = :phoneNumber")
  33. , @NamedQuery(name = "Student.findByEmail", query = "SELECT s FROM Student s WHERE s.email = :email")
  34. , @NamedQuery(name = "Student.findByA", query = "SELECT s FROM Student s WHERE s.a = :a")})
  35. public class Student implements Serializable {
  36.  
  37. @Size(max = 2147483647)
  38. @Column(name = "Birthday", length = 2147483647)
  39. private String birthday;
  40. @Size(max = 2147483647)
  41. @Column(name = "PhoneNumber", length = 2147483647)
  42. private String phoneNumber;
  43.  
  44. private static final long serialVersionUID = 1L;
  45. @Id
  46. @Basic(optional = false)
  47. @NotNull
  48. @Column(name = "StudentID", nullable = false)
  49. private Long studentID;
  50. @Size(max = 2147483647)
  51. @Column(name = "Name", length = 2147483647)
  52. private String name;
  53. @Size(max = 2147483647)
  54. @Column(name = "BirthDay", length = 2147483647)
  55. private String birthDay;
  56. @Size(max = 2147483647)
  57. @Column(name = "Address", length = 2147483647)
  58. private String address;
  59. // @Pattern(regexp="[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", message="Invalid email")//if the field contains email address consider using this annotation to enforce field validation
  60. @Size(max = 2147483647)
  61. @Column(name = "Email", length = 2147483647)
  62. private String email;
  63. @Size(max = 2147483647)
  64. @Column(name = "", length = 2147483647)
  65. private String a;
  66. @OneToMany(cascade = CascadeType.ALL, mappedBy = "student")
  67. private Collection<Attendance> attendanceCollection;
  68. @OneToMany(mappedBy = "studentID")
  69. private Collection<RegisterInformation> registerInformationCollection;
  70. @OneToMany(cascade = CascadeType.ALL, mappedBy = "student")
  71. private Collection<TestResult> testResultCollection;
  72.  
  73. public Student() {
  74. }
  75.  
  76. public Student(long studentID) {
  77. this.studentID = studentID;
  78.  
  79. }
  80.  
  81. public Student(long studentID, String name, String birthday, String address, String phonenumber, String email) {
  82. this.studentID = studentID;
  83. this.name = name;
  84. this.birthDay = birthday;
  85. this.address = address;
  86. this.phoneNumber = phonenumber;
  87. this.email = email;
  88. }
  89.  
  90. public Long getStudentID() {
  91. return studentID;
  92. }
  93.  
  94. public void setStudentID(Long studentID) {
  95. this.studentID = studentID;
  96. }
  97.  
  98. public String getName() {
  99. return name;
  100. }
  101.  
  102. public void setName(String name) {
  103. this.name = name;
  104. }
  105.  
  106. public String getBirthDay() {
  107. return birthDay;
  108. }
  109.  
  110. public void setBirthDay(String birthDay) {
  111. this.birthDay = birthDay;
  112. }
  113.  
  114. public String getAddress() {
  115. return address;
  116. }
  117.  
  118. public void setAddress(String address) {
  119. this.address = address;
  120. }
  121.  
  122. public String getEmail() {
  123. return email;
  124. }
  125.  
  126. public void setEmail(String email) {
  127. this.email = email;
  128. }
  129.  
  130. public String getA() {
  131. return a;
  132. }
  133.  
  134. public void setA(String a) {
  135. this.a = a;
  136. }
  137.  
  138. @XmlTransient
  139. public Collection<Attendance> getAttendanceCollection() {
  140. return attendanceCollection;
  141. }
  142.  
  143. public void setAttendanceCollection(Collection<Attendance> attendanceCollection) {
  144. this.attendanceCollection = attendanceCollection;
  145. }
  146.  
  147. @XmlTransient
  148. public Collection<RegisterInformation> getRegisterInformationCollection() {
  149. return registerInformationCollection;
  150. }
  151.  
  152. public void setRegisterInformationCollection(Collection<RegisterInformation> registerInformationCollection) {
  153. this.registerInformationCollection = registerInformationCollection;
  154. }
  155.  
  156. @XmlTransient
  157. public Collection<TestResult> getTestResultCollection() {
  158. return testResultCollection;
  159. }
  160.  
  161. public void setTestResultCollection(Collection<TestResult> testResultCollection) {
  162. this.testResultCollection = testResultCollection;
  163. }
  164.  
  165. @Override
  166. public int hashCode() {
  167. int hash = 0;
  168. hash += (studentID != null ? studentID.hashCode() : 0);
  169. return hash;
  170. }
  171.  
  172. @Override
  173. public boolean equals(Object object) {
  174. // TODO: Warning - this method won't work in the case the id fields are not set
  175. if (!(object instanceof Student)) {
  176. return false;
  177. }
  178. Student other = (Student) object;
  179. if ((this.studentID == null && other.studentID != null) || (this.studentID != null && !this.studentID.equals(other.studentID))) {
  180. return false;
  181. }
  182. return true;
  183. }
  184.  
  185. @Override
  186. public String toString() {
  187. return "edu.tdt.persistence.Student[ studentID=" + studentID + " ]";
  188. }
  189.  
  190. public String getBirthday() {
  191. return birthday;
  192. }
  193.  
  194. public void setBirthday(String birthday) {
  195. this.birthday = birthday;
  196. }
  197.  
  198. public String getPhoneNumber() {
  199. return phoneNumber;
  200. }
  201.  
  202. public void setPhoneNumber(String phoneNumber) {
  203. this.phoneNumber = phoneNumber;
  204. }
  205.  
  206. }
  207.  
  208. /*
  209.  
  210. package edu.tdt.persistence;
  211.  
  212. import java.util.List;
  213. import javax.ejb.Remote;
  214.  
  215. /**
  216. *
  217. * @author MSI
  218. */
  219. @Remote
  220. public interface ITCenterManagementPersistenceBeanRemote {
  221. public void insertStudent(Student s);
  222. //void addResultPK(long classID, long stID);
  223. public List<Student> getStudent();
  224.  
  225. }
  226.  
  227. package edu.tdt.persistence;
  228.  
  229. import java.math.BigInteger;
  230. import java.util.Date;
  231. import java.util.List;
  232. import javax.ejb.Stateful;
  233. import javax.ejb.Stateless;
  234. import javax.persistence.EntityManager;
  235. import javax.persistence.PersistenceContext;
  236.  
  237. /**
  238. *
  239. * @author MSI
  240. */
  241. @Stateful
  242. public class ITCenterManagementPersistenceBean implements ITCenterManagementPersistenceBeanRemote {
  243.  
  244. @PersistenceContext(unitName = "QuanLiTTTinHocPU")
  245. private EntityManager entityManager;
  246.  
  247. public ITCenterManagementPersistenceBean() {
  248.  
  249. }
  250.  
  251. @Override
  252. public void insertStudent(Student s) {
  253. //Student s = new Student(id, name, birthday, address, phonenumber, email);
  254. entityManager.persist(s);
  255. }
  256. @Override
  257. public List<Student> getStudent() {
  258. return entityManager.createNamedQuery("Student.findAll").getResultList();
  259. }}
  260.  
  261. package edu.tdt.test;
  262.  
  263. import edu.tdt.persistence.*;
  264. import edu.tdt.persistence.ClassShift;
  265. import edu.tdt.persistence.ITCenterManagementPersistenceBean;
  266. import edu.tdt.persistence.ITCenterManagementPersistenceBeanRemote;
  267. import edu.tdt.persistence.Staff;
  268. import edu.tdt.persistence.Student;
  269. import edu.tdt.persistence.Subject;
  270. import edu.tdt.persistence.Teacher;
  271. import edu.tdt.persistence.Class;
  272. import java.io.FileInputStream;
  273. import java.io.IOException;
  274. import java.math.BigInteger;
  275. import java.text.SimpleDateFormat;
  276. import java.util.Date;
  277. import java.util.List;
  278. import java.util.Properties;
  279. import java.util.Scanner;
  280. import java.util.logging.Level;
  281. import java.util.logging.Logger;
  282. import javax.naming.InitialContext;
  283. import javax.naming.*;
  284. import javax.persistence.*;
  285. import javax.persistence.PersistenceException;
  286.  
  287. /**
  288. *
  289. * @author MSI
  290. */
  291. public class ITCenterManagementTester {
  292.  
  293. private Properties props;
  294. private InitialContext ctx;
  295.  
  296. public ITCenterManagementTester() {
  297. readJNDI();
  298. }
  299.  
  300. private void readJNDI() {
  301. props = new Properties();
  302.  
  303. try {
  304. props.load(new FileInputStream("jndi.properties"));
  305. } catch (IOException e) {
  306. e.getMessage();
  307. }
  308.  
  309. try {
  310. ctx = new InitialContext(props);
  311. } catch (NamingException ex) {
  312. ex.getMessage();
  313. }
  314.  
  315. }
  316.  
  317. private String getJNDI() {
  318. String appName = "";
  319. String moduleName = "QuanLiTTTinHoc";
  320. String distinctName = "";
  321. String sessionBeanName = ITCenterManagementPersistenceBean.class.getSimpleName();
  322. String viewClassName = ITCenterManagementPersistenceBeanRemote.class.getName() + "?stateful";
  323.  
  324. return "ejb:" + appName + "/" + moduleName + "/" + distinctName + "/" + sessionBeanName + "!" + viewClassName;
  325.  
  326. }
  327.  
  328. private void showGUI() {
  329. System.out.println("n===============================");
  330. System.out.println("Welcome to IT center Management");
  331. System.out.println("===============================");
  332. System.out.print("Options: n1. student n2. List All student n3. Teacher n4. List all Tacher"
  333. + "n5. Staff n6. List all Staff n7. Add class n8. List of classn9. Add Subject"
  334. + "n10. Add Class Shift n11. Class Shift list n12. Add Prerequisite Subject n13. Add Schedule n14. Add Exam Schedule"
  335. + "n15. Add Result n16. Addtendance n17. Teaching Schedule n18. Add Register Information"
  336. + "n19. List of Register Informationn20. Exit nEnter Choice: ");
  337. }
  338.  
  339.  
  340. public void testStatefullEJB() {
  341. try {
  342. // Scanner definition
  343. Scanner sc = new Scanner(System.in);
  344.  
  345. // ITCenterManagementPersistenceBeanRemote
  346. ITCenterManagementPersistenceBeanRemote session = (ITCenterManagementPersistenceBeanRemote) ctx.lookup(getJNDI());
  347.  
  348. int choice = 0;
  349. long studentID;
  350. long teacherID;
  351. long staffID;
  352. String name, teachername, staffname;
  353. String birthday, tbirthday, sbirthday;
  354. String address, teacheraddress, staffaddress;
  355. String phonenumber, tphonenumber, sphonenumber;
  356. String email, teacheremail, staffemail;
  357. Subject subjectName = new Subject();
  358. long classID;
  359. String className;
  360. String beginDay;
  361. String endDay;
  362. int stdNumber;
  363. double fee;
  364. long shiftID;
  365. String shiftName;
  366. String beginTime;
  367. String endTime;
  368. double point;
  369. long PSubjectID;
  370. boolean absent;
  371. Date absentDate;
  372. //Staff staffID;
  373. long registerID;
  374. Date registerDate;
  375. ClassShift ShiftID;
  376. String testDate;
  377. String time;
  378. Integer hour;
  379. String room;
  380. do {
  381. showGUI();
  382. choice = Integer.parseInt(sc.nextLine());
  383. switch (choice) {
  384. case 1:
  385. System.out.print("insert Student ID: ");
  386. studentID = Long.parseLong(sc.nextLine());
  387. System.out.print("insert Student name: ");
  388. name = sc.nextLine();
  389. System.out.print("insert Student birthday: ");
  390. birthday = sc.nextLine();
  391. System.out.print("insert Student address: ");
  392. address = sc.nextLine();
  393. System.out.print("insert Student phone number: ");
  394. phonenumber = sc.nextLine();
  395. System.out.print("insert Student email: ");
  396. email = sc.nextLine();
  397. //session.insertStudent(name, birthday, address, phonenumber, email);
  398. Student s = new Student();
  399. System.out.println("Done!");
  400. s.setStudentID(studentID);
  401. s.setName(name);
  402. s.setBirthday(birthday);
  403. s.setAddress(address);
  404. s.setPhoneNumber(phonenumber);
  405. s.setEmail(email);
  406. session.insertStudent(s);
  407. break;
  408. case 2:
  409. List<Student> stu = session.getStudent();
  410. if (stu.isEmpty()) {
  411. System.out.println("There is no student in list!");
  412. }
  413. System.out.println("n=========================");
  414. System.out.println("Listing Student");
  415. System.out.println("=========================");
  416. for (int i = 0; i < stu.size(); i++) {
  417. System.out.println((i + 1) + "t" + stu.get(i));
  418. }
  419. System.out.println();
  420. break;
  421. default:
  422. break;
  423. } catch (NamingException ex) {
  424.  
  425. Logger.getLogger(ITCenterManagementTester.class.getName()).log(Level.SEVERE, null, ex);
  426.  
  427. }
  428.  
  429. }
  430.  
  431. }
  432.  
  433. package edu.tdt.test;
  434. import javax.ejb.EJBException;
  435. import javax.persistence.*;
  436. /**
  437. *
  438. * @author MSI
  439. */
  440. public class QuanLiTTTinHocTester {
  441.  
  442. /**
  443. * @param args the command line arguments
  444. */
  445. public static void main(String[] args) {
  446. // TODO code application logic here
  447.  
  448. ITCenterManagementTester test = new ITCenterManagementTester();
  449. test.testStatelessEJB();
  450.  
  451. }
  452.  
  453. }
  454.  
  455. Exception in thread "main" javax.ejb.EJBException: java.lang.ClassNotFoundException: org.hibernate.exception.SQLGrammarException
  456. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:238)
  457. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:183)
  458. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
  459. at com.sun.proxy.$Proxy2.insertStudent(Unknown Source)
  460. at edu.tdt.test.ITCenterManagementTester.testStatelessEJB(ITCenterManagementTester.java:169)
  461. at edu.tdt.test.QuanLiTTTinHocTester.main(QuanLiTTTinHocTester.java:22)
  462. Caused by: java.lang.ClassNotFoundException: org.hibernate.exception.SQLGrammarException
  463. at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  464. at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  465. at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
  466. at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  467. at java.lang.Class.forName0(Native Method)
  468. at java.lang.Class.forName(Class.java:348)
  469. at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:131)
  470. at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:112)
  471. at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:948)
  472. at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1255)
  473. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
  474. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224)
  475. at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745)
  476. at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:81)
  477. at java.lang.Throwable.readObject(Throwable.java:914)
  478. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  479. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  480. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  481. at java.lang.reflect.Method.invoke(Method.java:498)
  482. at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
  483. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1637)
  484. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  485. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  486. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  487. at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285)
  488. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
  489. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224)
  490. at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745)
  491. at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:81)
  492. at java.lang.Throwable.readObject(Throwable.java:914)
  493. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  494. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  495. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  496. at java.lang.reflect.Method.invoke(Method.java:498)
  497. at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
  498. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1637)
  499. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  500. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  501. at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285)
  502. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
  503. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224)
  504. at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745)
  505. at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:81)
  506. at java.lang.Throwable.readObject(Throwable.java:914)
  507. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  508. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  509. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  510. at java.lang.reflect.Method.invoke(Method.java:498)
  511. at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
  512. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1637)
  513. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  514. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  515. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  516. at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
  517. at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285)
  518. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
  519. at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
  520. at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
  521. at org.jboss.ejb.client.remoting.InvocationExceptionResponseHandler$MethodInvocationExceptionResultProducer.getResult(InvocationExceptionResponseHandler.java:79)
  522. at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:276)
  523. at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocationResult(EJBObjectInterceptor.java:64)
  524. at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290)
  525. at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocationResult(EJBHomeInterceptor.java:88)
  526. at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290)
  527. at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:46)
  528. at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290)
  529. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocationResult(ReceiverInterceptor.java:142)
  530. at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:265)
  531. at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:453)
  532. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:204)
  533. ... 5 more
  534. C:UsersMSIAppDataLocalNetBeansCache8.2executor-snippetsrun.xml:53: Java returned: 1
  535. BUILD FAILED (total time: 14 seconds)
  536.  
  537. jboss.naming.client.ejb.context=true
  538. java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
  539. java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
  540. java.naming.provider.url=http-remoting://localhost:8080
  541. java.naming.security.principal=admin
  542.  
  543. java.naming.security.credentials=admin123
Add Comment
Please, Sign In to add comment