text:
Murasaki Shikibu

Murasaki Shikibu (紫式部) was a Japanese novelist, poet and lady-in-waiting at the Imperial court in the Heian period. She is best known as the author of The Tale of Genji, widely considered to be one of the world's first novels, written in Japanese between about 1000 and 1012. Murasaki Shikibu is a descriptive name; her personal name is unknown, but she may have been Fujiwara no Kaoriko (藤原香子), who was mentioned in a 1007 court diary as an imperial lady-in-waiting.

Heian women were traditionally excluded from learning Chinese, the written language of government, but Murasaki, raised in her erudite father's household, showed a precocious aptitude for the Chinese classics and managed to acquire fluency. She married in her mid-to-late twenties and gave birth to a daughter, Daini no Sanmi. Her husband died after two years of marriage. It is uncertain when she began to write The Tale of Genji, but it was probably while she was married or shortly after she was widowed. In about 1005, she was invited to serve as a lady-in-waiting to Empress Shōshi at the Imperial court by Fujiwara no Michinaga, probably because of her reputation as a writer. She continued to write during her service, adding scenes from court life to her work. After five or six years, she left court and retired with Shōshi to the Lake Biwa region. Scholars differ on the year of her death; although most agree on 1014, others have suggested she was alive in 1025.

Murasaki wrote The Diary of Lady Murasaki, a volume of poetry, as well as The Tale of Genji. Within a decade of its completion, Genji was distributed throughout the provinces; within a century it was recognized as a classic of Japanese literature and had become a subject of scholarly criticism. Between 1925 and 1933, The Tale of Genji was published in English. Scholars continue to recognize the importance of her work, which reflects Heian court society at its peak. Since the 13th century her works have been illustrated by Japanese artists and well-known ukiyo-e woodblock masters.

Early life
Murasaki Shikibu was born c. 973 in Heian-kyō, Japan, into the northern Fujiwara clan descending from Fujiwara no Yoshifusa, the first 9th century Fujiwara regent. The Fujiwara clan dominated court politics until the end of the 11th century through strategically marrying their daughters into the imperial family and the use of regencies. In the late 10th century and early 11th century, Fujiwara no Michinaga, the so-called Mido Kampaku, arranged his four daughters into marriages with emperors, giving him unprecedented power. Murasaki's great-grandfather, Fujiwara no Kanesuke, had been in the top tier of the aristocracy, but her branch of the family gradually lost power and by the time of Murasaki's birth was at the middle to lower ranks of the Heian aristocracy—the level of provincial governors. The lower ranks of the nobility were typically posted away from court to undesirable positions in the provinces, exiled from the centralized power and court in Kyoto.

Despite the loss of status, the family had a reputation among the literati through Murasaki's paternal great-grandfather and grandfather, both of whom were well-known poets. Her great-grandfather, Fujiwara no Kanesuke, had 56 poems included in 13 of the Twenty-one Imperial Anthologies, the Collections of Thirty-six Poets and the Yamato Monogatari (Tales of Yamato). Her great-grandfather and grandfather were both friendly with Ki no Tsurayuki, who became notable for popularizing Japanese-language verse. Her father, Fujiwara no Tametoki, attended the State Academy (Daigaku-ryō) and became a well-respected scholar of Chinese classics and poetry; his own verse was anthologized. He entered public service around 968 as a minor official and was given a governorship in 996, staying in service until about 1018. Murasaki's mother was descended from the same branch of northern Fujiwara as Tametoki. The couple had three children, a son and two daughters.

In the Heian era the use of names, insofar as they were recorded, did not follow a modern pattern. A court lady, as well as being known by the title of her own position, if any, took a name referring to the rank or title of a male relative. Thus "Shikibu" is not a modern surname, but refers to Shikibu-shō, the Ministry of Ceremonials where Murasaki's father was a functionary. "Murasaki", an additional name possibly derived from the color violet associated with wisteria, the meaning of the word fuji (an element of her clan name), may have been bestowed on her at court in reference to the name she herself had given to the main female character in "Genji". Michinaga mentions the names of several ladies-in-waiting in a 1007 diary entry; one, Fujiwara no Takako (Kyōshi), may be Murasaki's personal name.

In Heian-era Japan, husbands and wives kept separate households; children were raised with their mothers, although the patrilineal system was still followed. Murasaki was unconventional because she lived in her father's household, most likely on Teramachi Street in Kyoto, with her younger brother Nobunori. Their mother died, perhaps in childbirth, when they were quite young. Murasaki had at least three half-siblings raised with their mothers; she was very close to one sister who died in her twenties.

Murasaki was born at a period when Japan was becoming more isolated, after missions to China had ended and a stronger national culture was emerging. In the 9th and 10th centuries, Japanese gradually became a written language through the development of kana, a syllabary based on abbreviations of Chinese characters. In Murasaki's lifetime, men continued to write formally in Chinese, but kana became the written language of intimacy and of noblewomen, setting the foundation for unique forms of Japanese literature.

Chinese was taught to Murasaki's brother as preparation for a career in government, and during her childhood, living in her father's household, she learned and became proficient in classical Chinese. In her diary she wrote, "When my brother ... was a young boy learning the Chinese classics, I was in the habit of listening to him and I became unusually proficient at understanding those passages that he found too difficult to understand and memorize. Father, a most learned man, was always regretting the fact: 'Just my luck,' he would say, 'What a pity she was not born a man! With her brother she studied Chinese literature, and she probably also received instruction in more traditional subjects such as music, calligraphy and Japanese poetry. Murasaki's education was unorthodox. Louis Perez explains in The History of Japan that "Women ... were thought to be incapable of real intelligence and therefore were not educated in Chinese." Murasaki was aware that others saw her as "pretentious, awkward, difficult to approach, prickly, too fond of her tales, haughty, prone to versifying, disdainful, cantankerous and scornful". Asian literature scholar Thomas Inge believes she had "a forceful personality that seldom won her friends."

Marriage
Aristocratic Heian women lived restricted and secluded lives, allowed to speak to men only when they were close relatives or household members. Murasaki's autobiographical poetry shows that she socialized with women but had limited contact with men other than her father and brother; she often exchanged poetry with women but never with men. Unlike most noblewomen of her status, however, she did not marry on reaching puberty; instead she stayed in her father's household until her mid-twenties or perhaps even to her early thirties.

In 996 when her father was posted to a four-year governorship in Echizen Province, Murasaki went with him, although it was uncommon for a noblewoman of the period to travel such a distance that could take as long as five days. She returned to Kyoto, probably in 998, to marry her father's friend, a much older second cousin. Descended from the same branch of the Fujiwara clan, he was a court functionary and bureaucrat at the Ministry of Ceremonials, with a reputation for dressing extravagantly and as a talented dancer. In his late forties at the time of their marriage, he had multiple households with an unknown number of wives and offspring. Gregarious and well-known at court, he was involved in numerous romantic relationships that may have continued after his marriage to Murasaki. As was customary, she would have remained in her father's household where her husband would have visited her. Nobutaka had been granted more than one governorship, and by the time of his marriage to Murasaki he was probably quite wealthy. Interpretations of their marital relationship differ among scholars: Richard Bowring suggests a harmonious marriage, while Japanese literature scholar Haruo Shirane finds evidence of resentment towards her husband in Murasaki’s poems.

The couple's daughter, Kenshi (Kataiko), was born in 999. Two years later Nobutaka died during a cholera epidemic. As a married woman Murasaki would have had servants to run the household and care for her daughter, giving her ample leisure time. She enjoyed reading and had access to romances (monogatari) such as The Tale of the Bamboo Cutter and The Tales of Ise. Scholars believe she may have started writing The Tale of Genji before her husband's death; it is known she was writing after she was widowed, perhaps in a state of grief. In her diary she describes her feelings after her husband's death: "I felt depressed and confused. For some years I had existed from day to day in listless fashion ... doing little more than registering the passage of time ... The thought of my continuing loneliness was quite unbearable".

According to legend, Murasaki retreated to Ishiyama-dera at Lake Biwa, where she was inspired to write The Tale of Genji on an August night while looking at the Moon. Although scholars dismiss the factual basis of the story of her retreat, Japanese artists often depicted her at Ishiyama Temple staring at the Moon for inspiration. She may have been commissioned to write the story and may have known an exiled courtier in a similar position to her hero Prince Genji. Murasaki would have distributed newly written chapters of Genji to friends who in turn would have re-copied them and passed them on. By this practice the story became known and she gained a reputation as an author.

In her early to mid-thirties, she became a lady-in-waiting (nyōbō) at court, most likely because of her reputation as an author. Chieko Mulhern writes in Japanese Women Writers, a Biocritical Sourcebook that scholars have wondered why Murasaki made such a move at a comparatively late period in her life. Her diary evidences that she exchanged poetry with Michinaga after her husband's death, leading to speculation that the two may have been lovers. Bowring sees no evidence that she was brought to court as Michinaga's concubine, although he did bring her to court without following official channels. Mulhern thinks Michinaga wanted to have Murasaki at court to educate his daughter Shōshi.

Court life
Heian culture and court life reached a peak early in the 11th century. The population of Kyoto grew to around 100,000 as the nobility became increasingly isolated at the Heian Palace in government posts and court service. Courtiers became overly refined with little to do, insulated from reality, preoccupied with the minutiae of court life, turning to artistic endeavors. Emotions were commonly expressed through the artistic use of textiles, fragrances, calligraphy, colored paper, poetry, and layering of clothing in pleasing color combinations—according to mood and season. Those who showed an inability to follow conventional aesthetics quickly lost popularity, particularly at court. Popular pastimes for Heian noblewomen—who adhered to rigid fashions of floor-length hair, whitened skin and blackened teeth—included having love affairs, writing poetry and keeping diaries. The literature that Heian court women wrote is recognized as some of the earliest and among the best literature written in Japanese canon.

Rival courts and women poets
When in 995 Michinaga's two brothers Fujiwara no Michitaka and Fujiwara no Michikane died, leaving the regency vacant, Michinaga quickly won a power struggle against his nephew Fujiwara no Korechika (brother to Teishi, Emperor Ichijō's wife), and, aided by his sister Senshi, he assumed power. Teishi had supported her brother Korechika, who was discredited and banished from court in 996 following a scandal involving his shooting at the retired Emperor Kazan, causing her to lose power. Four years later Michinaga sent Shōshi, his eldest daughter, to Emperor Ichijō's harem when she was about 12. A year after placing Shōshi in the imperial harem, in an effort to undermine Teishi's influence and increase Shōshi's standing, Michinaga had her named Empress although Teishi already held the title. As historian Donald Shively explains, "Michinaga shocked even his admirers by arranging for the unprecedented appointment of Teishi (or Sadako) and Shōshi as concurrent empresses of the same emperor, Teishi holding the usual title of "Lustrous Heir-bearer" kōgō and Shōshi that of "Inner Palatine" (chūgū), a toponymically derived equivalent coined for the occasion". About five years later, Michinaga brought Murasaki to Shōshi's court, in a position that Bowring describes as a companion-tutor.

Women of high status lived in seclusion at court and, through strategic marriages, were used to gain political power for their families. In the case of Shōshi and other such marriages to members of the imperial clan, it enabled the woman's clan to exercise influence over the emperor—this was how Michinaga, and other Fujiwara Regents, achieved their power. Despite their seclusion, some women wielded considerable influence, often achieved through competitive salons, dependent on the quality of those attending. Ichijō's mother and Michinaga's sister, Senshi, had an influential salon, and Michinaga probably wanted Shōshi to surround herself with skilled women such as Murasaki to build a rival salon.

Shōshi was 16 to 19 when Murasaki joined her court, either in 1005 or 1006. According to Arthur Waley, Shōshi was a serious-minded young lady, whose living arrangements were divided between her father's household and her court at the Imperial Palace. She gathered around her talented women writers such as Izumi Shikibu and Akazome Emon—the author of an early vernacular history, The Tale of Flowering Fortunes. The rivalry that existed among the women is evident in Murasaki's diary, where she wrote disparagingly of Izumi: "Izumi Shikibu is an amusing letter-writer; but there is something not very satisfactory about her. She has a gift for dashing off informal compositions in a careless running-hand; but in poetry she needs either an interesting subject or some classic model to imitate. Indeed it does not seem to me that in herself she is really a poet at all."

Sei Shōnagon, author of The Pillow Book, had been in service as lady-in-waiting to Teishi when Shōshi came to court; it is possible that Murasaki was invited to Shōshi's court as a rival to Shōnagon. Teishi died in 1001, before Murasaki entered service with Shōshi, so the two writers were not there concurrently, but Murasaki, who wrote about Shōnagon in her diary, certainly knew of her, and to an extent was influenced by her. Shōnagon's The Pillow Book may have been commissioned as a type of propaganda to highlight Teishi's court, known for its educated ladies-in-waiting. Japanese literature scholar Joshua Mostow believes Michinaga provided Murasaki to Shōshi as an equally or better educated woman, so as to showcase Shōshi's court in a similar manner.

The two writers had different temperaments: Shōnagon was witty, clever, and outspoken; Murasaki was withdrawn and sensitive. Entries in Murasaki's diary show that the two may not have been on good terms. Murasaki wrote, "Sei Shōnagon ... was dreadfully conceited. She thought herself so clever, littered her writing with Chinese characters, [which] left a great deal to be desired." Keene thinks that Murasaki's impression of Shōnagon could have been influenced by Shōshi and the women at her court, as Shōnagon served Shōshi's rival empress. Furthermore, he believes Murasaki was brought to court to write Genji in response to Shōnagon's popular Pillow Book. Murasaki contrasted herself to Shōnagon in a variety of ways. She denigrated the pillow book genre and, unlike Shōnagon, who flaunted her knowledge of Chinese, Murasaki pretended to not know the language, regarding it as pretentious and affected.

"The Lady of the Chronicles"
Although the popularity of the Chinese language diminished in the late Heian era, Chinese ballads continued to be popular, including those written by Bai Juyi. Murasaki taught Chinese to Shōshi who was interested in Chinese art and Juyi's ballads. Upon becoming Empress, Shōshi installed screens decorated with Chinese script, causing outrage because written Chinese was considered the language of men, far removed from the women's quarters. The study of Chinese was thought to be unladylike and went against the notion that only men should have access to the literature. Women were supposed to read and write only in Japanese, which separated them through language from government and the power structure. Murasaki, with her unconventional classical Chinese education, was one of the few women available to teach Shōshi classical Chinese. Bowring writes it was "almost subversive" that Murasaki knew Chinese and taught the language to Shōshi. Murasaki, who was reticent about her Chinese education, held the lessons between the two women in secret, writing in her diary, "Since last summer ... very secretly, in odd moments when there happened to be no one about, I have been reading with Her Majesty ... There has of course been no question of formal lessons ... I have thought it best to say nothing about the matter to anybody."

Murasaki probably earned an ambiguous nickname, "The Lady of the Chronicles" (Nihongi no tsubone), for teaching Shōshi Chinese literature. A lady-in-waiting who disliked Murasaki accused her of flaunting her knowledge of Chinese and began calling her "The Lady of the Chronicles"—an allusion to the classic Chronicles of Japan—after an incident in which chapters from Genji were read aloud to the Emperor and his courtiers, one of whom remarked that the author showed a high level of education. Murasaki wrote in her diary, "How utterly ridiculous! Would I, who hesitate to reveal my learning to my women at home, ever think of doing so at court?" Although the nickname was apparently meant to be disparaging, Mulhern believes Murasaki was flattered by it.

The attitude toward the Chinese language was contradictory. In Teishi's court, the Chinese language had been flaunted and considered a symbol of imperial rule and superiority. Yet, in Shōshi's salon there was a great deal of hostility towards the language—perhaps owing to political expedience during a period when Chinese began to be rejected in favor of Japanese—even though Shōshi herself was a student of the language. The hostility may have affected Murasaki and her opinion of the court, and forced her to hide her knowledge of Chinese. Unlike Shōnagon, who was both ostentatious and flirtatious, as well as outspoken about her knowledge of Chinese, Murasaki seems to have been humble, an attitude which possibly impressed Michinaga. Although Murasaki used Chinese and incorporated it in her writing, she publicly rejected the language, a commendable attitude during a period of burgeoning Japanese culture.

Murasaki seems to have been unhappy with court life and was withdrawn and somber. No surviving records show that she entered poetry competitions; she appears to have exchanged few poems or letters with other women during her service. In general, unlike Shōnagon, Murasaki gives the impression in her diary that she disliked court life, the other ladies-in-waiting, and the drunken revelry. She did, however, become close friends with a lady-in-waiting named Lady Saishō, and she wrote of the winters that she enjoyed, "I love to see the snow here".

According to Waley, Murasaki may not have been unhappy with court life in general but bored in Shōshi's court. He speculates she would have preferred to serve with the Lady Senshi, whose household seems to have been less strict and more light-hearted. In her diary, Murasaki wrote about Shōshi's court, "[she] has gathered round her a number of very worthy young ladies ... Her Majesty is beginning to acquire more experience of life, and no longer judges others by the same rigid standards as before; but meanwhile her Court has gained a reputation for extreme dullness".

Murasaki disliked the men at court, whom she thought were drunken and stupid. However, some scholars, such as Waley, are certain she was involved romantically with Michinaga. At the least, Michinaga pursued her and pressured her strongly, and her flirtation with him is recorded in her diary as late as 1010. Yet, she wrote to him in a poem, "You have neither read my book, nor won my love." In her diary she records having to avoid advances from Michinaga—one night he sneaked into her room, stealing a newly written chapter of Genji. However, Michinaga's patronage was essential if she was to continue writing. Murasaki described her daughter's court activities: the lavish ceremonies, the complicated courtships, the "complexities of the marriage system", and in elaborate detail, the birth of Shōshi's two sons.

It is likely that Murasaki enjoyed writing in solitude. She believed she did not fit well with the general atmosphere of the court, writing of herself: "I am wrapped up in the study of ancient stories ... living all the time in a poetical world of my own scarcely realizing the existence of other people .... But when they get to know me, they find to their extreme surprise that I am kind and gentle". Inge says that she was too outspoken to make friends at court, and Mulhern thinks Murasaki's court life was comparatively quiet compared to other court poets. Mulhern speculates that her remarks about Izumi were not so much directed at Izumi's poetry but at her behavior, lack of morality and her court liaisons, of which Murasaki disapproved.

Rank was important in Heian court society and Murasaki would not have felt herself to have much, if anything, in common with the higher ranked and more powerful Fujiwaras. In her diary, she wrote of her life at court: "I realized that my branch of the family was a very humble one; but the thought seldom troubled me, and I was in those days far indeed from the painful consciousness of inferiority which makes life at Court a continual torment to me." A court position would have increased her social standing, but more importantly she gained a greater experience to write about. Court life, as she experienced it, is well reflected in the chapters of Genji written after she joined Shōshi. The name Murasaki was most probably given to her at a court dinner in an incident she recorded in her diary: in 1008 the well-known court poet Fujiwara no Kintō inquired after the "Young Murasaki"—an allusion to the character named Murasaki in Genji—which would have been considered a compliment from a male court poet to a female author.

Later life and death
When Emperor Ichijō died in 1011, Shōshi retired from the Imperial Palace to live in a Fujiwara mansion in Biwa, most likely accompanied by Murasaki, who is recorded as being there with Shōshi in 1013. George Aston explains that when Murasaki retired from court she was again associated with Ishiyama-dera: "To this beautiful spot, it is said, Murasaki no Shikibu [sic] retired from court life to devote the remainder of her days to literature and religion. There are sceptics, however, Motoori being one, who refuse to believe this story, pointing out ... that it is irreconcilable with known facts. On the other hand, the very chamber in the temple where the Genji was written is shown—with the ink-slab which the author used, and a Buddhist Sutra in her handwriting, which, if they do not satisfy the critic, still are sufficient to carry conviction to the minds of ordinary visitors to the temple."

Murasaki may have died in 1014. Her father made a hasty return to Kyoto from his post at Echigo Province that year, possibly because of her death. Writing in A Bridge of Dreams: A Poetics of "The Tale of Genji", Shirane mentions that 1014 is generally accepted as the date of Murasaki Shikibu's death and 973 as the date of her birth, making her 41 when she died. Bowring considers 1014 to be speculative, and believes she may have lived with Shōshi until as late as 1025. Waley agrees given that Murasaki may have attended ceremonies with Shōshi held for Shōshi's son, Emperor Go-Ichijō around 1025.

Murasaki's brother Nobunori died in around 1011, which, combined with the death of his daughter, may have prompted her father to resign his post and take vows at Miidera temple where he died in 1029. Murasaki's daughter entered court service in 1025 as a wet nurse to the future Emperor Go-Reizei (1025–1068). She went on to become a well-known poet as Daini no Sanmi.

Works
Three works are attributed to Murasaki: The Tale of Genji, The Diary of Lady Murasaki and Poetic Memoirs, a collection of 128 poems. Her work is considered important for its reflection of the creation and development of Japanese writing, during a period when Japanese shifted from an unwritten vernacular to a written language. Until the 9th century, Japanese language texts were written in Chinese characters using the man'yōgana writing system. A revolutionary achievement was the development of kana, a true Japanese script, in the mid-to late 9th century. Japanese authors began to write prose in their own language, which led to genres such as tales (monogatari) and poetic journals (Nikki Bungaku). Historian Edwin Reischauer writes that genres such as the monogatari were distinctly Japanese and that Genji, written in kana, "was the outstanding work of the period".

Diary and poetry

Murasaki began her diary after she entered service at Shōshi's court. Much of what is known about her and her experiences at court comes from the diary, which covers the period from about 1008 to 1010. The long descriptive passages, some of which may have originated as letters, cover her relationships with the other ladies-in-waiting, Michinaga's temperament, the birth of Shōshi's sons—at Michinaga's mansion rather than at the Imperial Palace—and the process of writing Genji, including descriptions of passing newly written chapters to calligraphers for transcriptions. Typical of contemporary court diaries written to honor patrons, Murasaki devotes half to the birth of Shōshi's son Emperor Go-Ichijō, an event of enormous importance to Michinaga: he had planned for it with his daughter's marriage which made him grandfather and de facto regent to an emperor.

Poetic Memoirs is a collection of 128 poems Mulhern describes as "arranged in a biographical sequence". The original set has been lost. According to custom, the verses would have been passed from person to person and often copied. Some appear written for a lover—possibly her husband before he died—but she may have merely followed tradition and written simple love poems. They contain biographical details: she mentions a sister who died, the visit to Echizen province with her father and that she wrote poetry for Shōshi. Murasaki's poems were published in 1206 by Fujiwara no Teika, in what Mulhern believes to be the collection that is closest to the original form; at around the same time Teika included a selection of Murasaki's works in an imperial anthology, New Collections of Ancient and Modern Times.

The Tale of Genji
Murasaki is best known for her The Tale of Genji, a three-part novel spanning 1100 pages and 54 chapters, which is thought to have taken a decade to complete. The earliest chapters were possibly written for a private patron either during her marriage or shortly after her husband's death. She continued writing while at court and probably finished while still in service to Shōshi. She would have needed patronage to produce a work of such length. Michinaga provided her with costly paper and ink, and with calligraphers. The first handwritten volumes were probably assembled and bound by ladies-in-waiting.

In his The Pleasures of Japanese Literature, Keene claims Murasaki wrote the "supreme work of Japanese fiction" by drawing on traditions of waka court diaries, and earlier monogatari—written in a mixture of Chinese script and Japanese script—such as The Tale of the Bamboo Cutter or The Tales of Ise. She drew on and blended styles from Chinese histories, narrative poetry and contemporary Japanese prose. Adolphson writes that the juxtaposition of formal Chinese style with mundane subjects resulted in a sense of parody or satire, giving her a distinctive voice. Genji follows the traditional format of monogatari—telling a tale—particularly evident in its use of a narrator, but Keene claims Murasaki developed the genre far beyond its bounds, and by doing so created a form that is utterly modern. The story of the "shining prince" Genji is set in the late 9th to early 10th centuries, and Murasaki eliminated from it the elements of fairy tales and fantasy frequently found in earlier monogatari.

The themes in Genji are common to the period, and are defined by Shively as encapsulating "the tyranny of time and the inescapable sorrow of romantic love". The main theme is that of the fragility of life, "the sorrow of human existence" (mono no aware), a term used over a thousand times in Genji. Keene speculates that in her tale of the "shining prince", Murasaki may have created for herself an idealistic escape from court life, which she found less than savory. In Prince Genji she formed a gifted, comely, refined, yet human and sympathetic protagonist. Keene writes that Genji gives a view into the Heian period; for example love affairs flourished, although women typically remained unseen behind screens, curtains or fusuma.

Helen McCullough describes Murasaki's writing as of universal appeal and believes The Tale of Genji "transcends both its genre and age. Its basic subject matter and setting—love at the Heian court—are those of the romance, and its cultural assumptions are those of the mid-Heian period, but Murasaki Shikibu's unique genius has made the work for many a powerful statement of human relationships, the impossibility of permanent happiness in love ... and the vital importance, in a world of sorrows, of sensitivity to the feelings of others." Prince Genji recognizes in each of his lovers the inner beauty of the woman and the fragility of life, which according to Keene, makes him heroic. The story was popular: Emperor Ichijō had it read to him, even though it was written in Japanese. By 1021 all the chapters were known to be complete and the work was sought after in the provinces where it was scarce.

Legacy
Murasaki's reputation and influence have not diminished since her lifetime when she, with other Heian women writers, was instrumental in developing Japanese into a written language. Her writing was required reading for court poets as early as the 12th century as her work began to be studied by scholars who generated authoritative versions and criticism. Within a century of her death she was highly regarded as a classical writer. In the 17th century, Murasaki's work became emblematic of Confucian philosophy and women were encouraged to read her books. In 1673, Kumazawa Banzan argued that her writing was valuable for its sensitivity and depiction of emotions. He wrote in his Discursive Commentary on Genji that when "human feelings are not understood the harmony of the Five Human Relationships is lost."

The Tale of Genji was copied and illustrated in various forms as early as a century after Murasaki's death. The Genji Monogatari Emaki, is a late Heian era 12th century handscroll, consisting of four scrolls, 19 paintings, and 20 sheets of calligraphy. The illustrations, definitively dated to between 1110 and 1120, have been tentatively attributed to Fujiwara no Takachika and the calligraphy to various well-known contemporary calligraphers. The scroll is housed at the Gotoh Museum and the Tokugawa Art Museum.

Female virtue was tied to literary knowledge in the 17th century, leading to a demand for Murasaki or Genji inspired artifacts, known as genji-e. Dowry sets decorated with scenes from Genji or illustrations of Murasaki became particularly popular for noblewomen: in the 17th century genji-e symbolically imbued a bride with an increased level of cultural status; by the 18th century they had come to symbolize marital success. In 1628, Tokugawa Iemitsu's daughter had a set of lacquer boxes made for her wedding; Prince Toshitada received a pair of silk genji-e screens, painted by Kanō Tan'yū as a wedding gift in 1649.

Murasaki became a popular subject of paintings and illustrations highlighting her as a virtuous woman and poet. She is often shown at her desk in Ishiyama Temple, staring at the Moon for inspiration. Tosa Mitsuoki made her the subject of hanging scrolls in the 17th century. The Tale of Genji became a favorite subject of Japanese ukiyo-e artists for centuries with artists such as Hiroshige, Kiyonaga, and Utamaro illustrating various editions of the novel. While early Genji art was considered symbolic of court culture, by the middle of the Edo period the mass-produced ukiyo-e prints made the illustrations accessible for the samurai classes and commoners.

In Envisioning the "Tale of Genji" Shirane observes that "The Tale of Genji has become many things to many different audiences through many different media over a thousand years ... unmatched by any other Japanese text or artifact." The work and its author were popularized through its illustrations in various media: emaki (illustrated handscrolls); byōbu-e (screen paintings), ukiyo-e (woodblock prints); films, comics, and in the modern period, manga. In her fictionalized account of Murasaki's life, The Tale of Murasaki: A Novel, Liza Dalby has Murasaki involved in a romance during her travels with her father to Echizen Province.

The Tale of the Genji is recognized as an enduring classic. McCullough writes that Murasaki "is both the quintessential representative of a unique society and a writer who speaks to universal human concerns with a timeless voice. Japan has not seen another such genius." Keene writes that The Tale of Genji continues to captivate, because, in the story, her characters and their concerns are universal. When Waley's translation (The Tale of Genji: A Novel in Six Parts) was published in 1933, reviewers compared Genji to Austen, Proust, and Shakespeare. Mulhern says of Murasaki that she is similar to Shakespeare, who represented his Elizabethan England, in that she captured the essence of the Heian court and as a novelist "succeeded perhaps even beyond her own expectations." Like Shakespeare, her work has been the subject of reams of criticism and many books.

Kyoto held a year-long celebration commemorating the 1000th anniversary of Genji in 2008, with poetry competitions, visits to the Tale of Genji Museum in Uji and Ishiyama-dera (where a life size rendition of Murasaki at her desk was displayed), and women dressing in traditional 12-layer Heian court jūnihitoe and ankle-length wigs. The author and her work inspired museum exhibits and Genji manga spin-offs. The design on the reverse of the first 2000 yen note commemorated her and The Tale of Genji. A plant bearing purple berries has been named after her.

A Genji Album, only in the 1970s dated to 1510, is housed at Harvard University. The album is considered the earliest of its kind and consists of 54 paintings by Tosa Mitsunobu and 54 sheets of calligraphy on shikishi paper in five colors, written by master calligraphers. The leaves are housed in a case dated to the Edo period, with a silk frontispiece painted by Tosa Mitsuoki, dated to around 1690. The album contains Mitsuoki's authentication slips for his ancestor's 16th century paintings.

title: Murasaki Shikibu


text:
Jakarta Transactions

The Jakarta Transactions (JTA; formerly Java Transaction API), one of the Jakarta EE APIs, enables distributed transactions to be done across multiple X/Open XA resources in a Java environment. JTA was a specification developed under the Java Community Process as JSR 907. JTA provides for:

 * demarcation of transaction boundaries
 * X/Open XA API allowing resources to participate in transactions.

X/Open XA architecture
In the X/Open XA architecture, a transaction manager or transaction processing monitor (TP monitor) coordinates the transactions across multiple resources such as databases and message queues. Each resource has its own resource manager. The resource manager typically has its own API for manipulating the resource, for example the JDBC API to work with relational databases. In addition, the resource manager allows a TP monitor to coordinate a distributed transaction between its own and other resource managers. Finally, there is the application which communicates with the TP monitor to begin, commit or roll back the transactions. The application also communicates with the individual resources using their own API to modify the resource.

JTA implementation of the X/Open XA architecture
The JTA API consists of classes in two Java packages:

The JTA is modelled on the X/Open XA architecture, but it defines two different APIs for demarcating transaction boundaries. It distinguishes between an application server such as an EJB server and an application component. It provides an interface,, that is used by the application server itself to begin, commit and roll back the transactions. It provides a different interface, the, that is used by general client code such as a servlet or an EJB to manage the transactions.

The JTA architecture requires that each resource manager must implement the interface in order to be managed by the TP monitor. As stated previously, each resource will have its own specific API, for instance:
 * relational databases use JDBC
 * messaging services use JMS
 * generalized EIS (Enterprise Information System) resources use Java EE Connector API.

Application Programming Interface
The Jakarta Transactions API consists of three elements: a high-level application transaction demarcation interface, a high-level transaction manager interface intended for an application server, and a standard Java mapping of the X/Open XA protocol intended for a transactional resource manager.

UserTransaction interface
The interface provides the application the ability to control transaction boundaries programmatically. This interface may be used by Java client programs or EJB beans.

The method starts a global transaction and associates the transaction with the calling thread. The transaction-to-thread association is managed transparently by the Transaction Manager.

Support for nested transactions is not required. The UserTransaction.begin method throws the NotSupportedException when the calling thread is already associated with a transaction and the transaction manager implementation does not support nested transactions.

Transaction context propagation between application programs is provided by the underlying transaction manager implementations on the client and server machines. The transaction context format used for propagation is protocol dependent and must be negotiated between the client and server hosts. For example, if the transaction manager is an implementation of the JTS specification, it will use the transaction context propagation format as specified in the CORBA OTS 1.1 specification. Transaction propagation is transparent to application programs.

@Transactional annotation
The annotation provides the application the ability to control transaction boundaries declaratively. This annotation can be applied to any class that the Jakarta EE specification defines as a managed bean (which includes CDI managed beans).

The code sample below illustrates the usage of in a request scoped CDI managed bean:

Transactional behavior can be configured via an attribute on the annotation. The available options closely mirror those of the EJB specification.

@TransactionScoped annotation
The annotation provides the application the ability to declare that the scope during which a bean lives is tied to the time a given transaction is active.

The code sample below illustrates the usage of in a request scoped CDI managed bean:

If method foo is first called on a managed instance of ExampleBean and then subsequently method bar is called, the number printed will be 0 and not 1. This is because each method had its own transaction and therefore its own instance of TxScopedBean. The number 1 that was set during the call to foo will therefore not be seen during the call to bar.

UserTransaction support in EJB server
EJB servers are required to support the interface for use by EJB beans with the BEAN value in the annotation (this is called bean-managed transactions or BMT). The interface is exposed to EJB components through either the interface using the method, or directly via injection using the general  annotation. Thus, an EJB application does not interface with the Transaction Manager directly for transaction demarcation; instead, the EJB bean relies on the EJB server to provide support for all of its transaction work as defined in the Jakarta Enterprise Beans Specification. (The underlying interaction between the EJB Server and the TM is transparent to the application; the burden of implementing transaction management is on the EJB container and server provider. )

The code sample below illustrates the usage of via bean-managed transactions in an EJB session bean:

Alternatively, the can be obtained from the :

Note though that in the example above if the  annotation is omitted, a JTA transaction is automatically started whenever   is called and is automatically committed or rolled back when   is exited. Making use of a is thus not necessary in EJB programming, but might be needed for very specialized code.

UserTransaction support in JNDI
The UserTransaction should be available under  (if a JTA implementation is installed in the environment).

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

title: Jakarta Transactions


text:
JTA

editing JTA may refer to:

 * Jacksonville Transportation Authority, the independent agency responsible for public transit in the city of Jacksonville, Florida, and roadway infrastructure that connects northeast Florida
 * Jackson Transportation Authority, the former name of the Jackson Area Transportation Authority, the primary provider of mass transportation in Jackson County, Michigan
 * Java Transaction API, one of the Java Enterprise Edition (Java EE) APIs, enables distributed transactions to be done across multiple X/Open XA resources in a Java environment
 * Java Telephony API, supports telephony call control
 * Japan Transocean Air, an airline based in Naha, Okinawa Prefecture, Japan
 * Japan Tourism Agency, an organization which was set up on October 1, 2008 as an extra-ministerial bureau of the Ministry of Land, Infrastructure, Transport and Tourism
 * Jewish Telegraphic Agency, a US-based international news agency serving Jewish community newspapers and media around the world
 * Taylor–Johnson Temperament Analysis, a personality test designed to measure nine common personality traits for the assessment of individual adjustment
 * Junction tree algorithm, a method used in machine learning to extract marginalization in general graphs
 * Japan Tennis Association, the governing body for professional and amateur tennis in Japan
 * Jianquan Taijiquan Association, a well known school teaching Wu-style tai chi
 * Jim Thorpe Association, a civic and charity organization based in Oklahoma City, Oklahoma. It is named in memory of multi-sport legend Jim Thorpe
 * Juan Toscano-Anderson, basketball player

title: JTA


text:
History of Belarus

The lands of Belarus during the Middle Ages became part of Kievan Rus' and were split between different regional principalities, including Polotsk, Turov, Vitebsk, and others. Following the Mongol invasions of the 13th century, these lands were absorbed by the Grand Duchy of Lithuania, which later was merged into the Polish–Lithuanian Commonwealth in the 16th century.

Following the Partitions of Poland in the 18th century, Belarusian territories became part of the Russian Empire. In the aftermath of the Russian Revolution, different states arose competing for legitimacy amid the Russian Civil War, ultimately ending with the consolidation of the Byelorussian Soviet Socialist Republic, which became a constituent republic of the Soviet Union when it was founded in 1922.

The republic was devastated as a result of the German occupation during World War II, and its territory was expanded after Western Belorussia was annexed by the Soviet Union as a result of the war. Belarus became an independent state in 1991 following the dissolution of the Soviet Union.

Prehistoric era
Archaeological discoveries show what is now Belarus had human inhabitants during the Paleolithic and Neolithic ages.

Early history
The history of Belarus begins with the migration and expansion of the Slavic peoples through Eastern Europe between the 6th and 8th centuries. East Slavs settled on the territory of present-day Belarus, Russia and Ukraine, assimilating local Baltic (Yotvingians, Dnieper Balts), Finns (in Russia) and steppe nomads (in Ukraine) already living there, their early ethnic integrations contributed to the gradual differentiation of the East Slavs. These East Slavs, pagan, animistic, agrarian people, had an economy which included trade in agricultural produce, game, furs, honey, beeswax and amber.

The modern Belarusian ethnos was probably formed on the basis of the three Slavic tribes—Kryvians, Drehovians, and Radzimians—as well as several Baltic tribes.

The common cultural bond of Eastern Orthodox Christianity and written Church Slavonic (a literary and liturgical Slavic language developed by 8th-century missionaries Saints Cyril and Methodius) fostered the emergence of a new geopolitical entity, Kievan Rus' — a loose-knit multi-ethnic network of principalities, established along pre-existing trade routes, with major centers in Novgorod (now in Russia), Polotsk (now in Belarus) and Kiev (now in Ukraine).

Kievan Rus'
Between the 9th and 12th centuries, the Principality of Polotsk (now in northern Belarus) emerged as the dominant center of power in the territory of Belarus, while the Principality of Turov south of it was a lesser power.

The Principality of Polotsk repeatedly asserted its sovereignty in relation to the other centers of Rus', becoming a political capital, the episcopal see of a bishopric and the controller of vassal territories among Balts in the west. The city's Cathedral of the Holy Wisdom (1044–66), though completely rebuilt over the years, remains a symbol of this independent-mindedness, rivaling churches of the same name in Novgorod and Kiev, referring to the original Hagia Sophia in Constantinople (and hence to claims of imperial prestige, authority and sovereignty). Cultural achievements of the Polotsk period include the work of the nun Euphrosyne of Polotsk (1120–1173), who built monasteries, transcribed books, promoted literacy and sponsored art (including local artisan Lazar Bohsha's famous "Cross of Euphrosyne", a national symbol and treasure stolen during World War II), and the prolific, original Church Slavonic sermons and writings of Bishop Kirill of Turov (1130–1182).

Grand Duchy of Lithuania
In the 13th century, the fragile unity of Kievan Rus' disintegrated due to nomadic incursions from Asia, which climaxed with the Mongol sacking of Kiev in 1240, leaving a geopolitical vacuum in the region. The East Slavs had splintered into a number of independent and competing principalities. Due to military conquest and dynastic marriages, the western principalities of Rus' in modern Belarus were acquired by the expanding Grand Duchy of Lithuania, beginning with the rule of Lithuanian King Mindaugas (1240–1263). From the 13th to 15th century, the principalities were either conquered or willingly joined the Grand Duchy of Lithuania.

The Lithuanians' smaller numbers in this medieval state gave the Ruthenians (later Belarusians and Ukrainians) an important role in the everyday cultural life of the state. Owing to the prevalence of East Slavs and the Eastern Orthodox faith among the population in eastern and southern regions of the state, the Ruthenian language was a widely used colloquial language.

The East Slavic variety of the language (rus'ka mova, Old Belarusian or West Russian Chancellery language), gradually influenced by Polish, was the language of administration in the Grand Duchy of Lithuania from at least Vytautas' reign until the late 17th century when it was replaced by Polish.

This period of political breakdown and reorganization also saw the rise of written local vernaculars in place of the literary and liturgical Church Slavonic language, a further stage in the evolving differentiation between the Belarusian, Russian and Ukrainian languages.

Several Lithuanian monarchs — the last being Švitrigaila in 1432–36 — relied on the Eastern Orthodox Ruthenian majority, while most monarchs and magnates increasingly came to reflect the opinions of the Roman Catholics.

Construction of Orthodox churches in some parts of present-day Belarus had been initially prohibited, as was the case in Vitebsk in 1480. On the other hand, further unification of the mostly Orthodox Grand Duchy with mostly Catholic Poland led to liberalization and a partial solving of the religious problem. In 1511, King and Grand Duke Sigismund I the Old granted the Orthodox clergy an autonomy previously enjoyed only by Catholic clergy. The privilege was enhanced in 1531, when the Orthodox church was no longer responsible to the Catholic bishop and instead the metropolitan was responsible only to the sobor of eight Orthodox bishops, the Grand Duke and the Patriarch of Constantinople. The privilege also extended the jurisdiction of the Orthodox hierarchy over all Orthodox people.

In such circumstances, a vibrant Ruthenian culture flourished, mostly in the major cities of present-day Belarus. Despite the legal usage of the Ruthenian language, which was used as a chancellery language in the territory of the Grand Duchy of Lithuania, literature was mostly non-existent, apart from several chronicles.

Polish–Lithuanian Commonwealth
The Union of Lublin in 1569 led to the Polish–Lithuanian Commonwealth to become an influential player in European politics and the largest multinational state in Europe. While present-day Ukraine and Podlaskie became subjects of the Polish Crown, present-day Belarusian territories were still regarded as part of the Grand Duchy of Lithuania. The new polity was dominated by densely populated Poland, which had 134 representatives in the Sejm as compared to 46 representatives from the Grand Duchy of Lithuania. However, the Grand Duchy of Lithuania retained significant autonomy, and was governed by a separate code of laws called the Lithuanian Statutes, which codified both civil and property rights. Of the territory of present-day Belarus, Mogilev was the largest urban centre, followed by Vitebsk, Polotsk, Pinsk, Slutsk, and Brest, whose population exceeded 10,000. In addition, Vilna (Vilnius), the capital of the Grand Duchy of Lithuania, also had a significant Ruthenian population.

With time, the ethnic pattern did not evolve much. Throughout their existence as a separate culture, Ruthenians formed in most cases the rural population, with power held by the local szlachta and boyars, often of Lithuanian, Polish or Russian descent. By this time, a significant Jewish presence had also formed in this region of German Jews fleeing persecution from the Northern and Baltic Crusaders. Since the Union of Horodlo of 1413, the local nobility was assimilated into the traditional clan system by means of the formal procedure of adoption by the szlachta (Polish gentry). Eventually, it formed a significant part of the szlachta. Initially mostly Ruthenian and Orthodox, with time most of them became polonized. This was especially true for major magnate families (Sapieha and Radziwiłł clans being the most notable), whose personal fortunes and properties often surpassed those of the royal families and were huge enough to be called a state within a state.

Also, with time religious conflicts started to arise. The gentry with time started to adopt Catholicism while the common people by large remained faithful to Eastern Orthodoxy. Initially the Warsaw Compact of 1573 codified the preexisting freedom of worship. However, the rule of an ultra-Catholic King Sigismund III Vasa was marked by numerous attempts to spread Catholicism, mostly through his support for counterreformation and the Jesuits. Possibly to avoid such conflicts, in 1595 the Orthodox hierarchs of Kiev signed the Union of Brest, breaking their links with the Patriarch of Constantinople and placing themselves under the Pope. Although the union was generally supported by most local Orthodox bishops and the king himself, it was opposed by some prominent nobles and, more importantly, by the nascent Cossack movement. This led to a series of conflicts and rebellions against the local authorities. The first of such happened in 1595, when the Cossack insurgents under Severyn Nalyvaiko took the towns of Slutsk and Mogilev and executed Polish magistrates there. Other such clashes took place in Mogilev (1606–10), Vitebsk (1623), and Polotsk (1623, 1633). This left the population of the Grand Duchy divided between Greek Catholic and Greek Orthodox parts. At the same time, after the schism in the Orthodox Church (Raskol), some Old Believers migrated west, seeking refuge in the Rzeczpospolita, which allowed them to freely practice their faith.

From 1569, the Polish–Lithuanian Commonwealth suffered a series of Tatar raids, the goal of which was to loot, pillage and capture slaves into jasyr. The borderland area to the south-east was in a state of semi-permanent warfare until the 18th century. Some researchers estimate that altogether more than 3 million people, predominantly Ukrainians but also Russians, Belarusians and Poles, were captured and enslaved during the time of the Crimean Khanate.

Despite these conflicts, the literary tradition of Belarus evolved. Until the 17th century, the Ruthenian language, the predecessor of modern Belarusian, was used in the Grand Duchy as a chancery language, that is, the language used for official documents. Afterwards, it was replaced with the Polish language, commonly spoken by the upper classes. Both Polish and Ruthenian cultures gained a major cultural centre with the foundation of the Academy of Vilna. At the same time, the Belarusian lands entered a path of economic growth, with the formation of numerous towns that served as centres of trade on the east–west routes.

Eventually, by 1795, Poland was partitioned by its neighbors. Thus, a new period in Belarusian history began, with all its lands annexed by the Russian Empire.

Russian Empire
Under Russian administration, the territory of Belarus was divided into the governorates (guberniyas) of Minsk, Vitebsk, Mogilev, and Grodno. Belarusians were active in the guerrilla movement against Napoleon's occupation. With Napoleon's defeat, Belarus again became a part of Imperial Russia and its guberniyas constituted part of the Northwestern Krai. The independence seeking 1830 and 1863 uprisings of the gentry were subdued by the government forces.

Although under Nicholas I and Alexander III the national cultures were repressed due to the policies of de-Polonization and Russification, which included the return to Orthodoxy, the 19th century signifies the rise of the modern Belarusian nation and self-confidence. A number of authors started publishing in the Belarusian language, including Jan Czeczot, Władysław Syrokomla and Konstanty Kalinowski. In 1862-1863 Kalinowski published first newspaper in modern Belarusian language, Mużyckaja prauda (Peasants' Truth), in a Latin script.

In the second half of the 19th century, the Belarusian economy, like that of the entire Europe, was experiencing significant growth due to the spread of the Industrial Revolution to Eastern Europe, particularly after the emancipation of the serfs in 1861 and the construction of railways in the late 19th century (with Minsk, Vitebsk, Grodno, Pinsk and Gomel becoming significant industrial centres.

BNR and LBSSR

On 21 February 1918, Minsk was captured by German troops. World War I was the short period when Belarusian culture started to flourish. German administration allowed schools with Belarusian language, previously banned in Russia; a number of Belarusian schools were created until 1919 when they were banned again by the Polish military administration. At the end of World War I, when Belarus was still occupied by Germans, according to the Treaty of Brest-Litovsk, the short-lived People's Republic of Belarus was pronounced on 25 March 1918, as part of the German Mitteleuropa plan.

In December 1918, Mitteleuropa was obsolete as the German Empire withdrew from the Ober-Ost territory, and for the next few years in the newly created power vacuum the territories of Belarus would witness the struggle of various national and foreign factions. On 3 December 1918 the Germans withdrew from Minsk. On 10 December 1918 Soviet troops occupied Minsk. The Rada (Council) of the People's Republic of Belarus went into exile, first to Kaunas, then to Berlin and finally to Prague. On 2 January 1919, the Soviet Socialist Republic of Byelorussia was declared. On 17 February 1919 it was disbanded. Part of it was included into Russian SFSR, and part was joined to the Lithuanian SSR to form the LBSSR, Lithuanian–Byelorussian Soviet Socialist Republic, informally known as Litbel, whose capital was Vilnius. While Belarus National Republic faced off with Litbel, foreign powers were preparing to reclaim what they saw as their territories: Polish forces were moving from the West, and Russians from the East. When Vilnius was captured by Polish forces on 17 April 1919, the capital of the Soviet puppet state Litbel was moved to Minsk. On 17 July 1919 Lenin dissolved Litbel because of the pressure of Polish forces advancing from the West. Polish troops captured Minsk on 8 August 1919.

Republic of Central Lithuania
The Republic of Central Lithuania was a short-lived political entity, which was the last attempt to restore Lithuania in the historical confederacy state (it was also supposed to create Lithuania Upper and Lithuania Lower). The republic was created in 1920 following the staged rebellion of soldiers of the 1st Lithuanian–Belarusian Division of the Polish Army under Lucjan Żeligowski. Centered on the historical capital of the Grand Duchy of Lithuania, Vilna (Vilnius, Wilno), for 18 months the entity served as a buffer state between Poland, upon which it depended, and Lithuania, which claimed the area. After a variety of delays, a disputed election took place on 8 January 1922, and the territory was annexed to Poland. Żeligowski later in his memoir which was published in London in 1943 condemned the annexation of Republic by Poland, as well as the policy of closing Belarusian schools and general disregard of Marshal Józef Piłsudski's confederation plans by Polish ally.

Belarusian Soviet Republic and West Belarus
Some time in 1918 or 1919, Sergiusz Piasecki returned to Belarus, joining Belarusian anti-Soviet units, the "Green Oak" (in Polish, Zielony Dąb), led by Ataman Wiaczesław Adamowicz (pseudonym: J. Dziergacz). When on 8 August 1919, the Polish Army captured Minsk, Adamowicz decided to work with them. Thus Belarusian units were created, and Piasecki was transferred to a Warsaw school of infantry cadets. In the summer of 1920, during the Polish–Soviet War, Piasecki fought in the Battle of Radzymin.

The frontiers between Poland, which had established an independent government after World War I, and the former Russian Empire were not recognized by the League of Nations. Poland's Józef Piłsudski, who envisioned the formation of an Intermarium federation as a Central and East European bloc that would be a bulwark against Germany to the west and Russia to the east, carried out a Kiev offensive into Ukraine in 1920. This met with a Red Army counter-offensive that drove into Polish territory almost to Warsaw, Minsk itself was re-captured by the Soviet Red Army on 11 July 1920 and a new Byelorussian Soviet Socialist Republic was declared on 31 July 1920. Piłsudski, however, halted the Soviet advance at the Battle of Warsaw and resumed his eastward offensive. Finally the Treaty of Riga, ending the Polish–Soviet War, divided Belarus between Poland and Soviet Russia. Over the next two years, the People's Republic of Belarus prepared a national uprising, ceasing the preparations only when the League of Nations recognized the Soviet Union's western borders on 15 March 1923. The Soviets terrorised Western Belarus, the most radical case being Soviet raid on Stołpce. Poland created Border Protection Corps in 1924.

The Polish part of Belarus was subject to Polonization policies (especially in the 1930s), while the Soviet Belarus was one of the original republics which formed the USSR. For several years, the national culture and language enjoyed a significant boost of revival in the Soviet Belarus. A Polish Autonomous District was also formed. This was however soon ended during the Great Purge, when almost all prominent Belarusian national intelligentsia were executed, many of them buried in Kurapaty. Thousands were deported to Asia. As the result of Polish operation of the NKVD tens of thousands people of many nationalities were killed. Belarusian orthography was Russified in 1933 and use of Belarusian language was discouraged as exhibiting anti-soviet attitude.

In West Belarus, up to 30,000 families of Polish veterans (osadniks) were settled in the lands formerly belonging to the Russian tsar family and Russian aristocracy. Belarusian representation in Polish parliament was reduced as a result of the 1930 elections. Since the early 1930s, the Polish government introduced a set of policies designed to Polonize all minorities (Belarusians, Ukrainians, Jews, etc.). The usage of Belarusian language was discouraged and the Belarusian schools were facing severe financial problems. In spring of 1939, there already was neither single Belarusian official organisation in Poland nor a single exclusively Belarusian school (with only 44 schools teaching Belarusian language left).

Belarus in World War II
When the Soviet Union invaded Poland on September 17, 1939, following the terms of the Molotov–Ribbentrop Pact's secret protocol, Western Byelorussia, which was part of Poland, is included in the BSSR. Similarly to the times of German occupation during World War I, Belarusian language and Soviet culture enjoyed relative prosperity in this short period. Already in October 1940, over 75% of schools used the Belarusian language, also in the regions where no Belarus people lived, e.g. around Łomża, what was Ruthenization. Western Belarus was sovietised, tens of thousands were imprisoned, deported, murdered. The victims were mostly Polish and Jewish.

After twenty months of Soviet rule, Nazi Germany and its Axis allies invaded the Soviet Union on 22 June 1941. Soviet authorities immediately evacuated about 20% of the population of Belarus, killed thousands of prisoners and destroyed all the food supplies. The country suffered particularly heavily during the fighting and the German occupation. Minsk was captured by the Germans on 28 June 1941. Following bloody encirclement battles, all of the present-day Belarus territory was occupied by the Germans by the end of August 1941.

During World War II, the Nazis attempted to establish a puppet Belarusian government, Belarusian Central Rada, with the symbolics similar to BNR. In reality, however, the Germans imposed a brutal racist regime, burning down some 9,000 Belarusian villages, deporting some 380,000 people for slave labour, and killing hundreds of thousands of civilians more. Local police took part in many of those crimes. Almost the whole, previously very numerous, Jewish populations of Belarus that did not evacuate were killed. One of the first uprisings of a Jewish ghetto against the Nazis occurred in 1942 in Belarus, in the small town of Lakhva.

Since the early days of the occupation, a powerful and increasingly well-coordinated Belarusian resistance movement emerged. Hiding in the woods and swamps, the partisans inflicted heavy damage to German supply lines and communications, disrupting railway tracks, bridges, telegraph wires, attacking supply depots, fuel dumps and transports and ambushing German soldiers. Not all anti-German partisans were pro-Soviet. In the largest partisan sabotage action of the entire Second World War, the so-called Asipovichy diversion of 30 July 1943 four German trains with supplies and Tiger tanks were destroyed. To fight partisan activity, the Germans had to withdraw considerable forces behind their front line. On 22 June 1944 the huge Soviet offensive Operation Bagration was launched, Minsk was re-captured on 3 July 1944, and all of Belarus was regained by the end of August. Hundred thousand of Poles were expelled after 1944. As part of the Nazis' effort to combat the enormous Belarusian resistance during World War II, special units of local collaborationists were trained by the SS's Otto Skorzeny to infiltrate the Soviet rear. In 1944 thirty Belarusians (known as Čorny Kot (Black Cat) and personally led by Michał Vituška) were airdropped by the Luftwaffe behind the lines of the Red Army, which had already liberated Belarus during Operation Bagration. They experienced some initial success due to disorganization in the rear of the Red Army, and some other German-trained Belarusian nationalist units also slipped through the Białowieża Forest in 1945. The NKVD, however, had already infiltrated these units. Vituška himself was hunted down, captured and executed, although he continued to live on in Belarusian nationalist hagiography.

In total, Belarus lost a quarter of its pre-war population in World War II including practically all its intellectual elite. About 9,200 villages and 1.2 million houses were destroyed. The major towns of Minsk and Vitsebsk lost over 80% of their buildings and city infrastructure. For the defence against the Germans, and the tenacity during the German occupation, the capital Minsk was awarded the title Hero City after the war. The fortress of Brest was awarded the title Hero-Fortress.

BSSR from 1945 to 1990
After the end of War in 1945, Belarus became one of the founding members of the United Nations Organisation. Joining Belarus was the Soviet Union itself and another republic Ukraine. In exchange for Belarus and Ukraine joining the UN, the United States had the right to seek two more votes, a right that has never been exercised.

More than 200,000 ethnic Poles left or were expelled to Poland in late 1940s and late 1950s, some killed by the NKVD or deported to Siberia. Armia Krajowa and post-AK resistance was the strongest in the Grodno, Vawkavysk, Lida and Shchuchyn regions.

The Belarusian economy was completely devastated by the events of the war. Most of the industry, including whole production plants were removed either to Russia or Germany. Industrial production of Belarus in 1945 amounted for less than 20% of its pre-war size. Most of the factories evacuated to Russia, with several spectacular exceptions, were not returned to Belarus after 1945. During the immediate postwar period, the Soviet Union first rebuilt and then expanded the BSSR's economy, with control always exerted exclusively from Moscow. During this time, Belarus became a major center of manufacturing in the western region of the USSR. Huge industrial objects like the BelAZ, MAZ, and the Minsk Tractor Plant were built in the country. The increase in jobs resulted in a huge immigrant population of Russians in Belarus. Russian became the official language of administration and the peasant class, which traditionally was the base for Belarusian nation, ceased to exist.

On 26 April 1986, the Chernobyl disaster occurred at the Chernobyl Nuclear Power Plant in Ukraine situated close to the border with Belarus. It is regarded as the worst nuclear accident in the history of nuclear power. It produced a plume of radioactive debris that drifted over parts of the western Soviet Union, Eastern Europe, and Scandinavia. Large areas of Belarus, Ukraine and Russia were contaminated, resulting in the evacuation and resettlement of roughly 200,000 people. About 60% of the radioactive fallout landed in Belarus. The effects of the Chernobyl accident in Belarus were dramatic: about 50,000 km2 (or about a quarter of the territory of Belarus) formerly populated by 2.2 million people (or a fifth of the Belarusian population) now require permanent radioactive monitoring (after receiving doses over 37 kBq/m2 of caesium-137). 135,000 persons were permanently resettled and many more were resettled temporarily. After 10 years since the accident, the occurrences of thyroid cancer among children increased fifteenfold (the sharp rise started in about four years after the accident).

Independence
On 27 July 1990, Belarus declared its national sovereignty, a key step toward independence from the Soviet Union. Around that time, Stanislav Shushkevich became the chairman of the Supreme Soviet of Belarus, the top leadership position in Belarus.

On 25 August 1991, after the failure of the August Coup in Moscow, Belarus declared full independence from the USSR by granting the declaration of state sovereignty a constitutional status that it did not have before. On 8 December 1991, Shushkevich met with Boris Yeltsin of Russia and Leonid Kravchuk of Ukraine, in Belavezhskaya Pushcha, to formally declare the dissolution of the Soviet Union and the formation of the Commonwealth of Independent States.

Lukashenko era
A new Belarusian constitution enacted in early 1994 paved the way for the first democratic presidential election on 23 June and 10 July. Alexander Lukashenko was elected president of Belarus. Having assumed the rights and responsibilities of the Soviet Union on the territory of Byelarus, in December 1994 Lukashenko signed the Budapest Memorandum along with Russia, the United Kingdom and the United States acting as guarantors and thereby denuclearized the nation.

The 1996 referendum resulted in amendments to the constitution that removed key powers from the parliament.

In 1999 opposition leaders Yury Zacharanka and Viktar Hanchar disappeared and were presumably killed. In 2001, Lukashenko was re-elected as president in elections described as undemocratic by Western observers. At the same time, the west began criticizing him as authoritarian. In 2006, Lukashenko was once again re-elected in presidential elections again criticized as flawed by most European Union countries.

In 2010, Lukashenko was re-elected once again in presidential elections which were again described as falsified by most EU countries and organizations such as the OSCE. A peaceful protest against the electoral flaws turned into a riot when demonstrators tried to storm a government building. The police used batons to quell the riot. Seven presidential candidates and hundreds of rioters were arrested by KGB.

Lukashenko's disputed victory in the country's 2020 presidential election led to widespread allegations of vote rigging, which strongly amplified anti-government protests, the largest during his rule. Protesters have faced violent persecution by the authorities. A statement by the United Nations Human Rights Office on 1 September cited more than 450 documented cases of torture and ill-treatment of detainees, as well as reports of sexual abuse and rape. Several protesters were killed. Following the contested election, Lukashenko is not recognized by the United Kingdom, the European Union, or the United States as the legitimate president of Belarus.

On 23 May 2021, Ryanair Flight 4978 was diverted by the Belarusian government to Minsk National Airport, where two of its passengers, opposition activist and former editor-in-chief of the Telegram channel Nexta Roman Protasevich and his girlfriend Sofia Sapega, were arrested by authorities. In summer of the same year, Belarusian authorities organized the 2021–2022 Belarus–European Union border crisis consisting of an influx of tens of thousands of immigrants, primarily from Iraqi Kurdistan, to Lithuania, Latvia, and Poland via those countries' borders with Belarus.

Belarus allowed its territory to be used by Putin's army in the 2022 Russian invasion of Ukraine to stage and launch forces from the north into Ukraine.

title: History of Belarus


text:
Java Naming and Directory Interface

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and resources (in the form of Java objects) via a name. Like all Java APIs that interface with host systems, JNDI is independent of the underlying implementation. Additionally, it specifies a service provider interface (SPI) that allows directory service implementations to be plugged into the framework. The information looked up via JNDI may be supplied by a server, a flat file, or a database; the choice is up to the implementation used.

Typical uses of JNDI include:
 * connecting a Java application to an external directory service (such as an address database or an LDAP server)
 * allowing a Java Servlet to look up configuration information provided by the hosting web container

Background
The Java RMI and Java EE APIs use the JNDI API to look up objects in a network.

The API provides:
 * a mechanism to bind an object to a name
 * a directory-lookup interface that allows general queries
 * an event interface that allows clients to determine when directory entries have been modified
 * LDAP extensions to support the additional capabilities of an LDAP service

The SPI portion allows support for practically any kind of naming or directory service, including:

 * LDAP
 * DNS
 * NIS
 * CORBA name service
 * file system

Sun Microsystems first released the JNDI specification on March 10, 1997. , the current version is JNDI 1.2.

Basic lookup
JNDI (Java Naming and Directory Interface) organizes its names into a hierarchy. A name can be any string such as "com.example.ejb.MyBean". A name can also be an object that implements the  interface; however, a string is the most common way to name an object. A name is bound to an object in the directory by storing either the object or a reference to the object in the directory service identified by the name.

The JNDI API defines a context that specifies where to look for an object. The initial context is typically used as a starting point.

In the simplest case, an initial context must be created using the specific implementation and extra parameters required by the implementation. The initial context will be used to look up a name. The initial context is analogous to the root or top of a directory tree for a file system. Below is an example of creating an initial context:

A context is then used to look up previously bound names in that context. For example:

Alternative to above code is as below:

The Context object can also be configured by adding jndi.properties file in classpath containing initial context factory class name and provider URL. The above code will be reduced as shown below:

A context is then used to look up previously bound names in that context. For example:

Searching
Attributes may be attached to special entries called directories. Directories enable searching for objects by their associated attributes. Directories are a type of context; they restrict the name space much like a directory structure on a file system does.

title: Java Naming and Directory Interface